|
|
cf0227 |
diff --git openjdk.orig/common/autoconf/configure.ac openjdk/common/autoconf/configure.ac
|
|
|
cf0227 |
--- openjdk.orig/common/autoconf/configure.ac
|
|
|
cf0227 |
+++ openjdk/common/autoconf/configure.ac
|
|
|
cf0227 |
@@ -212,6 +212,7 @@
|
|
|
cf0227 |
LIB_SETUP_ALSA
|
|
|
cf0227 |
LIB_SETUP_FONTCONFIG
|
|
|
cf0227 |
LIB_SETUP_MISC_LIBS
|
|
|
cf0227 |
+LIB_SETUP_SYSCONF_LIBS
|
|
|
cf0227 |
LIB_SETUP_STATIC_LINK_LIBSTDCPP
|
|
|
cf0227 |
LIB_SETUP_ON_WINDOWS
|
|
|
cf0227 |
|
|
|
cf0227 |
diff --git openjdk.orig/common/autoconf/libraries.m4 openjdk/common/autoconf/libraries.m4
|
|
|
cf0227 |
--- openjdk.orig/common/autoconf/libraries.m4
|
|
|
cf0227 |
+++ openjdk/common/autoconf/libraries.m4
|
|
|
cf0227 |
@@ -1067,3 +1067,63 @@
|
|
|
cf0227 |
BASIC_DEPRECATED_ARG_WITH([dxsdk-include])
|
|
|
cf0227 |
fi
|
|
|
cf0227 |
])
|
|
|
cf0227 |
+
|
|
|
cf0227 |
+################################################################################
|
|
|
cf0227 |
+# Setup system configuration libraries
|
|
|
cf0227 |
+################################################################################
|
|
|
cf0227 |
+AC_DEFUN_ONCE([LIB_SETUP_SYSCONF_LIBS],
|
|
|
cf0227 |
+[
|
|
|
cf0227 |
+ ###############################################################################
|
|
|
cf0227 |
+ #
|
|
|
cf0227 |
+ # Check for the NSS library
|
|
|
cf0227 |
+ #
|
|
|
cf0227 |
+
|
|
|
cf0227 |
+ AC_MSG_CHECKING([whether to use the system NSS library with the System Configurator (libsysconf)])
|
|
|
cf0227 |
+
|
|
|
cf0227 |
+ # default is not available
|
|
|
cf0227 |
+ DEFAULT_SYSCONF_NSS=no
|
|
|
cf0227 |
+
|
|
|
cf0227 |
+ AC_ARG_ENABLE([sysconf-nss], [AS_HELP_STRING([--enable-sysconf-nss],
|
|
|
cf0227 |
+ [build the System Configurator (libsysconf) using the system NSS library if available @<:@disabled@:>@])],
|
|
|
cf0227 |
+ [
|
|
|
cf0227 |
+ case "${enableval}" in
|
|
|
cf0227 |
+ yes)
|
|
|
cf0227 |
+ sysconf_nss=yes
|
|
|
cf0227 |
+ ;;
|
|
|
cf0227 |
+ *)
|
|
|
cf0227 |
+ sysconf_nss=no
|
|
|
cf0227 |
+ ;;
|
|
|
cf0227 |
+ esac
|
|
|
cf0227 |
+ ],
|
|
|
cf0227 |
+ [
|
|
|
cf0227 |
+ sysconf_nss=${DEFAULT_SYSCONF_NSS}
|
|
|
cf0227 |
+ ])
|
|
|
cf0227 |
+ AC_MSG_RESULT([$sysconf_nss])
|
|
|
cf0227 |
+
|
|
|
cf0227 |
+ USE_SYSCONF_NSS=false
|
|
|
cf0227 |
+ if test "x${sysconf_nss}" = "xyes"; then
|
|
|
cf0227 |
+ PKG_CHECK_MODULES(NSS, nss >= 3.53, [NSS_FOUND=yes], [NSS_FOUND=no])
|
|
|
cf0227 |
+ if test "x${NSS_FOUND}" = "xyes"; then
|
|
|
cf0227 |
+ AC_MSG_CHECKING([for system FIPS support in NSS])
|
|
|
cf0227 |
+ saved_libs="${LIBS}"
|
|
|
cf0227 |
+ saved_cflags="${CFLAGS}"
|
|
|
cf0227 |
+ CFLAGS="${CFLAGS} ${NSS_CFLAGS}"
|
|
|
cf0227 |
+ LIBS="${LIBS} ${NSS_LIBS}"
|
|
|
cf0227 |
+ AC_LANG_PUSH([C])
|
|
|
cf0227 |
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <nss3/pk11pub.h>]],
|
|
|
cf0227 |
+ [[SECMOD_GetSystemFIPSEnabled()]])],
|
|
|
cf0227 |
+ [AC_MSG_RESULT([yes])],
|
|
|
cf0227 |
+ [AC_MSG_RESULT([no])
|
|
|
cf0227 |
+ AC_MSG_ERROR([System NSS FIPS detection unavailable])])
|
|
|
cf0227 |
+ AC_LANG_POP([C])
|
|
|
cf0227 |
+ CFLAGS="${saved_cflags}"
|
|
|
cf0227 |
+ LIBS="${saved_libs}"
|
|
|
cf0227 |
+ USE_SYSCONF_NSS=true
|
|
|
cf0227 |
+ else
|
|
|
cf0227 |
+ dnl NSS 3.53 is the one that introduces the SECMOD_GetSystemFIPSEnabled API
|
|
|
cf0227 |
+ dnl in nss3/pk11pub.h.
|
|
|
cf0227 |
+ AC_MSG_ERROR([--enable-sysconf-nss specified, but NSS 3.53 or above not found.])
|
|
|
cf0227 |
+ fi
|
|
|
cf0227 |
+ fi
|
|
|
cf0227 |
+ AC_SUBST(USE_SYSCONF_NSS)
|
|
|
cf0227 |
+])
|
|
|
cf0227 |
diff --git openjdk.orig/common/autoconf/spec.gmk.in openjdk/common/autoconf/spec.gmk.in
|
|
|
cf0227 |
--- openjdk.orig/common/autoconf/spec.gmk.in
|
|
|
cf0227 |
+++ openjdk/common/autoconf/spec.gmk.in
|
|
|
cf0227 |
@@ -312,6 +312,10 @@
|
|
|
cf0227 |
ALSA_LIBS:=@ALSA_LIBS@
|
|
|
cf0227 |
ALSA_CFLAGS:=@ALSA_CFLAGS@
|
|
|
cf0227 |
|
|
|
cf0227 |
+USE_SYSCONF_NSS:=@USE_SYSCONF_NSS@
|
|
|
cf0227 |
+NSS_LIBS:=@NSS_LIBS@
|
|
|
cf0227 |
+NSS_CFLAGS:=@NSS_CFLAGS@
|
|
|
cf0227 |
+
|
|
|
cf0227 |
PACKAGE_PATH=@PACKAGE_PATH@
|
|
|
cf0227 |
|
|
|
cf0227 |
# Source file for cacerts
|
|
|
cf0227 |
diff --git openjdk.orig/common/bin/compare_exceptions.sh.incl openjdk/common/bin/compare_exceptions.sh.incl
|
|
|
cf0227 |
--- openjdk.orig/common/bin/compare_exceptions.sh.incl
|
|
|
cf0227 |
+++ openjdk/common/bin/compare_exceptions.sh.incl
|
|
|
cf0227 |
@@ -280,6 +280,7 @@
|
|
|
cf0227 |
./jre/lib/i386/libsplashscreen.so
|
|
|
cf0227 |
./jre/lib/i386/libsunec.so
|
|
|
cf0227 |
./jre/lib/i386/libsunwjdga.so
|
|
|
cf0227 |
+./jre/lib/i386/libsystemconf.so
|
|
|
cf0227 |
./jre/lib/i386/libt2k.so
|
|
|
cf0227 |
./jre/lib/i386/libunpack.so
|
|
|
cf0227 |
./jre/lib/i386/libverify.so
|
|
|
cf0227 |
@@ -433,6 +434,7 @@
|
|
|
cf0227 |
./jre/lib/amd64/libsplashscreen.so
|
|
|
cf0227 |
./jre/lib/amd64/libsunec.so
|
|
|
cf0227 |
./jre/lib/amd64/libsunwjdga.so
|
|
|
cf0227 |
+//jre/lib/amd64/libsystemconf.so
|
|
|
cf0227 |
./jre/lib/amd64/libt2k.so
|
|
|
cf0227 |
./jre/lib/amd64/libunpack.so
|
|
|
cf0227 |
./jre/lib/amd64/libverify.so
|
|
|
cf0227 |
@@ -587,6 +589,7 @@
|
|
|
cf0227 |
./jre/lib/sparc/libsplashscreen.so
|
|
|
cf0227 |
./jre/lib/sparc/libsunec.so
|
|
|
cf0227 |
./jre/lib/sparc/libsunwjdga.so
|
|
|
cf0227 |
+./jre/lib/sparc/libsystemconf.so
|
|
|
cf0227 |
./jre/lib/sparc/libt2k.so
|
|
|
cf0227 |
./jre/lib/sparc/libunpack.so
|
|
|
cf0227 |
./jre/lib/sparc/libverify.so
|
|
|
cf0227 |
@@ -741,6 +744,7 @@
|
|
|
cf0227 |
./jre/lib/sparcv9/libsplashscreen.so
|
|
|
cf0227 |
./jre/lib/sparcv9/libsunec.so
|
|
|
cf0227 |
./jre/lib/sparcv9/libsunwjdga.so
|
|
|
cf0227 |
+./jre/lib/sparcv9/libsystemconf.so
|
|
|
cf0227 |
./jre/lib/sparcv9/libt2k.so
|
|
|
cf0227 |
./jre/lib/sparcv9/libunpack.so
|
|
|
cf0227 |
./jre/lib/sparcv9/libverify.so
|
|
|
cf0227 |
diff --git openjdk.orig/common/nb_native/nbproject/configurations.xml openjdk/common/nb_native/nbproject/configurations.xml
|
|
|
cf0227 |
--- openjdk.orig/common/nb_native/nbproject/configurations.xml
|
|
|
cf0227 |
+++ openjdk/common/nb_native/nbproject/configurations.xml
|
|
|
cf0227 |
@@ -53,6 +53,9 @@
|
|
|
cf0227 |
<in>jvmtiEnterTrace.cpp</in>
|
|
|
cf0227 |
</df>
|
|
|
cf0227 |
</df>
|
|
|
cf0227 |
+ <df name="libsystemconf">
|
|
|
cf0227 |
+ <in>systemconf.c</in>
|
|
|
cf0227 |
+ </df>
|
|
|
cf0227 |
</df>
|
|
|
cf0227 |
</df>
|
|
|
cf0227 |
<df name="jdk">
|
|
|
cf0227 |
@@ -12772,6 +12775,11 @@
|
|
|
cf0227 |
tool="0"
|
|
|
cf0227 |
flavor2="0">
|
|
|
cf0227 |
</item>
|
|
|
cf0227 |
+
|
|
|
cf0227 |
+ ex="false"
|
|
|
cf0227 |
+ tool="0"
|
|
|
cf0227 |
+ flavor2="0">
|
|
|
cf0227 |
+ </item>
|
|
|
cf0227 |
|
|
|
cf0227 |
ex="false"
|
|
|
cf0227 |
tool="0"
|