From 885d7925a8cafc57907d6805d16471e56d1efc90d474a271a53b4c7565cf3ffd Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Wed, 27 Sep 2023 10:02:08 +0000 Subject: [PATCH] - systemd.spec: switch to %ldconfig_scriptlets OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1448 --- systemd.changes | 5 +++++ systemd.spec | 11 ++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/systemd.changes b/systemd.changes index 0dcf172a..5393e48b 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 27 09:52:33 UTC 2023 - Franck Bui + +- systemd.spec: switch to %ldconfig_scriptlets + ------------------------------------------------------------------- Wed Sep 27 07:31:06 UTC 2023 - Franck Bui diff --git a/systemd.spec b/systemd.spec index 4577683f..40deaf40 100644 --- a/systemd.spec +++ b/systemd.spec @@ -1126,11 +1126,8 @@ fi %posttrans -n udev%{?mini} %regenerate_initrd_posttrans -%post -n libudev%{?mini}1 -p %ldconfig -%post -n libsystemd0%{?mini} -p %ldconfig - -%postun -n libudev%{?mini}1 -p %ldconfig -%postun -n libsystemd0%{?mini} -p %ldconfig +%ldconfig_scriptlets -n libsystemd0%{?mini} +%ldconfig_scriptlets -n libudev%{?mini}1 %if %{with machined} %pre container @@ -1140,17 +1137,17 @@ fi %systemd_preun machines.target %postun container -%systemd_postun machines.target %ldconfig +%systemd_postun machines.target %endif %post container %if %{with machined} +%ldconfig %if %{without filetriggers} %tmpfiles_create systemd-nspawn.conf %endif %systemd_post machines.target -%ldconfig %{_systemd_util_dir}/rpm/fixlet-container-post.sh $1 || : %endif