Date: Friday, February 18, 2022 @ 00:17:18 Author: freswa Revision: 437651
upgpkg: java-openjdk 17.0.3.u2-1 Modified: java-openjdk/trunk/PKGBUILD ----------+ PKGBUILD | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-02-18 00:10:35 UTC (rev 437650) +++ PKGBUILD 2022-02-18 00:17:18 UTC (rev 437651) @@ -1,5 +1,6 @@ # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Maintainer: Guillaume ALAUX <guilla...@archlinux.org> +# Maintainer: Frederik Schwan <freswa at archlinux dot org> +# Contributor: Guillaume ALAUX <guilla...@archlinux.org> # TODO add test, see about packaging jtreg and using it here @@ -7,13 +8,11 @@ pkgname=('jre-openjdk-headless' 'jre-openjdk' 'jdk-openjdk' 'openjdk-src' 'openjdk-doc') _majorver=17 _minorver=0 -_securityver=1 -_updatever=12 +_securityver=3 +_updatever=2 +pkgver=${_majorver}.${_minorver}.${_securityver}.u${_updatever} pkgrel=1 -pkgver=${_majorver}.${_minorver}.${_securityver}.u${_updatever} -#pkgver=${_majorver}.u${_updatever} _git_tag=jdk-${_majorver}.${_minorver}.${_securityver}+${_updatever} -#_git_tag=jdk-${_majorver}+${_updatever} arch=('x86_64') url='https://openjdk.java.net/' license=('custom') @@ -21,11 +20,12 @@ 'libxrender' 'libxtst' 'libxt' 'libxext' 'libxrandr' 'alsa-lib' 'pandoc' 'graphviz' 'freetype2' 'libjpeg-turbo' 'giflib' 'libpng' 'lcms2' 'libnet' 'bash' 'harfbuzz' 'gcc-libs' 'glibc') +options=(!lto) source=(https://github.com/openjdk/jdk${_majorver}u/archive/${_git_tag}.tar.gz freedesktop-java.desktop freedesktop-jconsole.desktop freedesktop-jshell.desktop) -sha256sums=('8c076203a6f85ab916b3e54de1992bcbcc5ffe580c52b1ac8d52ca7afb9f02d1' +sha256sums=('afe41b341bd7e91a6a9cbc9400958f6fd4cc54550fd630889ad288c68a18bb4e' '85c4742764590783160af74587a47269e6797fbdf17ec485c7644bd239adf61d' 'abac1ab09a33a3654378bc69be5a7cf075263ab3ae9efec1eb25cf388e711bb7' 'e7cce0ecf868f656d8dc2eb25ab82ab665526a0a28aba20f02632dd29962dac3') @@ -66,6 +66,14 @@ _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}"