[packages/openjdk8] Let our RPM handle debug symbols
jajcus
jajcus at pld-linux.org
Mon Sep 21 10:24:44 CEST 2015
commit 2dab85d0343da652f1e0de36f1a84c3d8a568540
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Mon Sep 21 10:21:34 2015 +0200
Let our RPM handle debug symbols
Use --disable-debug-symbols to disable openjdk magic for creating
debuginfo/diz files and re-enable some optimizations tweaking for
debugging.
openjdk8.spec | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/openjdk8.spec b/openjdk8.spec
index ecc08a7..a99256f 100644
--- a/openjdk8.spec
+++ b/openjdk8.spec
@@ -6,7 +6,6 @@
# - build alternative VM for x32
# - include icedtea-sound?
# - port PLD-specific changes from icedtea7?
-# - '*** WARNING: no sources found for ...'
%bcond_with bootstrap # build a bootstrap version, using icedtea6
%bcond_without cacerts # don't include the default CA certificates
@@ -446,10 +445,12 @@ export SHELL=/bin/bash
chmod a+x configure
+# disable-debug-symbols so openjdk debuginfo handling won't conflict with ours
%configure \
--with-extra-cflags="%{rpmcflags}" \
--with-extra-cxxflags="%{rpmcxxflags}" \
--with-extra-ldflags="%{rpmldflags}" \
+ --disable-debug-symbols \
--with-giflib=bundled \
--with-libjpeg=system \
--with-libpng=system \
@@ -459,13 +460,18 @@ chmod a+x configure
specdir="$(dirname build/*-release/spec.gmk)"
cat > $specdir/custom-spec.gmk <<EOF
+# OpenJDK build system depends on bash
SHELL=/bin/bash
EOF
-[ -d tmp-bin ] || ln -s "$specdir/jdk/bin" tmp-bin
+[ -L tmp-bin ] || ln -s "$specdir/jdk/bin" tmp-bin
%{__make} all \
-j1 JOBS=%{__jobs} \
- LOG=debug
+ LOG=debug \
+ # these are normally set when --disable-debug-symbols is not used \
+ LIBMANAGEMENT_OPTIMIZATION=LOW \
+ LIBHPROF_OPTIMIZATION=LOW \
+ LIBVERIFY_OPTIMIZATION=LOW
export PATH="$(pwd)/build-bin:$PATH"
%{?with_cacerts:%{__sh} %{SOURCE10}}
@@ -756,11 +762,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%dir %{jredir}/lib/%{jre_arch}/jli
%attr(755,root,root) %{jredir}/lib/%{jre_arch}/jli/*.so
-%{jredir}/lib/%{jre_arch}/jli/*.diz
%dir %{jredir}/lib/%{jre_arch}/server
%{jredir}/lib/%{jre_arch}/server/Xusage.txt
%attr(755,root,root) %{jredir}/lib/%{jre_arch}/server/*.so
-%{jredir}/lib/%{jre_arch}/server/*.diz
%{jredir}/lib/%{jre_arch}/jvm.cfg
%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libattach.so
%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt.so
@@ -796,7 +800,6 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libunpack.so
%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libverify.so
%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libzip.so
-%{jredir}/lib/%{jre_arch}/*.diz
%{jredir}/lib/images
%{jredir}/lib/management
%{jredir}/lib/security
@@ -825,7 +828,6 @@ rm -rf $RPM_BUILD_ROOT
%{jredir}/lib/rt.jar
%{jredir}/lib/sound.properties
%{jredir}/lib/tzdb.dat
-%{jredir}/lib/*.diz
%{jvmjardir}
%files jre-X11
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openjdk8.git/commitdiff/db09f86e3f7cbc62ed66ed95bb221a0b9ff793cb
More information about the pld-cvs-commit
mailing list