diff options
Diffstat (limited to 'development/zulu-openjdk8/zulu-openjdk8.SlackBuild')
-rw-r--r-- | development/zulu-openjdk8/zulu-openjdk8.SlackBuild | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/development/zulu-openjdk8/zulu-openjdk8.SlackBuild b/development/zulu-openjdk8/zulu-openjdk8.SlackBuild index b33063288b..5d204a8b9d 100644 --- a/development/zulu-openjdk8/zulu-openjdk8.SlackBuild +++ b/development/zulu-openjdk8/zulu-openjdk8.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for zulu-openjdk8 # Copyright (c) 2017-2018, Sébastien Ballet <slacker6896 at gmail.com> +# Copyright (c) 2022-2024, Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=zulu-openjdk8 -VERSION=${VERSION:-8.0.322} -ZULUVERSION=${ZULUVERSION:-8.60.0.21} +VERSION=${VERSION:-8.0.402} +ZULUVERSION=${ZULUVERSION:-8.76.0.17} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -51,9 +52,19 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i686" ]; then ZULU_ARCH=i686 LIBDIRSUFFIX="" + JVMLIBARCH="i386" elif [ "$ARCH" = "x86_64" ]; then ZULU_ARCH=x64 LIBDIRSUFFIX="64" + JVMLIBARCH="amd64" +elif [ "$ARCH" = "arm" ]; then + ZULU_ARCH=aarch32hf + LIBDIRSUFFIX="" + JVMLIBARCH="aarch32" +elif [ "$ARCH" = "aarch64" ]; then + ZULU_ARCH=aarch64 + LIBDIRSUFFIX="64" + JVMLIBARCH="aarch64" else echo "Architecture ${ARCH} is not supported." exit 1 @@ -79,14 +90,24 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +if [ "$ARCH" = "aarch64" ] ; then + find $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/bin -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs patchelf --set-interpreter /lib64/ld-linux-aarch64.so.1 2> /dev/null || true +fi + +find $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM -type f -name "*.so" -exec chmod +x {} \; 2> /dev/null || true + # Define whether or not a symlink to libjvm.so library must # be created into /usr/lib${LIBDIRSUFFIX}. Can be set to "yes" # or "no". Default to "yes" # if [ "${CREATE_LIBJVM_SYMLINK:-yes}" = "yes" ] ; then - ln -sf \ - ${PRGNAM}/jre/lib/${LIB_ARCH}/server/libjvm.so \ - $PKG/usr/lib${LIBDIRSUFFIX}/libjvm.so + ( + cd $PKG/usr/lib${LIBDIRSUFFIX}/ + if [ -e $PRGNAM/jre/lib/${JVMLIBARCH}/server/libjvm.so ] ; then + ln -sf $PRGNAM/jre/lib/${JVMLIBARCH}/server/libjvm.so + fi + ) fi mkdir -p ${PKG}/etc/profile.d |