diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-04-24 21:07:43 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2022-04-24 21:07:43 +0200 |
commit | f1f1e3017cd62ab4b8111006b65e162ee371150f (patch) | |
tree | 73d94ed82045ffd1f4427de2df2ae661c31beed1 /extra | |
parent | 63f4ca42fca3eb0cb887ac575c78b4099a2335fb (diff) | |
download | packages-f1f1e3017cd62ab4b8111006b65e162ee371150f.tar.xz |
extra/java17-openjdk: copied from java-openjsk (which is now JDK 18)
Diffstat (limited to 'extra')
-rw-r--r-- | extra/java17-openjdk/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/extra/java17-openjdk/PKGBUILD b/extra/java17-openjdk/PKGBUILD new file mode 100644 index 00000000..9284bb09 --- /dev/null +++ b/extra/java17-openjdk/PKGBUILD @@ -0,0 +1,42 @@ +# set _JARCH to IA32 +_JARCH=x86 + +# make sure -no-plt is set also for pentium4 and i486 (otherwise +# we get GOT linking errors) +eval "$( + declare -f build | \ + sed ' + /CARCH/s/i686/${CARCH}/ + ' +)" + +# pentium4-specific +if [ "${CARCH}" = "pentium4" ]; then + # force 4-byte stack alignment on SSE aptimized systems, see FS32#75 + eval "$( + declare -f build | \ + sed ' + /unset CFLAGS/ i \ + _CFLAGS="${_CFLAGS} -mincoming-stack-boundary=2" \ + _CXXFLAGS="${_CXXFLAGS} -mincoming-stack-boundary=2" + ' + )" +fi + +# fix location of images in case they are wrong +_imgdir="${_imgdir//--/-${_JARCH}-}" + +# pandoc is mainly broken currently (FS32#180) +makedepends=(${makedepends[@]//pandoc/}) + +# ZGC garbage collector seems to be 64-bit only +eval "$( + declare -f build | \ + sed ' + s/--with-jvm-features=zgc// + ' +)" + +# we need a OpenJdk which is at least 14, setting it to 15 +makedepends=(${makedepends[@]//java-environment>=11/}) +makedepends+=('java-environment>=15') |