11 Commits

Author SHA256 Message Date
7d4eeea7b6 Accepting request 1308718 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1308718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpulp?expand=0&rev=15
2025-10-03 13:44:16 +00:00
bd91639ce3 - Update package with libpulp-0.3.17:
- Fix dlopen and dlmopen search paths (bsc#1250436).

OBS-URL: https://build.opensuse.org/package/show/devel:tools/libpulp?expand=0&rev=34
2025-10-02 22:16:59 +00:00
b552666c76 Accepting request 1306564 from devel:tools
- Fix ld.so.conf being modified in SLE-16.

OBS-URL: https://build.opensuse.org/request/show/1306564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpulp?expand=0&rev=14
2025-09-22 17:29:16 +00:00
a1cd9501c4 - Fix ld.so.conf being modified in SLE-16.
OBS-URL: https://build.opensuse.org/package/show/devel:tools/libpulp?expand=0&rev=32
2025-09-22 14:48:49 +00:00
6492cfff30 Accepting request 1305556 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1305556
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpulp?expand=0&rev=13
2025-09-18 19:08:57 +00:00
15733eda4d - Fix ldconfig constructing ld.so.cache in the new snapshot (bsc#1249417).
OBS-URL: https://build.opensuse.org/package/show/devel:tools/libpulp?expand=0&rev=30
2025-09-17 18:49:55 +00:00
c2276b57c0 - Update package with libpulp-0.3.16:
- Improve `ulp <command> --help` (bsc#1243787).
  - Add support to glibc 2.42.
  - Fix `ldconfig` constructing ld.so.cache in the new snapshot (bsc#1249417).

OBS-URL: https://build.opensuse.org/package/show/devel:tools/libpulp?expand=0&rev=29
2025-09-17 15:07:47 +00:00
9b8c56e4e9 Accepting request 1303704 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1303704
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpulp?expand=0&rev=12
2025-09-11 12:39:56 +00:00
88a3274d82 - Update package with libpulp-0.3.16:
- Improve `ulp <command> --help` (bsc#1243787).
  - Add support to glibc 2.42.

OBS-URL: https://build.opensuse.org/package/show/devel:tools/libpulp?expand=0&rev=27
2025-09-10 19:20:34 +00:00
885e8af048 Accepting request 1286733 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1286733
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpulp?expand=0&rev=11
2025-06-18 17:42:05 +00:00
7b16253ec5 Accepting request 1286732 from home:gbelinassi
- Update package with libpulp-0.3.15:
  - Fix race condition on ppc64le livepatching (bsc#1244263)
  - Fix SIGABRT when non-valid JSON is given at input (bsc#1243923)
  - Fix linking against libpthread on older versions of glibc for ppc64le.

OBS-URL: https://build.opensuse.org/request/show/1286732
OBS-URL: https://build.opensuse.org/package/show/devel:tools/libpulp?expand=0&rev=25
2025-06-18 15:24:58 +00:00
5 changed files with 70 additions and 25 deletions

Binary file not shown.

BIN
libpulp-0.3.17.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,34 @@
-------------------------------------------------------------------
Thu Oct 2 14:45:48 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>
- Update package with libpulp-0.3.17:
- Fix dlopen and dlmopen search paths (bsc#1250436).
-------------------------------------------------------------------
Mon Sep 22 14:39:22 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>
- Fix ld.so.conf being modified in SLE-16.
-------------------------------------------------------------------
Wed Sep 17 15:29:56 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>
- Fix `ldconfig` constructing ld.so.cache in the new snapshot (bsc#1249417).
-------------------------------------------------------------------
Thu Sep 4 21:12:23 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>
- Update package with libpulp-0.3.16:
- Improve `ulp <command> --help` (bsc#1243787).
- Add support to glibc 2.42.
-------------------------------------------------------------------
Wed Jun 18 13:57:40 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>
- Update package with libpulp-0.3.15:
- Fix race condition on ppc64le livepatching (bsc#1244263)
- Fix SIGABRT when non-valid JSON is given at input (bsc#1243923)
- Fix linking against libpthread on older versions of glibc for ppc64le.
-------------------------------------------------------------------
Wed Apr 30 15:39:17 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>

View File

@@ -17,7 +17,7 @@
Name: libpulp
Version: 0.3.14
Version: 0.3.17
Release: 0
Summary: Userspace live patching library and tools
License: LGPL-2.1-or-later
@@ -122,10 +122,15 @@ find %{buildroot}/%{_prefix} -name libpulp.so -delete
%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}
else
# Remove any instance of /var/livepatches from ld.so.conf if it exists. There
# is a bug in older verisons of libpulp tools that add this live even for
# non-transactional systems.
sed -i '\#%{addline}#d' %{ld_so_conf}
fi
%postun -n libpulp-tools
@@ -133,7 +138,6 @@ if [ "$1" == "0" ]; then
# 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

View File

@@ -86,21 +86,26 @@ do_movelibs()
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 @@ do_removelibs()
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
# 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.
/sbin/ldconfig
# 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).