diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile index a028e4a0e1e0..f52e8aef91f9 100644 --- a/java/openjdk8/Makefile +++ b/java/openjdk8/Makefile @@ -2,7 +2,7 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER:S/^0//} -PORTREVISION= 4 +PORTREVISION= 5 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-endian b/java/openjdk8/files/patch-endian new file mode 100644 index 000000000000..1c67bf2c877c --- /dev/null +++ b/java/openjdk8/files/patch-endian @@ -0,0 +1,44 @@ +--- common/autoconf/flags.m4 Fri Feb 08 17:57:16 2019 -0800 ++++ common/autoconf/flags.m4 Fri Feb 08 22:49:40 2019 -0800 +@@ -548,6 +548,9 @@ + else + CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" + fi ++ if test "x$OPENJDK_TARGET_OS" = xbsd; then ++ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_LITTLE_ENDIAN" ++ fi + else + # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they + # are defined in the system? +@@ -556,6 +559,9 @@ + else + CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" + fi ++ if test "x$OPENJDK_TARGET_OS" = xbsd; then ++ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_BIG_ENDIAN" ++ fi + fi + if test "x$OPENJDK_TARGET_CPU" = xppc64le; then + CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2" +--- common/autoconf/generated-configure.sh Fri Feb 08 17:57:16 2019 -0800 ++++ common/autoconf/generated-configure.sh Fri Feb 08 22:49:40 2019 -0800 +@@ -41879,6 +41879,9 @@ + else + CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" + fi ++ if test "x$OPENJDK_TARGET_OS" = xbsd; then ++ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_LITTLE_ENDIAN" ++ fi + else + # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they + # are defined in the system? +@@ -41887,6 +41890,9 @@ + else + CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" + fi ++ if test "x$OPENJDK_TARGET_OS" = xbsd; then ++ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_BIG_ENDIAN" ++ fi + fi + if test "x$OPENJDK_TARGET_CPU" = xppc64le; then + CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2"