Skip to content

Commit

Permalink
openjdk17 - updated from 17.0.8+7 to 17.0.8.1+1
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Sep 13, 2023
1 parent c37c3d9 commit 5abd9cd
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions build/openjdk17/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,34 @@
. ../../lib/build.sh

PROG=openjdk
VER=17
UPDATE=8
BUILD=7
VER=17.0.8.1+1
PKG=runtime/java/openjdk17
SUMMARY="openjdk $VER"
SUMMARY="openjdk ${VER%%.*}"
DESC="Open-source implementation of the seventeenth edition of the "
DESC+="Java SE Platform"

# The full jdk version string is:
# feature.interim.update.patch.extra1.extra2.extra3-pre+build-opt
# We pass 'opt' explicitly to configure (see below) and currently don't parse
# the 'extra' values out of the version string.
if [[ $VER =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?\+([0-9]+)$ ]]
then
V_FEATURE=${BASH_REMATCH[1]}
V_INTERIM=${BASH_REMATCH[3]}
V_UPDATE=${BASH_REMATCH[5]}
V_PATCH=${BASH_REMATCH[7]}
V_BUILD=${BASH_REMATCH[8]}
else
logerr "Could not parse openjdk version $VER"
fi

# check ooce/fonts/liberation for current version
LIBERATIONFONTSVER=2.1.5
SKIP_LICENCES="SILv1.1"

set_arch 64

set_builddir "jdk${VER}u-jdk-$VER.0.$UPDATE-$BUILD"
set_builddir "jdk${V_FEATURE}u-jdk-${VER//+/-}"

BMI_EXPECTED=1
SKIP_RTIME_CHECK=1
Expand All @@ -47,16 +60,16 @@ BUILD_DEPENDS_IPS="

RUN_DEPENDS_IPS="runtime/java/jexec"

VERHUMAN=jdk${VER}u${UPDATE}-b$BUILD
IVER=${VER}.0
VERHUMAN="jdk${V_FEATURE}u${V_UPDATE}${V_PATCH:+.}$V_PATCH-b$V_BUILD"
IVER="$V_FEATURE.$V_INTERIM"

IROOT=usr/jdk/instances
IFULL=$IROOT/$PROG$IVER

OOCEPREFIX=/opt/ooce

XFORM_ARGS="
-DVER=$VER
-DVER=$V_FEATURE
-DIVER=$IVER
-DIROOT=$IROOT
-DIFULL=$IFULL
Expand All @@ -67,8 +80,7 @@ XFORM_ARGS="
NO_PARALLEL_MAKE=1

CONFIGURE_OPTS="
--with-version-build=$BUILD
--with-version-pre=
--with-version-string=$VER
--with-version-opt=omnios-$RELVER
--with-toolchain-type=gcc
--with-boot-jdk=/$IFULL
Expand Down Expand Up @@ -109,7 +121,7 @@ make_install() {
}

init
download_source $PROG "jdk-$VER.0.$UPDATE+$BUILD"
download_source $PROG "jdk-$VER"
patch_source

# Also download the liberation fonts archive. Fonts from here will be
Expand All @@ -120,7 +132,7 @@ BUILDDIR=$LFDIR download_source liberation-fonts $LFDIR
prep_build autoconf -oot
chmod +x $CONFIGURE_CMD
build -noctf
VER=$IVER.$UPDATE DASHREV=$BUILD make_package
VER=${VER%%+*} DASHREV=$V_BUILD make_package
clean_up

# Vim hints
Expand Down

0 comments on commit 5abd9cd

Please sign in to comment.