pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/openjdk7 openjdk7: Fixes for SunOS and C99.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/75088c3e8bf5
branches:  trunk
changeset: 383182:75088c3e8bf5
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jul 24 16:07:24 2018 +0000

description:
openjdk7: Fixes for SunOS and C99.

diffstat:

 lang/openjdk7/Makefile                                                                 |   7 +++-
 lang/openjdk7/distinfo                                                                 |   8 ++-
 lang/openjdk7/patches/patch-jdk_make_sun_security_ec_Makefile                          |   8 ++--
 lang/openjdk7/patches/patch-jdk_src_share_native_sun_awt_libpng_pngpriv.h              |  16 ++++++++
 lang/openjdk7/patches/patch-jdk_src_share_native_sun_security_ec_impl_ecc__impl.h      |  10 ++--
 lang/openjdk7/patches/patch-jdk_src_solaris_native_com_sun_security_auth_module_Unix.c |  18 ++++++++++
 6 files changed, 54 insertions(+), 13 deletions(-)

diffs (155 lines):

diff -r d7cb34d595b7 -r 75088c3e8bf5 lang/openjdk7/Makefile
--- a/lang/openjdk7/Makefile    Tue Jul 24 15:10:58 2018 +0000
+++ b/lang/openjdk7/Makefile    Tue Jul 24 16:07:24 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.126 2018/07/18 00:06:20 joerg Exp $
+# $NetBSD: Makefile,v 1.127 2018/07/24 16:07:24 jperkin Exp $
 
 JDK_MICRO=     141
 DISTNAME=      openjdk-1.7.${JDK_MICRO}-20170813
@@ -137,6 +137,11 @@
 CFLAGS+=       -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
 CXXFLAGS+=     -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
 
+.if !empty(CC_VERSION:Mgcc-[67].*)
+CFLAGS+=       -fno-lifetime-dse
+CFLAGS+=       -fno-delete-null-pointer-checks
+.endif
+
 .if !empty(PKGSRC_COMPILER:Mclang)
 _WRAP_EXTRA_ARGS.CXX+= -Wno-parentheses -Wno-sign-conversion \
                        -Wno-shorten-64-to-32 -Wno-conversion \
diff -r d7cb34d595b7 -r 75088c3e8bf5 lang/openjdk7/distinfo
--- a/lang/openjdk7/distinfo    Tue Jul 24 15:10:58 2018 +0000
+++ b/lang/openjdk7/distinfo    Tue Jul 24 16:07:24 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.90 2017/09/04 16:00:19 joerg Exp $
+$NetBSD: distinfo,v 1.91 2018/07/24 16:07:24 jperkin Exp $
 
 SHA1 (openjdk7/apache-ant-1.9.4-bin.tar.bz2) = 99bff3c702dd79076f4e705e3541f7e35bbb4306
 RMD160 (openjdk7/apache-ant-1.9.4-bin.tar.bz2) = 7f4263d617bbf40a15eab401369d18a755f8d260
@@ -142,7 +142,7 @@
 SHA1 (patch-jdk_make_sun_awt_Makefile) = 981082d4dfda204f09a66b9fc452bea218d3ce6a
 SHA1 (patch-jdk_make_sun_awt_mawt.gmk) = 5379efff76c3cbb1bf56554aaa7890f169b6fc7d
 SHA1 (patch-jdk_make_sun_rmi_rmi_Makefile) = ef42db5c61e940b66dfead0e9fcf328d125b3460
-SHA1 (patch-jdk_make_sun_security_ec_Makefile) = 30e35128a763b8d70e02e302f2e3ae5b7a24a99b
+SHA1 (patch-jdk_make_sun_security_ec_Makefile) = 84e99a4e28e505e0cc76210d13d98f602c809b95
 SHA1 (patch-jdk_make_sun_splashscreen_Makefile) = 81d6fb29a2063667ac153f723330663c0e71f2c2
 SHA1 (patch-jdk_make_sun_xawt_Makefile) = 735cf251798c2b6a638fc57dc90fe0750433f26d
 SHA1 (patch-jdk_src_share_classes_com_sun_script_javascript_ExternalScriptable.java) = 9e9c0254740742cd103c0cb33d3aa564ad7de01f
