compiling a project using binary jdk11

This commit is contained in:
slava86 2020-07-06 22:05:38 +03:00
parent 1956f1d2da
commit 7c79585c9c
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,4 @@
sources: sources:
"shenandoah-jdk11-shenandoah-jdk-11.0.8+6-4curve.tar.xz": 675c2ab8b8793ab87d0cf9b77b2196b71f4afbca "shenandoah-jdk11-shenandoah-jdk-11.0.8+6-4curve.tar.xz": 675c2ab8b8793ab87d0cf9b77b2196b71f4afbca
"tapsets-icedtea-3.15.0.tar.xz": 7ae2cba67467825b2c2a5fec7aea041865023002 "tapsets-icedtea-3.15.0.tar.xz": 7ae2cba67467825b2c2a5fec7aea041865023002
"OpenJDK11U-jdk_x64_linux_hotspot_11.0.7_10.tar.gz": 5627bcceee613c4764c120e941c8d24b3e5a6e33

View file

@ -29,6 +29,8 @@
#use the standard one from java (temporarily) #use the standard one from java (temporarily)
%bcond_with timezonejava %bcond_with timezonejava
%bcond_with binary
# The -g flag says to use strip -g instead of full strip on DSOs or EXEs. # The -g flag says to use strip -g instead of full strip on DSOs or EXEs.
# This fixes detailed NMT and other tools which need minimal debug info. # This fixes detailed NMT and other tools which need minimal debug info.
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879 # See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879
@ -1092,6 +1094,8 @@ Source15: TestSecurityProperties.java
# ROSA-specific # ROSA-specific
Source300: %{name}.rpmlintrc Source300: %{name}.rpmlintrc
Source301: OpenJDK11U-jdk_x64_linux_hotspot_11.0.7_10.tar.gz
############################################ ############################################
# #
# RPM/distribution specific patches # RPM/distribution specific patches
@ -1405,7 +1409,7 @@ if [ %{include_debug_build} -eq 0 -a %{include_normal_build} -eq 0 ] ; then
echo "You have disabled both include_debug_build and include_normal_build. That is a no go." echo "You have disabled both include_debug_build and include_normal_build. That is a no go."
exit 13 exit 13
fi fi
%setup -q -c -n %{uniquesuffix ""} -T -a 0 %setup -q -c -n %{uniquesuffix ""} -T -a 0 -b 301
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084 # https://bugzilla.redhat.com/show_bug.cgi?id=1189084
prioritylength=`expr length %{priority}` prioritylength=`expr length %{priority}`
if [ $prioritylength -ne 8 ] ; then if [ $prioritylength -ne 8 ] ; then
@ -1536,7 +1540,11 @@ bash ../configure \
--with-vendor-url="https://www.redhat.com/" \ --with-vendor-url="https://www.redhat.com/" \
--with-vendor-bug-url="%{bugs}" \ --with-vendor-bug-url="%{bugs}" \
--with-vendor-vm-bug-url="%{bugs}" \ --with-vendor-vm-bug-url="%{bugs}" \
%if ! %{with binary}
--with-boot-jdk=/usr/lib/jvm/java-%{buildjdkver}-openjdk \ --with-boot-jdk=/usr/lib/jvm/java-%{buildjdkver}-openjdk \
%else
--with-boot-jdk="%{_builddir}/jdk-11.0.7+10" \
%endif
--with-debug-level=$debugbuild \ --with-debug-level=$debugbuild \
--with-native-debug-symbols=internal \ --with-native-debug-symbols=internal \
--enable-unlimited-crypto \ --enable-unlimited-crypto \