aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-02-12 07:45:25 +0800
committerjkim <jkim@FreeBSD.org>2013-02-12 07:45:25 +0800
commit420b700e640fd4019769c5af8653aa750ddbd2fc (patch)
tree1c2031acb100f45c337e6578316014f6a1045fb9 /java
parent2b24119ce3e35bba17bc4a673cb775f518ac61a5 (diff)
downloadfreebsd-ports-gnome-420b700e640fd4019769c5af8653aa750ddbd2fc.tar.gz
freebsd-ports-gnome-420b700e640fd4019769c5af8653aa750ddbd2fc.tar.zst
freebsd-ports-gnome-420b700e640fd4019769c5af8653aa750ddbd2fc.zip
Add a patch to fix MulticastSocket.setInterface().
http://hg.openjdk.java.net/bsd-port/bsd-port/jdk/rev/bfa676f5b5db Submitted by: oliver
Diffstat (limited to 'java')
-rw-r--r--java/openjdk6-jre/Makefile2
-rw-r--r--java/openjdk6/Makefile1
-rw-r--r--java/openjdk6/files/patch-set36
3 files changed, 38 insertions, 1 deletions
diff --git a/java/openjdk6-jre/Makefile b/java/openjdk6-jre/Makefile
index 051f4402754c..c7c90243e91e 100644
--- a/java/openjdk6-jre/Makefile
+++ b/java/openjdk6-jre/Makefile
@@ -1,6 +1,6 @@
# $FreeBSD$
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= java devel
PKGNAMESUFFIX= -jre
diff --git a/java/openjdk6/Makefile b/java/openjdk6/Makefile
index e1b35fb92733..cbb7444f8b41 100644
--- a/java/openjdk6/Makefile
+++ b/java/openjdk6/Makefile
@@ -3,6 +3,7 @@
PORTNAME= openjdk6
PORTVERSION= b27
+PORTREVISION?= 1
CATEGORIES= java devel
MASTER_SITES= http://download.java.net/openjdk/jdk6/promoted/${PORTVERSION}/ \
http://download.java.net/jaxp/openjdk/jdk6/:jaxp \
diff --git a/java/openjdk6/files/patch-set b/java/openjdk6/files/patch-set
index d64c58204f17..ae59dafe8471 100644
--- a/java/openjdk6/files/patch-set
+++ b/java/openjdk6/files/patch-set
@@ -18127,6 +18127,42 @@
int ttl = 1;
setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (char *)&ttl,
sizeof(ttl));
+@@ -1317,7 +1338,7 @@
+ /*
+ * value is an InetAddress.
+ */
+-#ifdef __solaris__
++#if defined(__solaris__) || defined(_ALLBSD_SOURCE)
+ if (ipv6_available()) {
+ mcast_set_if_by_addr_v6(env, this, fd, value);
+ } else {
+@@ -1336,7 +1357,7 @@
+ /*
+ * value is a NetworkInterface.
+ */
+-#ifdef __solaris__
++#if defined(__solaris__) || defined(_ALLBSD_SOURCE)
+ if (ipv6_available()) {
+ mcast_set_if_by_if_v6(env, this, fd, value);
+ } else {
+@@ -1413,7 +1434,7 @@
+ */
+ static void setMulticastLoopbackMode(JNIEnv *env, jobject this, int fd,
+ jint opt, jobject value) {
+-#ifdef __solaris__
++#if defined(__solaris__) || defined(_ALLBSD_SOURCE)
+ if (ipv6_available()) {
+ mcast_set_loop_v6(env, this, fd, value);
+ } else {
+@@ -1981,7 +2002,7 @@
+ fd = (*env)->GetIntField(env, fdObj, IO_fd_fdID);
+ }
+ /* setsockopt to be correct ttl */
+-#ifdef __solaris__
++#if defined(__solaris__) || defined(_ALLBSD_SOURCE)
+ if (ipv6_available()) {
+ setHopLimit(env, fd, ttl);
+ } else {
@@ -2374,18 +2395,30 @@
mname6.ipv6mr_interface = idx;
}