Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package java-21-openjdk for openSUSE:Factory
checked in at 2026-11-20 14:43:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/java-21-openjdk (Old)
and /work/SRC/openSUSE:Factory/.java-21-openjdk.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "java-21-openjdk"
Fri Nov 20 14:43:50 2026 rev:32 rq:1398544 version:21.0.13.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/java-21-openjdk/java-21-openjdk.changes
2026-11-18 18:32:03.338126245 +0100
+++
/work/SRC/openSUSE:Factory/.java-21-openjdk.new.1251/java-21-openjdk.changes
2026-11-20 14:44:32.351836580 +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
+
+-------------------------------------------------------------------
@@ -41 +51 @@
- used (#boo1282358)
+ used (bsc#12823588)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ java-21-openjdk.spec ++++++
--- /var/tmp/diff_new_pack.3bUZcB/_old 2026-11-20 14:44:36.574014526 +0100
+++ /var/tmp/diff_new_pack.3bUZcB/_new 2026-11-20 14:44:36.579014737 +0100
@@ -74,8 +74,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
@@ -194,6 +200,7 @@
BuildRequires: binutils
BuildRequires: cups-devel
BuildRequires: desktop-file-utils
+BuildRequires: elfutils
BuildRequires: fdupes
BuildRequires: fontconfig-devel
BuildRequires: freetype2-devel
@@ -494,6 +501,7 @@
%endif
%endif
--disable-keep-packaged-modules \
+ --with-native-debug-symbols=%{debug_symbols} \
--with-debug-level=%{debugbuild} \
--enable-sysconf-nss \
--with-zlib=system \
@@ -518,9 +526,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
@@ -531,22 +538,34 @@
rm %{buildoutputdir}/%{imagesdir}/jdk/lib/security/cacerts
fi
-%ifnarch s390x
-# 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
+%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
+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}
$JAVA_HOME/bin/java --add-opens java.base/javax.crypto=ALL-UNNAMED
TestCryptoLevel