summaryrefslogtreecommitdiffstats
path: root/development/OpenJDK17/OpenJDK17.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/OpenJDK17/OpenJDK17.SlackBuild')
-rw-r--r--development/OpenJDK17/OpenJDK17.SlackBuild23
1 files changed, 17 insertions, 6 deletions
diff --git a/development/OpenJDK17/OpenJDK17.SlackBuild b/development/OpenJDK17/OpenJDK17.SlackBuild
index 6317d0c3a8..fb25bfff3a 100644
--- a/development/OpenJDK17/OpenJDK17.SlackBuild
+++ b/development/OpenJDK17/OpenJDK17.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=OpenJDK17
-VERSION=${VERSION:-17.0.3}
+VERSION=${VERSION:-17.0.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -87,7 +87,7 @@ export BOOT_JAVA=$TMP/$BSDIR
# Unpack the jtreg package to run the tests:
if [ "${TESTS:-no}" = "yes" ]; then
rm -rf $TMP/jtreg{,-reports}
- tar xvf $CWD/jtreg-6.1+1.tar.gz
+ tar xvf $CWD/jtreg-7.3.1+1.tar.gz
JTREG="--with-jtreg=$TMP/jtreg"
else
JTREG=""
@@ -132,12 +132,13 @@ sh configure \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-giflib=system \
- --with-harfbuzz=system \
+ --with-harfbuzz=bundled \
--with-lcms=system \
--with-libjpeg=system \
--with-libpng=system \
- --with-zlib=system \
+ --with-zlib=bundled \
--disable-precompiled-headers \
+ --enable-libffi-bundling \
--enable-unlimited-crypto \
--disable-warnings-as-errors \
--with-native-debug-symbols=none \
@@ -167,6 +168,8 @@ for s in 16 24 32 48; do
install -vDm644 src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \
$PKG/usr/share/icons/hicolor/${s}x${s}/apps/java.png
done
+# the 24x24 icon is missized, so we fix it here:
+cp $CWD/java.png $PKG/usr/share/icons/hicolor/24x24/apps
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -187,6 +190,14 @@ mv $PKG/usr/lib$LIBDIRSUFFIX/java/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+#Thanks AlienBOB for this part!
+# Generate a cacerts file from the certificates installed by ca-certificates
+# in Slackware - the "cacerts" in the OpenJDK sources may be outdated.
+# This requires 'trust' program from p11-kit:
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/java/lib/security/cacerts
+trust extract --format=java-cacerts --filter=ca-anchors --purpose=server-auth \
+ $PKG/usr/lib${LIBDIRSUFFIX}/java/lib/security/cacerts
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENSE ADDITIONAL_LICENSE_INFO ASSEMBLY_EXCEPTION README.md \
@@ -202,7 +213,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/share/applications
cat > $PKG/usr/share/applications/openjdk-java.desktop << EOF
[Desktop Entry]
-Name=OpenJDK Java ${VERSION} Runtime
+Name=OpenJDK ${VERSION} Runtime
Comment=OpenJDK Java ${VERSION} Runtime
Exec=/usr/lib${LIBDIRSUFFIX}/java/bin/java -jar
Terminal=false
@@ -221,7 +232,7 @@ Exec=/usr/lib${LIBDIRSUFFIX}/java/bin/jconsole
Terminal=false
Type=Application
Icon=java
-Categories=Application;System;
+Categories=System;
EOF
# Create /etc/profile.d scripts: