diff options
author | jkim <jkim@FreeBSD.org> | 2014-11-12 07:53:59 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2014-11-12 07:53:59 +0800 |
commit | 9f062483bc05124ac350fb77b0baec3f83468b12 (patch) | |
tree | e879f715fad8290fae087de0bbf1b8f556c69b2b /java | |
parent | 7c646ae586ae6e14c551575a626f11582e2f18f4 (diff) | |
download | freebsd-ports-gnome-9f062483bc05124ac350fb77b0baec3f83468b12.tar.gz freebsd-ports-gnome-9f062483bc05124ac350fb77b0baec3f83468b12.tar.zst freebsd-ports-gnome-9f062483bc05124ac350fb77b0baec3f83468b12.zip |
- Fix build on i386 with clang. [1]
- Fix mismerged libnio.so. [2]
Reported by: antoine [1]
Tested by: antoine [1]
PR: 194941 [2]
Diffstat (limited to 'java')
-rw-r--r-- | java/openjdk8/Makefile | 1 | ||||
-rw-r--r-- | java/openjdk8/files/patch-bsd | 25 |
2 files changed, 22 insertions, 4 deletions
diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile index 6438336ddf0f..8179fdde74b0 100644 --- a/java/openjdk8/Makefile +++ b/java/openjdk8/Makefile @@ -2,6 +2,7 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER:S/^0//} +PORTREVISION= 1 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 \ diff --git a/java/openjdk8/files/patch-bsd b/java/openjdk8/files/patch-bsd index e1eb27e46983..968b6b09425e 100644 --- a/java/openjdk8/files/patch-bsd +++ b/java/openjdk8/files/patch-bsd @@ -2218,6 +2218,16 @@ #define JNIEXPORT __attribute__((visibility("default"))) #define JNIIMPORT __attribute__((visibility("default"))) #else +--- ./hotspot/src/cpu/x86/vm/x86_32.ad 2014-11-11 15:50:09.000000000 -0500 ++++ ./hotspot/src/cpu/x86/vm/x86_32.ad 2014-11-11 16:05:43.000000000 -0500 +@@ -1210,6 +1210,7 @@ + + + Unimplemented(); ++ return 0; + } + + #ifndef PRODUCT --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ ./hotspot/src/os/bsd/vm/decoder_bsd.cpp Wed Nov 05 15:01:44 2014 -0800 @@ -0,0 +1,47 @@ @@ -6189,12 +6199,13 @@ -DELAYLOAD:secur32.dll -DELAYLOAD:iphlpapi.dll, \ --- ./jdk/make/lib/NioLibraries.gmk Tue Sep 09 12:00:58 2014 -0700 +++ ./jdk/make/lib/NioLibraries.gmk Wed Nov 05 12:14:24 2014 -0800 -@@ -77,9 +77,27 @@ +@@ -77,9 +77,28 @@ UnixNativeDispatcher.c endif +ifeq ($(OPENJDK_TARGET_OS), bsd) + BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) ++ BUILD_LIBNIO_SRC += $(JDK_TOPDIR)/src/bsd/native/sun/nio/ch + BUILD_LIBNIO_FILES += \ + BsdNativeDispatcher.c \ + GnomeFileTypeDetector.c \ @@ -6218,7 +6229,7 @@ BUILD_LIBNIO_FILES += \ InheritedChannel.c \ NativeThread.c \ -@@ -149,6 +167,7 @@ +@@ -149,6 +168,7 @@ LDFLAGS_SUFFIX_windows := jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \ $(JDK_OUTPUTDIR)/objs/libnet/net.lib \ advapi32.lib, \ @@ -6226,7 +6237,7 @@ LDFLAGS_SUFFIX_macosx := -ljava -lnet -pthread -framework CoreFoundation, \ LDFLAGS_SUFFIX :=, \ VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ -@@ -194,6 +213,7 @@ +@@ -194,6 +214,7 @@ LDFLAGS_SUFFIX_linux := -lpthread $(LIBDL) -ljava -ljvm, \ LDFLAGS_SUFFIX_posix := -lnio -lnet, \ LDFLAGS_SUFFIX_solaris := -lsocket -ljava -ljvm -lc, \ @@ -6411,7 +6422,7 @@ +}; --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ ./jdk/make/mapfiles/libnio/mapfile-bsd Wed Nov 05 12:14:24 2014 -0800 -@@ -0,0 +1,189 @@ +@@ -0,0 +1,195 @@ +# +# Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -6526,6 +6537,12 @@ + Java_sun_nio_ch_Net_localInetAddress; + Java_sun_nio_ch_Net_localPort; + Java_sun_nio_ch_Net_poll; ++ Java_sun_nio_ch_Net_pollconnValue; ++ Java_sun_nio_ch_Net_pollerrValue; ++ Java_sun_nio_ch_Net_pollhupValue; ++ Java_sun_nio_ch_Net_pollinValue; ++ Java_sun_nio_ch_Net_pollnvalValue; ++ Java_sun_nio_ch_Net_polloutValue; + Java_sun_nio_ch_Net_setIntOption0; + Java_sun_nio_ch_Net_setInterface4; + Java_sun_nio_ch_Net_setInterface6; |