Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/openjdk8 openjdk8: handle paxctl +m internally to...
details: https://anonhg.NetBSD.org/pkgsrc/rev/039acd9749ad
branches: trunk
changeset: 431161:039acd9749ad
user: tnn <tnn%pkgsrc.org@localhost>
date: Sat May 09 20:47:26 2020 +0000
description:
openjdk8: handle paxctl +m internally to the build
diffstat:
lang/openjdk8/Makefile | 17 +---------
lang/openjdk8/distinfo | 3 +-
lang/openjdk8/patches/patch-make_common_NativeCompilation.gmk | 16 ++++++++++
3 files changed, 20 insertions(+), 16 deletions(-)
diffs (79 lines):
diff -r 07e55aeb8684 -r 039acd9749ad lang/openjdk8/Makefile
--- a/lang/openjdk8/Makefile Sat May 09 20:16:59 2020 +0000
+++ b/lang/openjdk8/Makefile Sat May 09 20:47:26 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.97 2020/05/06 10:16:29 jmcneill Exp $
+# $NetBSD: Makefile,v 1.98 2020/05/09 20:47:26 tnn Exp $
DISTNAME= openjdk-jdk8u-${GITHUB_TAG}
PKGNAME= openjdk8-1.8.${GITHUB_TAG:C/.*u([0-9]+).*/\1/}
@@ -70,13 +70,6 @@
CHECK_PORTABILITY_SKIP+= hotspot/test/runtime/*/*.sh
CHECK_PORTABILITY_SKIP+= hotspot/test/compiler/criticalnatives/argumentcorruption/Test8167409.sh
-NOT_PAX_MPROTECT_SAFE+= java/${JAVA_NAME}/bin/[a-ik-z]*
-NOT_PAX_MPROTECT_SAFE+= java/${JAVA_NAME}/bin/j[b-z]*
-NOT_PAX_MPROTECT_SAFE+= java/${JAVA_NAME}/bin/jar*
-NOT_PAX_MPROTECT_SAFE+= java/${JAVA_NAME}/bin/java
-NOT_PAX_MPROTECT_SAFE+= java/${JAVA_NAME}/bin/java[a-z]*
-NOT_PAX_MPROTECT_SAFE+= java/${JAVA_NAME}/jre/bin/*
-
# Avoid build errors when JAVA_HOME and CLASSPATH are defined by user.
MAKE_ENV+= JAVA_HOME=
MAKE_ENV+= CLASSPATH=
@@ -186,6 +179,7 @@
.if exists(/usr/lib/libstdc++.so.7)
${RM} -f ${ALT_BOOTDIR}/jre/lib/${LIBDIR_ARCH}/libstdc++.so*
.endif
+# This can be removed after bootstrap kits have been refreshed
.if defined(TOOLS_PLATFORM.paxctl)
${PAXCTL} +m ${WRKDIR}/bootstrap/bin/[a-ik-z]*
${PAXCTL} +m ${WRKDIR}/bootstrap/bin/j[b-z]*
@@ -208,13 +202,6 @@
# stage 1.5 reconfigures, since the bootstrap JDK major version might have changed now
${WRKDIR}/stage1_5-done: ${WRKDIR}/stage1-done
-.if defined(TOOLS_PLATFORM.paxctl)
- ${PAXCTL} +m ${WRKDIR}/bootstrap/bin/[a-ik-z]*
- ${PAXCTL} +m ${WRKDIR}/bootstrap/bin/j[b-z]*
- ${PAXCTL} +m ${WRKDIR}/bootstrap/bin/jar*
- ${PAXCTL} +m ${WRKDIR}/bootstrap/bin/java
- ${PAXCTL} +m ${WRKDIR}/bootstrap/bin/java[a-z]*
-.endif
@${STEP_MSG} "Reconfiguring with newly built JDK"
@${RECURSIVE_MAKE} ${MAKEFLAGS} do-configure
touch ${.TARGET}
diff -r 07e55aeb8684 -r 039acd9749ad lang/openjdk8/distinfo
--- a/lang/openjdk8/distinfo Sat May 09 20:16:59 2020 +0000
+++ b/lang/openjdk8/distinfo Sat May 09 20:47:26 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.78 2020/05/04 21:32:15 tnn Exp $
+$NetBSD: distinfo,v 1.79 2020/05/09 20:47:26 tnn Exp $
SHA1 (openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz) = 7408f52d3bbe35c2b14bbd3215cbf60f1335d334
RMD160 (openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz) = 24f1577b5fc86d137f070aedb4610c8c89e45815
@@ -125,3 +125,4 @@
SHA1 (patch-jdk_test_java_lang_management_OperatingSystemMXBean_GetSystemLoadAverage.java) = 07b071ace2a91acd1968ed670aead67d72f0d490
SHA1 (patch-jdk_test_sun_security_ec_TestEC.java) = c2db0716408ae1d081b3516b6c866b8f43cf5b6f
SHA1 (patch-langtools_make_build.xml) = e9dccdb67a0f25b266755f66e520c6420afaf7ba
+SHA1 (patch-make_common_NativeCompilation.gmk) = 8c1e0fd1e9eaa4be6db4b1622f199a063d923e20
diff -r 07e55aeb8684 -r 039acd9749ad lang/openjdk8/patches/patch-make_common_NativeCompilation.gmk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk8/patches/patch-make_common_NativeCompilation.gmk Sat May 09 20:47:26 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-make_common_NativeCompilation.gmk,v 1.1 2020/05/09 20:47:26 tnn Exp $
+
+Disable PaX mprotect.
+
+--- make/common/NativeCompilation.gmk.orig 2020-04-15 02:42:06.000000000 +0000
++++ make/common/NativeCompilation.gmk
+@@ -624,6 +624,9 @@ endif # no MacOS X support yet
+ ifneq (,$$($1_GEN_MANIFEST))
+ $(MT) -nologo -manifest $$($1_GEN_MANIFEST) -outputresource:$$@;#1
+ endif
++ ifeq ($(OPENJDK_TARGET_OS_VENDOR), netbsd)
++ /usr/sbin/paxctl +m $$@
++ endif
+ # This only works if the openjdk_codesign identity is present on the system. Let
+ # silently fail otherwise.
+ ifneq (,$(CODESIGN))
Home |
Main Index |
Thread Index |
Old Index