Date: Mon, 25 Dec 2017 06:25:53 +0000 (UTC) From: Greg Lewis <glewis@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457209 - in head/java/openjdk8: . files Message-ID: <201712250625.vBP6PrCg018368@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glewis Date: Mon Dec 25 06:25:53 2017 New Revision: 457209 URL: https://svnweb.freebsd.org/changeset/ports/457209 Log: . Don't incorrectly set the scopeId of an IPv6 interface on BSD. This fixes binding sockets for applications running on IPv6. PR: 224079 Submitted by: John W. O'Brien <john@saltant.com> Added: head/java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c (contents, props changed) Modified: head/java/openjdk8/Makefile Modified: head/java/openjdk8/Makefile ============================================================================== --- head/java/openjdk8/Makefile Mon Dec 25 05:26:16 2017 (r457208) +++ head/java/openjdk8/Makefile Mon Dec 25 06:25:53 2017 (r457209) @@ -2,7 +2,7 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER:S/^0//} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= java devel MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}/promoted/b${DIST_BUILD_NUMBER}/:jdk \ https://adopt-openjdk.ci.cloudbees.com/job/jtreg/${JTREG_JENKINS_BUILD}/artifact/:jtreg \ Added: head/java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c Mon Dec 25 06:25:53 2017 (r457209) @@ -0,0 +1,13 @@ +--- jdk/src/solaris/native/java/net/NetworkInterface.c.orig 2017-12-24 22:01:27.592305000 -0800 ++++ jdk/src/solaris/native/java/net/NetworkInterface.c 2017-12-24 22:06:51.899725000 -0800 +@@ -2075,10 +2075,6 @@ + if (ifa->ifa_addr == NULL || ifa->ifa_addr->sa_family != AF_INET6) + continue; + +- // set scope ID to interface index +- ((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_scope_id = +- getIndex(sock, ifa->ifa_name); +- + // add interface to the list + ifs = addif(env, sock, ifa->ifa_name, ifs, ifa->ifa_addr, NULL, + AF_INET6,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712250625.vBP6PrCg018368>