Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 78 lines (59 sloc) 2.17 KB
#! /bin/bash
# NOTE:
# the versioning scheme for JDK 9 and up hasn't stablized (i.e. is a mess!).
# see http://hg.openjdk.java.net/jdk-updates/jdk14u/tags
PKG=openjdk
# get the revision tag from http://hg.openjdk.java.net/jdk-updates/jdk14u/tags
OJDK_TAG=55692db5e928 # -> jdk-14.0.2+12
VERSION=14.0.2.12
BUILD=0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
set -xe
umask 022
BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.build.tmp
test -d $BUILD_TMPDIR && rm -rf $BUILD_TMPDIR
mkdir -p $BUILD_TMPDIR/home
export TMPDIR=$BUILD_TMPDIR
export HOME=$BUILD_TMPDIR/home
exec </dev/null
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi
EOF
. $PREFIX/profile
BUILDDIR=$PREFIX/build
mkdir -p $BUILDDIR
cd $BUILDDIR
# Install a bootstrap jdk first (13 is the minimum)
test -e openjdk-13+33_linux-x64_bin.tar.gz || wget \
https://beehive.molgen.mpg.de/8b10e59e89302975b1106c26024a23c8/openjdk-13%2b33_linux-x64_bin.tar.gz
## https://download.java.net/openjdk/jdk13/ri/openjdk-13+33_linux-x64_bin.tar.gz
test -d bootjdk || (tar -xf openjdk-13+33_linux-x64_bin.tar.gz; mv jdk-13 bootjdk)
# And now the real thing
test -e jdk14u-$OJDK_TAG.tar.gz || wget \
https://beehive.molgen.mpg.de/92a0c0728fc41b4fa65e26ee7fb1b962/jdk14u-55692db5e928.tar.gz
## https://hg.openjdk.java.net/jdk-updates/jdk14u/archive/$OJDK_TAG.tar.gz
test -d jdk14u-$OJDK_TAG || tar -xf jdk14u-$OJDK_TAG.tar.gz
cd jdk14u-$OJDK_TAG
mkdir -p jdkbuild
cd jdkbuild
bash ../configure \
--enable-unlimited-crypto=yes \
--disable-warnings-as-errors \
--disable-hotspot-gtest \
--with-native-debug-symbols=none \
--with-debug-level=release \
--with-stdc++lib=static \
--with-zlib=bundled \
--with-boot-jdk=$BUILDDIR/bootjdk \
--with-version-pre=ojdkbuild \
--with-version-update=2 \
--with-version-build=12 \
--with-version-opt='' \
--with-log=info
make images
# install
cp -a $BUILDDIR/jdk14u-$OJDK_TAG/jdkbuild/images/jdk/* $PREFIX
exit