Skip to content

Commit ee08c45

Browse files
committed
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
1 parent f307022 commit ee08c45

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

lang/rust/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# $NetBSD: Makefile,v 1.340 2025/06/17 21:43:18 adam Exp $
1+
# $NetBSD: Makefile,v 1.340.2.1 2025/07/17 22:32:25 maya Exp $
22

33
DISTNAME= rustc-1.86.0-src
44
PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//}
5+
PKGREVISION= 1
56
CATEGORIES= lang
67
MASTER_SITES= https://static.rust-lang.org/dist/
78

@@ -603,6 +604,13 @@ do-install:
603604
done
604605
.endif
605606

607+
.if ${MACHINE_PLATFORM:MNetBSD-*-i386}
608+
# Turn off Address space layout randomization
609+
# so that we can build firefox natively:
610+
post-install:
611+
paxctl +a ${DESTDIR}/${PREFIX}/bin/rustc
612+
.endif
613+
606614
SUBST_CLASSES+= destdir
607615
SUBST_STAGE.destdir= post-install
608616
SUBST_FILES.destdir= ${DESTDIR}${PREFIX}/lib/rustlib/manifest-*

0 commit comments

Comments
 (0)