Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package java-25-openjdk for openSUSE:Factory 
checked in at 2026-11-20 14:43:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/java-25-openjdk (Old)
 and      /work/SRC/openSUSE:Factory/.java-25-openjdk.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "java-25-openjdk"

Fri Nov 20 14:43:56 2026 rev:15 rq:1398545 version:25.0.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/java-25-openjdk/java-25-openjdk.changes  
2026-11-18 18:31:49.401535817 +0100
+++ 
/work/SRC/openSUSE:Factory/.java-25-openjdk.new.1251/java-25-openjdk.changes    
    2026-11-20 14:44:39.235126680 +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-25-openjdk.spec ++++++
--- /var/tmp/diff_new_pack.ziBS5C/_old  2026-11-20 14:44:41.883238286 +0100
+++ /var/tmp/diff_new_pack.ziBS5C/_new  2026-11-20 14:44:41.887238454 +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
@@ -205,6 +211,7 @@
 BuildRequires:  binutils
 BuildRequires:  cups-devel
 BuildRequires:  desktop-file-utils
+BuildRequires:  elfutils
 BuildRequires:  fdupes
 BuildRequires:  fontconfig-devel
 BuildRequires:  freetype2-devel
@@ -495,6 +502,7 @@
 %endif
 %endif
     --disable-keep-packaged-modules \
+    --with-native-debug-symbols=%{debug_symbols} \
     --with-debug-level=%{debugbuild} \
     --with-zlib=system \
     --with-libjpeg=system \
@@ -514,9 +522,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
 
@@ -536,19 +543,35 @@
         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
+# 25+ puts .debuginfo only into the symbols image
+cp -r $JAVA_HOME/../symbols/* $JAVA_HOME/
+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 . %{SOURCE13}

Reply via email to