[packages/openjdk9] jhsdb built only with serviceability agent (exclude from zero)

atler atler at pld-linux.org
Mon Aug 31 16:38:04 CEST 2020


commit 748613633b01be3ece0ee24058842748c2d7eb9b
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Aug 31 16:27:04 2020 +0200

    jhsdb built only with serviceability agent (exclude from zero)

 openjdk9.spec | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/openjdk9.spec b/openjdk9.spec
index 56c4260..56cab7d 100644
--- a/openjdk9.spec
+++ b/openjdk9.spec
@@ -11,6 +11,10 @@
 %define		with_aot	1
 %endif
 
+%ifarch x32
+%define		with_zero	1
+%endif
+
 # class data version seen with file(1) that this jvm is able to load
 %define		_classdataversion 53.0
 
@@ -427,9 +431,7 @@ chmod a+x configure
 
 # disable-debug-symbols so openjdk debuginfo handling won't conflict with ours
 %configure \
-%ifarch x32
-	--with-jvm-variants=zero \
-%endif
+	%{?with_zero:--with-jvm-variants=zero} \
 	--with-boot-jdk="%{java_home}" \
 	--with-extra-cflags="%{rpmcppflags} %{rpmcflags} -fcommon -fno-tree-dse" \
 	--with-extra-cxxflags="%{rpmcppflags} %{rpmcxxflags} -fcommon -fno-tree-dse" \
@@ -532,7 +534,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/jdb
 %attr(755,root,root) %{_bindir}/jdeprscan
 %attr(755,root,root) %{_bindir}/jdeps
-%attr(755,root,root) %{_bindir}/jhsdb
+%{!?with_zero:%attr(755,root,root) %{_bindir}/jhsdb}
 %attr(755,root,root) %{_bindir}/jimage
 %attr(755,root,root) %{_bindir}/jinfo
 %attr(755,root,root) %{_bindir}/jlink
@@ -610,7 +612,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{dstdir}/bin/jdb
 %attr(755,root,root) %{dstdir}/bin/jdeprscan
 %attr(755,root,root) %{dstdir}/bin/jdeps
-%attr(755,root,root) %{dstdir}/bin/jhsdb
+%{!?with_zero:%attr(755,root,root) %{dstdir}/bin/jhsdb}
 %attr(755,root,root) %{dstdir}/bin/jimage
 %attr(755,root,root) %{dstdir}/bin/jinfo
 %attr(755,root,root) %{dstdir}/bin/jlink
@@ -729,9 +731,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{dstdir}/lib/libmlib_image.so
 %attr(755,root,root) %{dstdir}/lib/libnet.so
 %attr(755,root,root) %{dstdir}/lib/libnio.so
-%ifnarch x32
-%attr(755,root,root) %{dstdir}/lib/libsaproc.so
-%endif
+%{!?with_zero:%attr(755,root,root) %{dstdir}/lib/libsaproc.so}
 %{?with_sunec:%attr(755,root,root) %{dstdir}/lib/libsunec.so}
 %attr(755,root,root) %{dstdir}/lib/libunpack.so
 %attr(755,root,root) %{dstdir}/lib/libverify.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openjdk9.git/commitdiff/748613633b01be3ece0ee24058842748c2d7eb9b



More information about the pld-cvs-commit mailing list