Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libpulp for openSUSE:Factory checked 
in at 2025-09-18 21:08:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libpulp (Old)
 and      /work/SRC/openSUSE:Factory/.libpulp.new.27445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libpulp"

Thu Sep 18 21:08:57 2025 rev:13 rq:1305556 version:0.3.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/libpulp/libpulp.changes  2025-09-11 
14:43:28.394282612 +0200
+++ /work/SRC/openSUSE:Factory/.libpulp.new.27445/libpulp.changes       
2025-09-18 21:09:22.904179243 +0200
@@ -1,0 +2,5 @@
+Wed Sep 17 15:29:56 UTC 2025 - Giuliano Belinassi <[email protected]>
+
+- Fix `ldconfig` constructing ld.so.cache in the new snapshot (bsc#1249417).
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libpulp.spec ++++++
--- /var/tmp/diff_new_pack.zDCiho/_old  2025-09-18 21:09:24.980266479 +0200
+++ /var/tmp/diff_new_pack.zDCiho/_new  2025-09-18 21:09:24.988266815 +0200
@@ -122,10 +122,10 @@
 %define addline     include /var/livepatches/ld.so.conf
 
 # There are special logic needed in sle-micro onwards.
-%if 0%{?suse_version} >= 1600
-
-# Add instance of /var/livepatches if it doesn't already exist.
-grep -qxF '%{addline}' %{ld_so_conf} || echo '%{addline}' >> %{ld_so_conf}
+if [ "$TRANSACTIONAL_UPDATE" = "true" ] && [ "x$TRANSACTIONAL_UPDATE_ROOT" != 
"x" ]; then
+  # Add instance of /var/livepatches if it doesn't already exist.
+  grep -qxF '%{addline}' %{ld_so_conf} || echo '%{addline}' >> %{ld_so_conf}
+fi
 
 %postun -n libpulp-tools
 
@@ -133,7 +133,6 @@
   # Delete all instances of libpulp in the ld_so_conf.
   sed -i '\#%{addline}#d' %{ld_so_conf}
 fi
-%endif
 
 %post -n libpulp0 -p /sbin/ldconfig
 %postun -n libpulp0 -p /sbin/ldconfig

++++++ rpm-helper ++++++
--- /var/tmp/diff_new_pack.zDCiho/_old  2025-09-18 21:09:25.248277740 +0200
+++ /var/tmp/diff_new_pack.zDCiho/_new  2025-09-18 21:09:25.296279757 +0200
@@ -86,21 +86,26 @@
   local addline="/var/livepatches/$PACKAGE/$VER/libs"
   local line_pattern="/var/livepatches/$PACKAGE/.*/libs"
 
-  [[ -e $ld_so_conf ]] && sed -i "\#$line_pattern#d" $ld_so_conf
+  # check if we are running a transactional update. if no, there is no need to
+  # move libraries around.
+  if [ "$transactional_update" = "true" ] && [ "x$transactional_update_root" 
!= "x" ]; then
+    [[ -e $ld_so_conf ]] && sed -i "\#$line_pattern#d" $ld_so_conf
 
-  echo "$addline" >> $ld_so_conf
+    echo "$addline" >> $ld_so_conf
 
-  mkdir -p $addline
+    mkdir -p $addline
 
-  for i in $(seq 1 3); do
-    shift
-  done
+    for i in $(seq 1 3); do
+      shift
+    done
 
-  for file in "$@"; do
-    [[ -e $file ]] && install -D -Z $file "$addline/$(basename $file)"
-  done
+    for file in "$@"; do
+      [[ -e $file ]] && install -D -Z $file "$addline/$(basename $file)"
+    done
 
-  /sbin/ldconfig
+    # Update ldconfig cache for the old snapshot.
+    /sbin/ldconfig -r /proc/1/root/
+  fi
 }
 
 # Execute this on sle-micro to move the new libraries to the current snapshot.
@@ -115,14 +120,19 @@
   local addline="/var/livepatches/$PACKAGE/$VER/libs"
   local line_pattern="/var/livepatches/$PACKAGE/.*/libs"
 
-  # Remove the line of ld.so.conf
-  [[ -e $ld_so_conf ]] && sed -i "\#$line_pattern#d" $ld_so_conf
-
-  # Update ldconfig cache.
-  /sbin/ldconfig
+  # check if we are running a transactional update. if no, there is no need to
+  # move libraries around.
+  if [ "$transactional_update" = "true" ] && [ "x$transactional_update_root" 
!= "x" ]; then
+    # Remove the line of ld.so.conf
+    [[ -e $ld_so_conf ]] && sed -i "\#$line_pattern#d" $ld_so_conf
+
+    # Update ldconfig cache for the new snapshot, as programs may be using
+    # libraries in that folder.
+    /sbin/ldconfig
 
-  # Delete copied libs.
-  rm -rf $addline
+    # Delete copied libs.
+    rm -rf $addline
+  fi
 }
 
 # Parse first argument (install or remove).

Reply via email to