summaryrefslogtreecommitdiff
path: root/lang/openjdk8/patches
diff options
context:
space:
mode:
authortnn <tnn>2015-06-10 11:38:51 +0000
committertnn <tnn>2015-06-10 11:38:51 +0000
commit662e6efd0797148d87f06b47b503be4c26f5096b (patch)
treedad719b4f74e4e2b80fb6ef8a23973024c8a245c /lang/openjdk8/patches
parent69e1c102edf1ec7a2556e67656e1ff72c9d9211c (diff)
downloadpkgsrc-662e6efd0797148d87f06b47b503be4c26f5096b.tar.gz
Update openjdk8 to latest version from the bsd-port hg tree. (u45-b13)
No full changelog available but at least fixes the security issues noted in the April 2015 Critical Patch Update from Oracle.
Diffstat (limited to 'lang/openjdk8/patches')
-rw-r--r--lang/openjdk8/patches/patch-aa47
-rw-r--r--lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh43
-rw-r--r--lang/openjdk8/patches/patch-hotspot_src_os_bsd_vm_osThread__bsd.cpp13
-rw-r--r--lang/openjdk8/patches/patch-hotspot_src_os_posix_vm_os__posix.cpp11
-rw-r--r--lang/openjdk8/patches/patch-jdk_make_lib_NioLibraries.gmk18
-rw-r--r--lang/openjdk8/patches/patch-jdk_make_lib_SoundLibraries.gmk12
-rw-r--r--lang/openjdk8/patches/patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c6
-rw-r--r--lang/openjdk8/patches/patch-jdk_src_solaris_classes_java_lang_UNIXProcess.java.bsd46
-rw-r--r--lang/openjdk8/patches/patch-jdk_src_solaris_native_java_net_NetworkInterface.c11
-rw-r--r--lang/openjdk8/patches/patch-jdk_src_solaris_native_sun_security_pkcs11_j2secmod_md.c15
10 files changed, 57 insertions, 165 deletions
diff --git a/lang/openjdk8/patches/patch-aa b/lang/openjdk8/patches/patch-aa
index 197d442467b..d0006e912d8 100644
--- a/lang/openjdk8/patches/patch-aa
+++ b/lang/openjdk8/patches/patch-aa
@@ -1,11 +1,11 @@
-$NetBSD: patch-aa,v 1.3 2015/03/02 04:26:40 tnn Exp $
+$NetBSD: patch-aa,v 1.4 2015/06/10 11:38:51 tnn Exp $
DragonFly support.
Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
---- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2015-02-02 15:32:37.000000000 +0000
+--- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2015-06-09 13:49:54.000000000 +0000
+++ hotspot/src/os/bsd/vm/os_bsd.cpp
-@@ -112,8 +112,11 @@
+@@ -113,8 +113,11 @@
# include <vm/vm_param.h>
#endif
@@ -17,8 +17,8 @@ Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
+#endif
#endif
- #ifdef __APPLE__
-@@ -282,6 +285,7 @@ void os::Bsd::initialize_system_info() {
+ #ifdef __NetBSD__
+@@ -287,6 +290,7 @@ void os::Bsd::initialize_system_info() {
size_t len;
int cpu_val;
julong mem_val;
@@ -26,7 +26,7 @@ Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
/* get processors count via hw.ncpus sysctl */
mib[0] = CTL_HW;
-@@ -302,6 +306,8 @@ void os::Bsd::initialize_system_info() {
+@@ -307,6 +311,8 @@ void os::Bsd::initialize_system_info() {
#if defined (HW_MEMSIZE) // Apple
mib[1] = HW_MEMSIZE;
@@ -35,7 +35,7 @@ Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
#elif defined(HW_PHYSMEM) // Most of BSD
mib[1] = HW_PHYSMEM;
#elif defined(HW_REALMEM) // Old FreeBSD
-@@ -318,14 +324,11 @@ void os::Bsd::initialize_system_info() {
+@@ -323,14 +329,11 @@ void os::Bsd::initialize_system_info() {
_physical_memory = 256*1024*1024; // fallback (XXXBSD?)
}
@@ -55,7 +55,7 @@ Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
#endif
}
-@@ -377,7 +380,7 @@ void os::init_system_properties_values()
+@@ -382,7 +385,7 @@ void os::init_system_properties_values()
// ...
// 7: The default directories, normally /lib and /usr/lib.
#ifndef DEFAULT_LIBPATH
@@ -64,28 +64,7 @@ Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
#endif
// Base path of extensions installed on the system.
-@@ -1236,7 +1239,7 @@ pid_t os::Bsd::gettid() {
- guarantee(retval != 0, "just checking");
- return retval;
-
--#elif __FreeBSD__
-+#elif defined(__FreeBSD__)
- #if __FreeBSD_version > 900030
- return ::pthread_getthreadid_np();
- #else
-@@ -1244,9 +1247,9 @@ pid_t os::Bsd::gettid() {
- thr_self(&tid);
- return (pid_t)tid;
- #endif
--#elif __OpenBSD__
-+#elif defined(__OpenBSD__)
- retval = syscall(SYS_getthrid);
--#elif __NetBSD__
-+#elif defined(__NetBSD__)
- retval = (pid_t) syscall(SYS__lwp_self);
- #endif
-
-@@ -1561,7 +1564,9 @@ void * os::dll_load(const char *filename
+@@ -1566,7 +1569,9 @@ void * os::dll_load(const char *filename
{EM_PPC, EM_PPC, ELFCLASS32, ELFDATA2MSB, (char*)"Power PC 32"},
{EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2MSB, (char*)"Power PC 64"},
{EM_ARM, EM_ARM, ELFCLASS32, ELFDATA2LSB, (char*)"ARM"},
@@ -95,7 +74,7 @@ Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
{EM_ALPHA, EM_ALPHA, ELFCLASS64, ELFDATA2LSB, (char*)"Alpha"},
{EM_MIPS_RS3_LE, EM_MIPS_RS3_LE, ELFCLASS32, ELFDATA2LSB, (char*)"MIPSel"},
{EM_MIPS, EM_MIPS, ELFCLASS32, ELFDATA2MSB, (char*)"MIPS"},
-@@ -2092,6 +2097,33 @@ bool Semaphore::timedwait(unsigned int s
+@@ -2097,6 +2102,33 @@ bool Semaphore::timedwait(unsigned int s
#else
@@ -129,7 +108,7 @@ Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
bool Semaphore::trywait() {
return sem_trywait(&_semaphore) == 0;
}
-@@ -2242,7 +2274,7 @@ static void warn_fail_commit_memory(char
+@@ -2247,7 +2279,7 @@ static void warn_fail_commit_memory(char
// problem.
bool os::pd_commit_memory(char* addr, size_t size, bool exec) {
int prot = exec ? PROT_READ|PROT_WRITE|PROT_EXEC : PROT_READ|PROT_WRITE;
@@ -138,7 +117,7 @@ Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
// XXX: Work-around mmap/MAP_FIXED bug temporarily on OpenBSD
if (::mprotect(addr, size, prot) == 0) {
return true;
-@@ -2843,7 +2875,7 @@ OSReturn os::set_native_priority(Thread*
+@@ -2850,7 +2882,7 @@ OSReturn os::set_native_priority(Thread*
#ifdef __OpenBSD__
// OpenBSD pthread_setprio starves low priority threads
return OS_OK;
@@ -147,7 +126,7 @@ Add workaround for missing sem_timedwait() in NetBSD < 6.99.4
int ret = pthread_setprio(thread->osthread()->pthread_id(), newpri);
return (ret == 0) ? OS_OK : OS_ERR;
#elif defined(__APPLE__) || defined(__NetBSD__)
-@@ -2872,7 +2904,7 @@ OSReturn os::get_native_priority(const T
+@@ -2879,7 +2911,7 @@ OSReturn os::get_native_priority(const T
}
errno = 0;
diff --git a/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh b/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh
index 2910f6576c6..d2cd46258b1 100644
--- a/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh
+++ b/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh
@@ -1,8 +1,8 @@
-$NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00 tnn Exp $
+$NetBSD: patch-common_autoconf_generated-configure.sh,v 1.4 2015/06/10 11:38:51 tnn Exp $
---- common/autoconf/generated-configure.sh.orig 2015-02-02 15:31:06.000000000 +0000
+--- common/autoconf/generated-configure.sh.orig 2015-06-09 13:44:54.000000000 +0000
+++ common/autoconf/generated-configure.sh
-@@ -6859,7 +6859,7 @@ test -n "$target_alias" &&
+@@ -6883,7 +6883,7 @@ test -n "$target_alias" &&
VAR_CPU_BITS=32
VAR_CPU_ENDIAN=big
;;
@@ -11,7 +11,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
VAR_CPU=sparcv9
VAR_CPU_ARCH=sparc
VAR_CPU_BITS=64
-@@ -6990,7 +6990,7 @@ $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUI
+@@ -7030,7 +7030,7 @@ $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUI
VAR_CPU_BITS=32
VAR_CPU_ENDIAN=big
;;
@@ -20,7 +20,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
VAR_CPU=sparcv9
VAR_CPU_ARCH=sparc
VAR_CPU_BITS=64
-@@ -8379,9 +8379,9 @@ done
+@@ -8421,9 +8421,9 @@ done
# We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
if test "x$MAKE" != x; then
# User has supplied a make, test it.
@@ -33,7 +33,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
MAKE_CANDIDATE=""$MAKE""
DESCRIPTION="user supplied MAKE=$MAKE"
-@@ -12483,7 +12483,7 @@ fi
+@@ -12543,7 +12543,7 @@ fi
# Resolve file symlinks
while test $COUNTER -lt 20; do
ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
@@ -42,7 +42,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
# This is not a symbolic link! We are done!
break
fi
-@@ -19643,7 +19643,7 @@ $as_echo_n "checking resolved symbolic l
+@@ -19774,7 +19774,7 @@ $as_echo_n "checking resolved symbolic l
# Resolve file symlinks
while test $COUNTER -lt 20; do
ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
@@ -51,7 +51,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
# This is not a symbolic link! We are done!
break
fi
-@@ -20081,7 +20081,7 @@ $as_echo_n "checking for resolved symbol
+@@ -20212,7 +20212,7 @@ $as_echo_n "checking for resolved symbol
# Resolve file symlinks
while test $COUNTER -lt 20; do
ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
@@ -60,7 +60,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
# This is not a symbolic link! We are done!
break
fi
-@@ -21244,7 +21244,7 @@ $as_echo_n "checking resolved symbolic l
+@@ -21375,7 +21375,7 @@ $as_echo_n "checking resolved symbolic l
# Resolve file symlinks
while test $COUNTER -lt 20; do
ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
@@ -69,7 +69,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
# This is not a symbolic link! We are done!
break
fi
-@@ -21682,7 +21682,7 @@ $as_echo_n "checking for resolved symbol
+@@ -21813,7 +21813,7 @@ $as_echo_n "checking for resolved symbol
# Resolve file symlinks
while test $COUNTER -lt 20; do
ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
@@ -78,7 +78,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
# This is not a symbolic link! We are done!
break
fi
-@@ -29731,7 +29731,7 @@ fi
+@@ -29862,7 +29862,7 @@ fi
#
case $COMPILER_NAME in
gcc )
@@ -87,16 +87,17 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
-pipe \
-D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
case $OPENJDK_TARGET_CPU_ARCH in
-@@ -30345,6 +30345,8 @@ $as_echo "alsa pulse x11" >&6; }
+@@ -30475,7 +30475,8 @@ $as_echo "alsa pulse x11" >&6; }
+ if test "x$OPENJDK_TARGET_OS" = xbsd; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on BSD?" >&5
$as_echo_n "checking what is not needed on BSD?... " >&6; }
- PULSE_NOT_NEEDED=yes
-+# disable sound for now. XXX revisit this.
-+ ALSA_NOT_NEEDED=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
- $as_echo "pulse" >&6; }
- fi
-@@ -31555,7 +31557,11 @@ $as_echo "$as_me: WARNING: freetype not
+- if test "x$OPENJDK_TARGET_OS_VENDOR" = xopenbsd; then
++ if test "x$OPENJDK_TARGET_OS_VENDOR" = xopenbsd -o "x$OPENJDK_TARGET_OS_VENDOR" = xnetbsd; then
++# XXX revisit this
+ ALSA_NOT_NEEDED=yes
+ PULSE_NOT_NEEDED=yes
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
+@@ -31701,7 +31702,11 @@ $as_echo "$as_me: WARNING: freetype not
# Allow --with-freetype-lib and --with-freetype-include to override
if test "x$with_freetype_include" != x; then
@@ -109,7 +110,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
fi
if test "x$with_freetype_lib" != x; then
POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib"
-@@ -34373,7 +34379,7 @@ $as_echo "$as_me: The path of FREETYPE_I
+@@ -34519,7 +34524,7 @@ $as_echo "$as_me: The path of FREETYPE_I
FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
fi
@@ -118,7 +119,7 @@ $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.3 2015/02/12 06:20:00
FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH"
else
FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH"
-@@ -34506,7 +34512,7 @@ $as_echo "$as_me: The path of FREETYPE_L
+@@ -34652,7 +34657,7 @@ $as_echo "$as_me: The path of FREETYPE_L
if test "x$OPENJDK_TARGET_OS" = xwindows; then
FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib"
else
diff --git a/lang/openjdk8/patches/patch-hotspot_src_os_bsd_vm_osThread__bsd.cpp b/lang/openjdk8/patches/patch-hotspot_src_os_bsd_vm_osThread__bsd.cpp
deleted file mode 100644
index bad53b9bcdd..00000000000
--- a/lang/openjdk8/patches/patch-hotspot_src_os_bsd_vm_osThread__bsd.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-hotspot_src_os_bsd_vm_osThread__bsd.cpp,v 1.1 2015/02/08 08:41:25 tnn Exp $
-
---- hotspot/src/os/bsd/vm/osThread_bsd.cpp.orig 2015-02-02 15:32:37.000000000 +0000
-+++ hotspot/src/os/bsd/vm/osThread_bsd.cpp
-@@ -30,7 +30,7 @@
-
- void OSThread::pd_initialize() {
- assert(this != NULL, "check");
--#if defined(__APPLE__) || defined(__FreeBSD__)
-+#if defined(_ALLBSD_SOURCE)
- _thread_id = 0;
- #else
- _thread_id = NULL;
diff --git a/lang/openjdk8/patches/patch-hotspot_src_os_posix_vm_os__posix.cpp b/lang/openjdk8/patches/patch-hotspot_src_os_posix_vm_os__posix.cpp
index a0dccfdee44..2d2f4ffd86f 100644
--- a/lang/openjdk8/patches/patch-hotspot_src_os_posix_vm_os__posix.cpp
+++ b/lang/openjdk8/patches/patch-hotspot_src_os_posix_vm_os__posix.cpp
@@ -1,10 +1,10 @@
-$NetBSD: patch-hotspot_src_os_posix_vm_os__posix.cpp,v 1.1 2015/02/08 08:41:25 tnn Exp $
+$NetBSD: patch-hotspot_src_os_posix_vm_os__posix.cpp,v 1.2 2015/06/10 11:38:51 tnn Exp $
rlim_t fixes.
---- hotspot/src/os/posix/vm/os_posix.cpp.orig 2015-02-02 15:32:37.000000000 +0000
+--- hotspot/src/os/posix/vm/os_posix.cpp.orig 2015-06-09 13:49:55.000000000 +0000
+++ hotspot/src/os/posix/vm/os_posix.cpp
-@@ -160,12 +160,12 @@ void os::Posix::print_rlimit_info(output
+@@ -180,12 +180,12 @@ void os::Posix::print_rlimit_info(output
st->print(" STACK ");
getrlimit(RLIMIT_STACK, &rlim);
@@ -19,7 +19,7 @@ rlim_t fixes.
else st->print("%uk", rlim.rlim_cur >> 10);
// Isn't there on solaris
-@@ -178,12 +178,12 @@ void os::Posix::print_rlimit_info(output
+@@ -198,7 +198,7 @@ void os::Posix::print_rlimit_info(output
st->print(", NOFILE ");
getrlimit(RLIMIT_NOFILE, &rlim);
@@ -27,8 +27,11 @@ rlim_t fixes.
+ if (rlim.rlim_cur == (rlim_t)RLIM_INFINITY) st->print("infinity");
else st->print("%d", rlim.rlim_cur);
+ #ifdef __OpenBSD__
+@@ -208,7 +208,7 @@ void os::Posix::print_rlimit_info(output
st->print(", AS ");
getrlimit(RLIMIT_AS, &rlim);
+ #endif
- if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
+ if (rlim.rlim_cur == (rlim_t)RLIM_INFINITY) st->print("infinity");
else st->print("%uk", rlim.rlim_cur >> 10);
diff --git a/lang/openjdk8/patches/patch-jdk_make_lib_NioLibraries.gmk b/lang/openjdk8/patches/patch-jdk_make_lib_NioLibraries.gmk
deleted file mode 100644
index d7a979ef7f4..00000000000
--- a/lang/openjdk8/patches/patch-jdk_make_lib_NioLibraries.gmk
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-jdk_make_lib_NioLibraries.gmk,v 1.1 2015/03/02 14:27:38 tnn Exp $
-
---- jdk/make/lib/NioLibraries.gmk.orig 2015-02-02 15:37:11.000000000 +0000
-+++ jdk/make/lib/NioLibraries.gmk
-@@ -185,9 +185,12 @@ $(BUILD_LIBNIO): $(BUILD_LIBNET)
-
- ##########################################################################################
-
-+ifeq (, $(OS_VENDOR))
-+OS_VENDOR:= $(shell uname -s)
-+endif
- ifeq ($(OPENJDK_TARGET_OS_API), posix)
-
-- ifeq (, $(filter $(OPENJDK_TARGET_OS), macosx aix))
-+ ifeq (, $(filter $(OS_VENDOR), AIX Darwin NetBSD DragonFly))
-
- # Suppress unused parameters required by exported JNI functions.
- SCTP_WERROR := -Werror -Wno-error=unused-parameter
diff --git a/lang/openjdk8/patches/patch-jdk_make_lib_SoundLibraries.gmk b/lang/openjdk8/patches/patch-jdk_make_lib_SoundLibraries.gmk
index 132c800c4e9..3c4bf88cfc1 100644
--- a/lang/openjdk8/patches/patch-jdk_make_lib_SoundLibraries.gmk
+++ b/lang/openjdk8/patches/patch-jdk_make_lib_SoundLibraries.gmk
@@ -1,13 +1,13 @@
-$NetBSD: patch-jdk_make_lib_SoundLibraries.gmk,v 1.1 2015/02/08 08:41:25 tnn Exp $
+$NetBSD: patch-jdk_make_lib_SoundLibraries.gmk,v 1.2 2015/06/10 11:38:51 tnn Exp $
---- jdk/make/lib/SoundLibraries.gmk.orig 2015-02-02 15:37:11.000000000 +0000
+--- jdk/make/lib/SoundLibraries.gmk.orig 2015-06-09 13:56:39.000000000 +0000
+++ jdk/make/lib/SoundLibraries.gmk
@@ -76,7 +76,7 @@ ifeq ($(OPENJDK_TARGET_OS), aix)
endif # OPENJDK_TARGET_OS aix
ifeq ($(OPENJDK_TARGET_OS), bsd)
-- EXTRA_SOUND_JNI_LIBS += jsoundalsa
-+# EXTRA_SOUND_JNI_LIBS += jsoundalsa
+- ifneq ($(OPENJDK_TARGET_OS_VENDOR), openbsd)
++ ifeq (, $(filter $(OPENJDK_TARGET_OS_VENDOR), netbsd openbsd))
+ EXTRA_SOUND_JNI_LIBS += jsoundalsa
+ endif # OPENJDK_TARGET_OS_VENDOR openbsd
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_BSD
- endif # OPENJDK_TARGET_OS bsd
-
diff --git a/lang/openjdk8/patches/patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c b/lang/openjdk8/patches/patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c
index d3347769d04..db940d2d596 100644
--- a/lang/openjdk8/patches/patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c
+++ b/lang/openjdk8/patches/patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c
@@ -1,8 +1,8 @@
-$NetBSD: patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c,v 1.1 2015/02/08 08:41:25 tnn Exp $
+$NetBSD: patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c,v 1.2 2015/06/10 11:38:51 tnn Exp $
Ensure we use the bundled jpeg.
---- jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c.orig 2015-02-02 15:37:11.000000000 +0000
+--- jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c.orig 2015-06-09 13:56:33.000000000 +0000
+++ jdk/src/share/native/sun/awt/image/jpeg/jpegdecoder.c
@@ -44,7 +44,7 @@
/* undo "system_boolean" hack and undef FAR since we don't use it anyway */
@@ -12,4 +12,4 @@ Ensure we use the bundled jpeg.
+#include "jpeglib.h"
#include "jerror.h"
- /* The method IDs we cache. Note that the last two belongs to the
+ #ifdef __APPLE__
diff --git a/lang/openjdk8/patches/patch-jdk_src_solaris_classes_java_lang_UNIXProcess.java.bsd b/lang/openjdk8/patches/patch-jdk_src_solaris_classes_java_lang_UNIXProcess.java.bsd
deleted file mode 100644
index 3fc2460550d..00000000000
--- a/lang/openjdk8/patches/patch-jdk_src_solaris_classes_java_lang_UNIXProcess.java.bsd
+++ /dev/null
@@ -1,46 +0,0 @@
-$NetBSD: patch-jdk_src_solaris_classes_java_lang_UNIXProcess.java.bsd,v 1.1 2015/02/08 08:41:25 tnn Exp $
-
-* Under NetBSD 5, use fork instead of posix_spawn. NetBSD 5 has no posix_spawn.
-
---- jdk/src/solaris/classes/java/lang/UNIXProcess.java.bsd.orig 2015-02-02 15:37:12.000000000 +0000
-+++ jdk/src/solaris/classes/java/lang/UNIXProcess.java.bsd
-@@ -95,16 +95,31 @@ final class UNIXProcess extends Process
- public LaunchMechanism run() {
- String javahome = System.getProperty("java.home");
- String osArch = System.getProperty("os.arch");
-+ String osname = System.getProperty("os.name");
-
- helperpath = toCString(javahome + "/lib/" + osArch + "/jspawnhelper");
-- String s = System.getProperty(
-- "jdk.lang.Process.launchMechanism", "posix_spawn");
--
-- try {
-- return LaunchMechanism.valueOf(s.toUpperCase());
-- } catch (IllegalArgumentException e) {
-- throw new Error(s + " is not a supported " +
-- "process launch mechanism on this platform.");
-+/* NetBSD 5 does not have posix_spawn. Use fork instead. */
-+ String osversion = System.getProperty("os.version");
-+ if (osname.startsWith("NetBSD") && osversion.startsWith("5")) {
-+ String s = System.getProperty(
-+ "jdk.lang.Process.launchMechanism", "fork");
-+
-+ try {
-+ return LaunchMechanism.valueOf(s.toUpperCase());
-+ } catch (IllegalArgumentException e) {
-+ throw new Error(s + " is not a supported " +
-+ "process launch mechanism on this platform.");
-+ }
-+ } else {
-+ String s = System.getProperty(
-+ "jdk.lang.Process.launchMechanism", "posix_spawn");
-+
-+ try {
-+ return LaunchMechanism.valueOf(s.toUpperCase());
-+ } catch (IllegalArgumentException e) {
-+ throw new Error(s + " is not a supported " +
-+ "process launch mechanism on this platform.");
-+ }
- }
- }
- });
diff --git a/lang/openjdk8/patches/patch-jdk_src_solaris_native_java_net_NetworkInterface.c b/lang/openjdk8/patches/patch-jdk_src_solaris_native_java_net_NetworkInterface.c
index fd9e41be5e8..ec95a8e72ed 100644
--- a/lang/openjdk8/patches/patch-jdk_src_solaris_native_java_net_NetworkInterface.c
+++ b/lang/openjdk8/patches/patch-jdk_src_solaris_native_java_net_NetworkInterface.c
@@ -1,8 +1,8 @@
-$NetBSD: patch-jdk_src_solaris_native_java_net_NetworkInterface.c,v 1.1 2015/02/08 08:41:25 tnn Exp $
+$NetBSD: patch-jdk_src_solaris_native_java_net_NetworkInterface.c,v 1.2 2015/06/10 11:38:51 tnn Exp $
Zones support.
---- jdk/src/solaris/native/java/net/NetworkInterface.c.orig 2015-02-02 15:37:12.000000000 +0000
+--- jdk/src/solaris/native/java/net/NetworkInterface.c.orig 2015-06-09 13:56:55.000000000 +0000
+++ jdk/src/solaris/native/java/net/NetworkInterface.c
@@ -43,6 +43,7 @@
#include <fcntl.h>
@@ -12,7 +12,7 @@ Zones support.
#endif
#ifdef __linux__
-@@ -67,13 +68,11 @@
+@@ -67,14 +68,12 @@
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/sockio.h>
@@ -23,12 +23,13 @@ Zones support.
-#elif defined(__OpenBSD__)
+#elif defined(__OpenBSD__) || defined(__NetBSD__)
#include <netinet/if_ether.h>
+ #include <netinet6/in6_var.h>
-#elif defined(__NetBSD__)
-#include <net/if_ether.h>
#endif
#include <net/if_dl.h>
#include <netinet/in_var.h>
-@@ -1748,7 +1747,8 @@ static short getSubnet(JNIEnv *env, int
+@@ -1749,7 +1748,8 @@ static short getSubnet(JNIEnv *env, int
@@ -38,7 +39,7 @@ Zones support.
/**
* Solaris specific DLPI code to get hardware address from a device.
-@@ -1765,11 +1765,18 @@ static int getMacFromDevice(JNIEnv *env,
+@@ -1766,11 +1766,18 @@ static int getMacFromDevice(JNIEnv *env,
int flags = 0;
/**
diff --git a/lang/openjdk8/patches/patch-jdk_src_solaris_native_sun_security_pkcs11_j2secmod_md.c b/lang/openjdk8/patches/patch-jdk_src_solaris_native_sun_security_pkcs11_j2secmod_md.c
deleted file mode 100644
index c0fe4bd68e9..00000000000
--- a/lang/openjdk8/patches/patch-jdk_src_solaris_native_sun_security_pkcs11_j2secmod_md.c
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-jdk_src_solaris_native_sun_security_pkcs11_j2secmod_md.c,v 1.1 2015/02/08 08:41:25 tnn Exp $
-
-No RTLD_NOLOAD on NetBSD < 6, use RTLD_LAZY instead.
-
---- jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c.orig 2015-02-02 15:37:12.000000000 +0000
-+++ jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c
-@@ -54,7 +54,7 @@ JNIEXPORT jlong JNICALL Java_sun_securit
- }
-
- // look up existing handle only, do not load
--#if defined(AIX)
-+#if defined(AIX) || !defined(RTLD_NOLOAD)
- void *hModule = dlopen(libName, RTLD_LAZY);
- #else
- void *hModule = dlopen(libName, RTLD_NOLOAD);