@@ -156,13 +156,15 @@
 SHA1 (patch-jdk_src_share_classes_com_sun_script_javascript_RhinoWrapFactory.java) = b34d66405825fb4173eb5b517e004ae724686155
 SHA1 (patch-jdk_src_share_native_sun_awt_image_jpeg_imageioJPEG.c) = 8502fc7da308daafc135db38e4513347a39368ba
 SHA1 (patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c) = ca10ce2d79f11925b7ec52fc1b5dfad9b25ddddb
-SHA1 (patch-jdk_src_share_native_sun_security_ec_impl_ecc__impl.h) = 13aae05b649af0d1f908b0a9b6f60c55d8baa7d4
+SHA1 (patch-jdk_src_share_native_sun_awt_libpng_pngpriv.h) = 3b5333206892e8ff31220ef434549cea25d1d53f
+SHA1 (patch-jdk_src_share_native_sun_security_ec_impl_ecc__impl.h) = 667b1d15778a701e8f60fc0a8452cb49596e2e6c
 SHA1 (patch-jdk_src_solaris_bin_ergo__i586.c) = 7b1d1c7f84e752ef7c53d5419dc3ab5213fec716
 SHA1 (patch-jdk_src_solaris_classes_java_lang_UNIXProcess.java.bsd) = dfa4eae8f6e0296fcba8f1519f11b4de8ac95f36
 SHA1 (patch-jdk_src_solaris_classes_sun_net_PortConfig.java) = 5ac6eaf6b32ad8bef50830364ea1fd455bdbbb3f
 SHA1 (patch-jdk_src_solaris_classes_sun_nio_ch_DefaultAsynchronousChannelProvider.java) = 2bb10608969e9ef747d1cc0a6b8796fe4b38a4e7
 SHA1 (patch-jdk_src_solaris_classes_sun_nio_fs_BsdFileSystemProvider.java) = b57411309b8d46de6a9ab3606d72690908989d50
 SHA1 (patch-jdk_src_solaris_native_com_sun_media_sound_PLATFORM__API__BsdOS__ALSA__PCM.c) = 1a7a73c41a35b1719d8a68e9cea2aa47d5e828fc
+SHA1 (patch-jdk_src_solaris_native_com_sun_security_auth_module_Unix.c) = e3e61fd8f81fecfc5a65e070cabff02cbb74a27f
 SHA1 (patch-jdk_src_solaris_native_java_lang_java__props__md.c) = 3bc9e099a6c3152645882e4fba128ae8e709efbb
 SHA1 (patch-jdk_src_solaris_native_java_net_NetworkInterface.c) = 63af9eee1f5bbc695a14cab51fa7089eb2a0a04b
 SHA1 (patch-jdk_src_solaris_native_java_net_net__util__md.c) = 883fb8cf76f9a6d47e1c96badb07be162add80f7
diff -r d7cb34d595b7 -r 75088c3e8bf5 lang/openjdk7/patches/patch-jdk_make_sun_security_ec_Makefile
--- a/lang/openjdk7/patches/patch-jdk_make_sun_security_ec_Makefile     Tue Jul 24 15:10:58 2018 +0000
+++ b/lang/openjdk7/patches/patch-jdk_make_sun_security_ec_Makefile     Tue Jul 24 16:07:24 2018 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-jdk_make_sun_security_ec_Makefile,v 1.1 2013/06/15 09:31:06 jperkin Exp $
+$NetBSD: patch-jdk_make_sun_security_ec_Makefile,v 1.2 2018/07/24 16:07:25 jperkin Exp $
 
 GCC compatability.
 
---- jdk/make/sun/security/ec/Makefile.orig     2013-02-20 17:07:30.000000000 +0000
+--- jdk/make/sun/security/ec/Makefile.orig     2017-08-13 05:55:16.000000000 +0000
 +++ jdk/make/sun/security/ec/Makefile
-@@ -187,6 +187,15 @@ ifeq ($(NATIVE_ECC_AVAILABLE), true)
+@@ -188,6 +188,15 @@ ifeq ($(NATIVE_ECC_AVAILABLE), true)
    #
    OTHER_CFLAGS += -DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B
  
@@ -13,7 +13,7 @@
 +  # It causes problems with g++: _B_FALSE instead of B_FALSE
 +  ifeq ($(PLATFORM), solaris)
 +    ifeq ($(CC_VERSION), gcc)
-+      OTHER_CFLAGS += -D_XOPEN_SOURCE -D_XOPEN_VERSION=4 -D__EXTENSIONS__
++      OTHER_CFLAGS += -D__EXTENSIONS__
 +    endif # CC_VERSION
 +  endif # PLATFORM
 +
