pkgsrc-Changes archive

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

CVS commit: [pkgsrc-2025Q2] pkgsrc/lang/rust



Module Name:    pkgsrc
Committed By:   maya
Date:           Thu Jul 17 22:32:25 UTC 2025

Modified Files:
        pkgsrc/lang/rust [pkgsrc-2025Q2]: Makefile

Log Message:
Pullup ticket #6992 - requested by he
lang/rust: Runtime fix to reduce memory usage on NetBSD/i386

Revisions pulled up:
- lang/rust/Makefile                                            1.341

---
   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.340.2.1 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.340.2.1
--- pkgsrc/lang/rust/Makefile:1.340     Tue Jun 17 21:43:18 2025
+++ pkgsrc/lang/rust/Makefile   Thu Jul 17 22:32:25 2025
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.340 2025/06/17 21:43:18 adam Exp $
+# $NetBSD: Makefile,v 1.340.2.1 2025/07/17 22:32:25 maya 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