Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/polyml Need to run paxctl during the build, not j...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bbc140a58c13
branches:  trunk
changeset: 436987:bbc140a58c13
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Fri Aug 14 00:43:24 2020 +0000

description:
Need to run paxctl during the build, not just after it.

(Otherwise the runtime load, which maps memory rwx, fails.)

Not sure how this ever worked anytime in the last N years...

diffstat:

 lang/polyml/distinfo                  |   3 ++-
 lang/polyml/patches/patch-Makefile.in |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 0e7a4a452a50 -r bbc140a58c13 lang/polyml/distinfo
--- a/lang/polyml/distinfo      Thu Aug 13 23:49:20 2020 +0000
+++ b/lang/polyml/distinfo      Fri Aug 14 00:43:24 2020 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.15 2020/08/13 23:49:20 dholland Exp $
+$NetBSD: distinfo,v 1.16 2020/08/14 00:43:24 dholland Exp $
 
 SHA1 (polyml-5.7.1.tar.gz) = 454d3827263f514004a2465a2db0cd64ebe6e561
 RMD160 (polyml-5.7.1.tar.gz) = cc0061f191783c4749ef08fee33db4c3a2a269c6
 SHA512 (polyml-5.7.1.tar.gz) = 0b597f2fc9a68b764d4621e4e6b9c69083181bdfae66f53d0033bfc9661b9c42d252a42a72123245e8a55176a673d5343d6dd7936ae806d330b5e2b81f35e4d6
 Size (polyml-5.7.1.tar.gz) = 7218131 bytes
+SHA1 (patch-Makefile.in) = 7108e0f18af8cfa55d1914419e1707084c9b9683
 SHA1 (patch-configure) = 3df85bb0adac4bfd68fffa32c41944f21eaf8c40
 SHA1 (patch-configure.ac) = 63817ba1fd42bae03da67f74b5b97dda32b02118
 SHA1 (patch-libpolyml_elfexport.cpp) = 3dfde6483eca0778504265a8e92cad8ef86d72d3
diff -r 0e7a4a452a50 -r bbc140a58c13 lang/polyml/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/polyml/patches/patch-Makefile.in     Fri Aug 14 00:43:24 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile.in,v 1.1 2020/08/14 00:43:24 dholland Exp $
+
+It's not enough to disable ASLR on the output executable. You also
+need to disable it on the thing that gets run during the build.
+
+--- Makefile.in~       2017-11-18 13:45:15.000000000 +0000
++++ Makefile.in
+@@ -579,6 +579,7 @@ poly$(EXEEXT): $(poly_OBJECTS) $(poly_DE
+ polyimport$(EXEEXT): $(polyimport_OBJECTS) $(polyimport_DEPENDENCIES) $(EXTRA_polyimport_DEPENDENCIES) 
+       @rm -f polyimport$(EXEEXT)
+       $(AM_V_CCLD)$(polyimport_LINK) $(polyimport_OBJECTS) $(polyimport_LDADD) $(LIBS)
++      paxctl +am .libs/polyimport$(EXEEXT) || true
+ install-dist_binSCRIPTS: $(dist_bin_SCRIPTS)
+       @$(NORMAL_INSTALL)
+       @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || list=; \



Home | Main Index | Thread Index | Old Index