diff -r d7cb34d595b7 -r 75088c3e8bf5 lang/openjdk7/patches/patch-jdk_src_share_native_sun_awt_libpng_pngpriv.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk7/patches/patch-jdk_src_share_native_sun_awt_libpng_pngpriv.h Tue Jul 24 16:07:24 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-jdk_src_share_native_sun_awt_libpng_pngpriv.h,v 1.1 2018/07/24 16:07:25 jperkin Exp $
+
+Fix build on SunOS with C99.
+
+--- jdk/src/share/native/sun/awt/libpng/pngpriv.h.orig 2017-08-13 05:55:19.000000000 +0000
++++ jdk/src/share/native/sun/awt/libpng/pngpriv.h
+@@ -63,7 +63,9 @@
+  * Windows/Visual Studio) there is no effect; the OS specific tests below are
+  * still required (as of 2011-05-02.)
+  */
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */
++#endif
+ 
+ #ifndef PNG_VERSION_INFO_ONLY
+ /* Standard library headers not required by png.h: */
diff -r d7cb34d595b7 -r 75088c3e8bf5 lang/openjdk7/patches/patch-jdk_src_share_native_sun_security_ec_impl_ecc__impl.h
--- a/lang/openjdk7/patches/patch-jdk_src_share_native_sun_security_ec_impl_ecc__impl.h Tue Jul 24 15:10:58 2018 +0000
+++ b/lang/openjdk7/patches/patch-jdk_src_share_native_sun_security_ec_impl_ecc__impl.h Tue Jul 24 16:07:24 2018 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-jdk_src_share_native_sun_security_ec_impl_ecc__impl.h,v 1.1 2013/06/15 09:31:06 jperkin Exp $
+$NetBSD: patch-jdk_src_share_native_sun_security_ec_impl_ecc__impl.h,v 1.2 2018/07/24 16:07:25 jperkin Exp $
 
 GCC compatability.
 
---- jdk/src/share/native/sun/security/ec/impl/ecc_impl.h.orig  2013-02-20 17:07:30.000000000 +0000
+--- jdk/src/share/native/sun/security/ec/impl/ecc_impl.h.orig  2017-08-13 05:55:20.000000000 +0000
 +++ jdk/src/share/native/sun/security/ec/impl/ecc_impl.h
-@@ -38,12 +38,13 @@
+@@ -39,12 +39,13 @@
  
  #ifndef _ECC_IMPL_H
  #define _ECC_IMPL_H
@@ -19,11 +19,11 @@
  #include "ecl-exp.h"
  
  /*
-@@ -57,6 +58,11 @@ typedef unsigned long ulong_t;
+@@ -58,6 +59,11 @@ typedef unsigned long ulong_t;
  typedef enum { B_FALSE, B_TRUE } boolean_t;
  #endif /* __linux__ */
  
-+#if defined(__solaris__) && defined(_GNU_SOURCE)
++#if defined(__solaris__) && defined(__XOPEN_OR_POSIX)
 +#define B_FALSE _B_FALSE
 +#define B_TRUE _B_TRUE
 +#endif /* __solaris__ && _GNU_SOURCE */
diff -r d7cb34d595b7 -r 75088c3e8bf5 lang/openjdk7/patches/patch-jdk_src_solaris_native_com_sun_security_auth_module_Unix.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk7/patches/patch-jdk_src_solaris_native_com_sun_security_auth_module_Unix.c    Tue Jul 24 16:07:24 2018 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-jdk_src_solaris_native_com_sun_security_auth_module_Unix.c,v 1.1 2018/07/24 16:07:25 jperkin Exp $
+
+Fix build on SunOS with C99.
+
+--- jdk/src/solaris/native/com/sun/security/auth/module/Unix.c.orig    2017-08-13 05:55:21.000000000 +0000
++++ jdk/src/solaris/native/com/sun/security/auth/module/Unix.c
+@@ -24,7 +24,11 @@
+  */
+ 
+ #ifdef __solaris__
++#  if (__STDC_VERSION__ - 0 < 199901L)
+ #define _POSIX_C_SOURCE 199506L
++#  else
++#define _POSIX_PTHREAD_SEMANTICS
++#  endif
+ #endif
+ 
+ #include <jni.h>



Home | Main Index | Thread Index | Old Index