# openjdk15/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. Installed copies of this package must include, and use, the "java- doc" wrapper provided. #--------------------------------------------------------------------- 2. Networking must be turned on in order for this package to build. However, it appears that Internet access isn't required. If we under- stand correctly, the key requirement is the loopback device including route. #--------------------------------------------------------------------- 3. This version of Java is much easier to build than 1.8.X. However, we keep 1.8.X around because some packages and/or old Java programs require it. #--------------------------------------------------------------------- [buildtimes] 00.21 hours (or 012.45 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM 00.43 hours (or 025.78 minutes) - HP EliteBook 8560w 32GB RAM 00.85 hours (or 051.10 minutes) - ThinkPad E540 i7 4x2 16GB RAM #--------------------------------------------------------------------- [settings] altpkg = yes defer = glibc64 license = See "license*.txt" in installed tree licfile = LICENSE unpack = relaxed dontfind = openjdk08 openjdk10 setpaths = openjdk15 xorg zlib tmpsize = 5262M #--------------------------------------------------------------------- [depends] actools alsa coreutils cpio cups fontconfig freetype2 gawk giflib5 grep gtkcore gzip infozip jpeg libpng libxp make mercurial # Not presently used openssl:strict patch pigz pkgconf rebuild-certs sed tar wget # Not presently used xerces3 xorg zlib #--------------------------------------------------------------------- [configure] JAVACERTS=/etc/ssl/java/cacerts.jks RCFLAG=$JAVACERTS.rebuild rm -fr $RCFLAG if [ \! -f $JAVACERTS ]; then rm -fr $JAVACERTS mkdir -p $JAVACERTS rm -fr $JAVACERTS cp -p $PKGDIR_SPECIAL/cacerts.jks $JAVACERTS touch $RCFLAG fi #--------------------------------------------------------------------- MANBASE=$PKGDIR_PROD/man mkdir -p $MANBASE unset ANT_HOME JAVA_HOME FTDIR=$PRODTREE/freetype2 FTINCDIR=$FTDIR/include/freetype2 export TEMP=/ram/openjdk export TEMPDIR=$TEMP export TMP=$TEMP export TMPDIR=$TEMP rm -fr $TEMP mkdir -p $TEMP #--------------------------------------------------------------------- n=`getconf _NPROCESSORS_ONLN` if [ "@$n" == "@4" ]; then n=3; fi if [ "@$n" == "@8" ]; then n=6; fi if [ "@$LACBITS" == "@32" ]; then n=2; fi NUMJOBS=$n #--------------------------------------------------------------------- BOOTBASE=openjdk15-laclin-prebuilt$LACBITS tar jxf $PKGDIR_SPECIAL/$BOOTBASE.tar.bz2 HERE=`pwd` echo Current directory: $HERE PATH=$HERE/$BOOTBASE/bin:$PATH hash java echo Boot Java: `which java` #--------------------------------------------------------------------- rm -fr $PKGDIR_PROD/jvm/openjdk*/javadoc* echo LACARCHHOST=$LACARCHHOST LACBITS=$LACBITS bash ./configure \ --prefix=$PKGDIR_PROD \ --disable-ccache \ --disable-precompiled-headers \ --disable-warnings-as-errors \ --enable-unlimited-crypto \ --mandir=$MANBASE \ --openjdk-target=$LACARCHHOST \ \ --with-freetype=bundled \ --with-giflib=bundled \ --with-lcms=bundled \ --with-libjpeg=bundled \ --with-libpng=bundled \ --with-zlib=system \ \ --with-alsa=$PRODTREE/alsa \ --with-cups=$PRODTREE/cups \ \ --with-cacerts-file=$JAVACERTS \ --with-jobs=$NUMJOBS \ --with-stdc++lib=dynamic \ --with-version-build="15" \ --with-version-pre="" \ --with-version-opt="" \ --with-x #--------------------------------------------------------------------- [build] JAVACERTS=/etc/ssl/java/cacerts.jks RCFLAG=$JAVACERTS.rebuild BINDIR=$PKGDIR_PROD/bin LIBDIR=$PKGDIR_PROD/lib mkdir -p $BINDIR $LIBDIR smpmake || make || make make install || make install cd $BINDIR perl $PKGDIR_SPECIAL/fix-openjdk-bin-links cd $PKGDIR_PROD ln -nsf jvm/openjdk*/include . cd $LIBDIR touch hidden for x in libawt libawt_xawt libjava libjawt libjli libjvm do ln -nsf `find ../jvm/ -name $x.so` . done cd $PKGDIR_PROD for subdir in `find . -type d -name security | grep lib` do pushd $subdir ln -nsf $JAVACERTS . ln -nsf `basename $JAVACERTS` cacerts popd done cd $PKGDIR_PROD/jvm/openjdk*/bin rm -fr javadoc.bin mv javadoc javadoc.bin cat > javadoc << 'END' $0.bin -Xdoclint:none $* END chmod 755 javadoc if [ -f $RCFLAG ]; then . srcpkgpaths $PKGDIR_PROD $PRODTREE/openssl/makecerts/rebuild-certs.sh rm -fr $RCFLAG fi pushd $PKGDIR_PROD ln -nsf `find . -name jmods` . cd lib/ ln -nsf `find .. -name jvm.cfg` . ln -nsf `find .. -name modules` . popd #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = tbd url_home = tbd url_lfs = tbd url_tarball = https://github.com/openjdk/jdk15u/archive/\ jdk-15.0.2-ga.tar.gz #--------------------------------------------------------------------- [history] 210218 Added package. Started with 15.0.2. 211017 Reworked package to build in the 32-bits distro