Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package java-17-openjdk for openSUSE:Factory
checked in at 2026-11-19 16:54:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/java-17-openjdk (Old)
and /work/SRC/openSUSE:Factory/.java-17-openjdk.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "java-17-openjdk"
Thu Nov 19 16:54:34 2026 rev:55 rq:1398543 version:17.0.21.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/java-17-openjdk/java-17-openjdk.changes
2026-11-18 18:31:19.973289079 +0100
+++
/work/SRC/openSUSE:Factory/.java-17-openjdk.new.1251/java-17-openjdk.changes
2026-11-19 16:54:55.871315466 +0100
@@ -1,0 +2,10 @@
+Wed Nov 18 15:22:33 UTC 2026 - Fridrich Strba <[email protected]>
+
+- Merge the external native debug symbols back into the binaries
+ before packaging, so that the -debuginfo packages carry DWARF
+ again; the jmods stay small (bsc#1282358)
+- Check the debug symbols with eu-readelf instead of nm
+- Keep internal debug symbols on SLE12: its eu-unstrip
+ (elfutils 0.158) cannot merge them
+
+-------------------------------------------------------------------
@@ -42 +52 @@
- used (#boo1282358)
+ used (bsc#12823588)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ java-17-openjdk.spec ++++++
--- /var/tmp/diff_new_pack.KD0oIR/_old 2026-11-19 16:54:57.378379348 +0100
+++ /var/tmp/diff_new_pack.KD0oIR/_new 2026-11-19 16:54:57.381379475 +0100
@@ -78,8 +78,14 @@
%endif
%if %{debug}
%global debugbuild slowdebug
+%global debug_symbols internal
%else
%global debugbuild release
+%global debug_symbols external
+%endif
+# SLE12 eu-unstrip (elfutils 0.158) cannot merge binutils 2.41 .debuginfo
+%if 0%{?suse_version} < 1500
+%global debug_symbols internal
%endif
%if %{bootcycle}
%global imagesdir bootcycle-build/images
@@ -216,6 +222,7 @@
BuildRequires: binutils
BuildRequires: cups-devel
BuildRequires: desktop-file-utils
+BuildRequires: elfutils
BuildRequires: fdupes
BuildRequires: fontconfig-devel
BuildRequires: freetype2-devel
@@ -524,6 +531,7 @@
%endif
%endif
--disable-keep-packaged-modules \
+ --with-native-debug-symbols=%{debug_symbols} \
--with-debug-level=%{debugbuild} \
--enable-sysconf-nss \
--with-zlib=system \
@@ -548,9 +556,8 @@
LOG=trace \
%{imagestarget}
-# remove redundant *diz and *debuginfo files
+# remove redundant *diz files
find %{imagesdir}/jdk -iname '*.diz' -exec rm {} \;
-find %{imagesdir}/jdk -iname '*.debuginfo' -exec rm {} \;
popd >& /dev/null
@@ -561,19 +568,33 @@
rm %{buildoutputdir}/%{imagesdir}/jdk/lib/security/cacerts
fi
+%if "%{debug_symbols}" == "external"
+# external symbols keep the jmods small; merge them back so that
+# find-debuginfo makes the usual -debuginfo/-debugsource packages
+find $JAVA_HOME -name '*.debuginfo' | while read d
+do
+ f=${d%.debuginfo}
+ if [ -f $f.so ] ; then f=$f.so ; fi
+ # eu-unstrip wants a fully stripped file
+ objcopy --strip-all --remove-section=.gnu_debuglink $f $f.stripped
+ eu-unstrip -o $f.full $f.stripped $d
+ cat $f.full > $f
+ rm $f.stripped $f.full $d
+done
+%endif
+
# Check debug symbols are present and can identify code
-SERVER_JVM="$JAVA_HOME/lib/server/libjvm.so"
-if [ -f "$SERVER_JVM" ] ; then
- nm -aCl "$SERVER_JVM" | grep javaCalls.cpp
-fi
-CLIENT_JVM="$JAVA_HOME/lib/client/libjvm.so"
-if [ -f "$CLIENT_JVM" ] ; then
- nm -aCl "$CLIENT_JVM" | grep javaCalls.cpp
-fi
-ZERO_JVM="$JAVA_HOME/lib/zero/libjvm.so"
-if [ -f "$ZERO_JVM" ] ; then
- nm -aCl "$ZERO_JVM" | grep javaCalls.cpp
-fi
+find $JAVA_HOME -name libjvm.so | grep -q .
+find $JAVA_HOME -name libjvm.so -print0 | while read -d $'\0' lib
+do
+ echo "Testing $lib for debug symbols"
+ test $(eu-readelf -S "$lib" | grep -E "\] \.debug_(info|abbrev)" | wc
--lines) == 2
+ eu-readelf -s "$lib" | grep -E ' FILE +LOCAL +DEFAULT +ABS
javaCalls\.(cpp|o)$'
+ if eu-readelf -S "$lib" | grep "\] .gnu_debuglink" | grep PROGBITS ; then
+ echo "bad .gnu_debuglink section."
+ false
+ fi
+done
# Check unlimited policy has been used
$JAVA_HOME/bin/javac -d . %{SOURCE14}