From owner-svn-ports-head@freebsd.org Mon Dec 25 06:25:54 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C874FEA24F2; Mon, 25 Dec 2017 06:25:54 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 94B2E79235; Mon, 25 Dec 2017 06:25:54 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBP6Prg7018370; Mon, 25 Dec 2017 06:25:53 GMT (envelope-from glewis@FreeBSD.org) Received: (from glewis@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBP6PrCg018368; Mon, 25 Dec 2017 06:25:53 GMT (envelope-from glewis@FreeBSD.org) Message-Id: <201712250625.vBP6PrCg018368@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glewis set sender to glewis@FreeBSD.org using -f From: Greg Lewis Date: Mon, 25 Dec 2017 06:25:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457209 - in head/java/openjdk8: . files X-SVN-Group: ports-head X-SVN-Commit-Author: glewis X-SVN-Commit-Paths: in head/java/openjdk8: . files X-SVN-Commit-Revision: 457209 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Dec 2017 06:25:54 -0000 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 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,