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

Re: Bug#739032: icedtea-web: FTBFS[kfreebsd-any]: sun.security.util.SecurityConstants not found



reassign 739032 src:openjdk-7
fixed 739032 openjdk-7/7u25-2.3.12-4
found 739032 openjdk-7/7u51-2.4.5-2
affects 739032 + icedtea-web
tags 739032 + patch
thanks

Please find a patch for this attached.  It may be appended to
debian/patches/kfreebsd-support-jdk.diff

I think this is still severity 'serious' because it is a regression that
causes icedtea-web to FTBFS;  and I don't think openjdk-7 can migrate to
testing anyway until that is built again.

Thanks,
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
--- openjdk/jdk/src/solaris/native/sun/net/portconfig.c	2014-01-28 18:02:26.000000000 +0000
+++ openjdk/jdk/src/solaris/native/sun/net/portconfig.c	2014-02-15 02:58:07.102243089 +0000
@@ -28,7 +28,7 @@
 #include <unistd.h>
 #include <errno.h>
 
-#if defined(_ALLBSD_SOURCE)
+#if defined(_ALLBSD_SOURCE) || defined (__FreeBSD_kernel__)
 #include <sys/sysctl.h>
 #endif
 
@@ -66,7 +66,7 @@
         range->higher = net_getParam("/dev/tcp", "tcp_largest_anon_port");
         return 0;
     }
-#elif defined(_ALLBSD_SOURCE)
+#elif defined(_ALLBSD_SOURCE) || defined (__FreeBSD_kernel__)
     {
         int ret;
         size_t size = sizeof(range->lower);
--- openjdk/jdk/src/solaris/classes/sun/net/PortConfig.java	2014-01-28 18:02:26.000000000 +0000
+++ openjdk/jdk/src/solaris/classes/sun/net/PortConfig.java	2014-02-15 21:57:57.534279073 +0000
@@ -55,6 +55,9 @@
                     } else if (os.contains("OS X")) {
                         defaultLower = 49152;
                         defaultUpper = 65535;
+                    } else if (os.contains("FreeBSD")) {
+                        defaultLower = 10000;
+                        defaultUpper = 65535;
                     } else {
                         throw new InternalError(
                             "sun.net.PortConfig: unknown OS");

Reply to: