pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/rust



Module Name:    pkgsrc
Committed By:   he
Date:           Wed Jul 16 22:06:25 UTC 2025

Modified Files:
        pkgsrc/lang/rust: Makefile

Log Message:
lang/rust: on NetBSD/i386, set the "no ASLR, please" flag on rustc.

This way we can still build firefox natively on NetBSD/i386.

Ref. https://mail-index.netbsd.org/pkgsrc-users/2025/07/15/msg041760.html


To generate a diff of this commit:
cvs rdiff -u -r1.340 -r1.341 pkgsrc/lang/rust/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/rust/Makefile
diff -u pkgsrc/lang/rust/Makefile:1.340 pkgsrc/lang/rust/Makefile:1.341
--- pkgsrc/lang/rust/Makefile:1.340     Tue Jun 17 21:43:18 2025
+++ pkgsrc/lang/rust/Makefile   Wed Jul 16 22:06:25 2025
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.340 2025/06/17 21:43:18 adam Exp $
+# $NetBSD: Makefile,v 1.341 2025/07/16 22:06:25 he Exp $
 
 DISTNAME=      rustc-1.86.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
+PKGREVISION=   1
 CATEGORIES=    lang
 MASTER_SITES=  https://static.rust-lang.org/dist/
 
@@ -603,6 +604,13 @@ do-install:
        done
 .endif
 
+.if ${MACHINE_PLATFORM:MNetBSD-*-i386}
+# Turn off Address space layout randomization
+# so that we can build firefox natively:
+post-install:
+       paxctl +a ${DESTDIR}/${PREFIX}/bin/rustc
+.endif
+
 SUBST_CLASSES+=                destdir
 SUBST_STAGE.destdir=   post-install
 SUBST_FILES.destdir=   ${DESTDIR}${PREFIX}/lib/rustlib/manifest-*



Home | Main Index | Thread Index | Old Index