diff options
author | Muflone | 2022-06-18 23:57:57 +0200 |
---|---|---|
committer | Muflone | 2022-06-18 23:57:57 +0200 |
commit | 0eb4a234c576ec7d333e2bf710e5f6c680c4bb29 (patch) | |
tree | d11bfda6069932d59f009ae34e0b65fb4b4633ec /PKGBUILD | |
parent | c1606ba66ef79c907c58e8a1c53ff940220a2edd (diff) | |
download | aur-0eb4a234c576ec7d333e2bf710e5f6c680c4bb29.tar.gz |
Updated package java-15-openjdk 15.0.3.u3-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -10,7 +10,7 @@ _majorver=15 _minorver=0 _securityver=3 _updatever=3 -pkgrel=1 +pkgrel=2 pkgver="${_majorver}.${_minorver}.${_securityver}.u${_updatever}" _hg_tag="jdk-${_majorver}.${_minorver}.${_securityver}+${_updatever}" arch=('x86_64') @@ -44,8 +44,8 @@ _nonheadless=(lib/libawt_xawt.{so,debuginfo} lib/libsplashscreen.{so,debuginfo}) prepare() { - # Avoid the use of any Java 8-13, actually incompatible with the build - export JAVA_HOME="/usr/lib/jvm/$(archlinux-java status | tail -n +2 | sort | cut -d ' ' -f 3 | sort -nr -k 2 -t '-' | grep -vE '8-|9-|10-|11-|12-|13-' -m 1)" + # Use only Java versions 14-15 + export JAVA_HOME="/usr/lib/jvm/$(archlinux-java status | tail -n +2 | sort | cut -d ' ' -f 3 | sort -nr -k 2 -t '-' | grep -E '14-|15-' -m 1)" } build() { @@ -70,6 +70,14 @@ build() { _CXXFLAGS="${CXXFLAGS/-fno-plt/}" fi + # TODO: Should be rechecked for the next releases + # compiling with -fexceptions leads to: + # /usr/bin/ld: /build/java-openjdk/src/jdk17u-jdk-17.0.3-2/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zPhysicalMemory.o: in function `ZList<ZMemory>::~ZList()': + # /build/java-openjdk/src/jdk17u-jdk-17.0.3-2/src/hotspot/share/gc/z/zList.hpp:54: undefined reference to `ZListNode<ZMemory>::~ZListNode()' + # collect2: error: ld returned 1 exit status + _CFLAGS=${CFLAGS/-fexceptions/} + _CXXFLAGS=${CXXFLAGS/-fexceptions/} + # CFLAGS, CXXFLAGS and LDFLAGS are ignored as shown by a warning # in the output of ./configure unless used like such: # --with-extra-cflags="${CFLAGS}" |