Skip to content

Commit 66abf2e

Browse files
authored
Fix post and postun sections in sdbus-cpp.spec (microsoft#13588)
Fix warning from %post and %postun in sdbus-cpp.spec install: Installing/Updating: sdbus-cpp-1.3.0-1.azl3.x86_64 /var/tmp/rpm-tmp.XgB0E8: line 1: -p: command not found warning: %post(sdbus-cpp-1.3.0-1.azl3.x86_64) scriptlet failed, exit status 127 package sdbus-cpp-1.3.0-1.azl3.x86_64: script warning in %postin uninstall: Removing: sdbus-cpp-1.3.0-1.azl3.x86_64 /var/tmp/rpm-tmp.nFgDZW: line 1: -p: command not found warning: %postun(sdbus-cpp-1.3.0-1.azl3.x86_64) scriptlet failed, exit status 127 package sdbus-cpp-1.3.0-1.azl3.x86_64: script warning in %postun remove newlines to allow -p /sbin/ldconfig to work as intended for %post and %postun
1 parent e0c0728 commit 66abf2e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

SPECS/sdbus-cpp/sdbus-cpp.spec

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: sdbus-cpp
22
Name: sdbus-cpp
33
Version: 1.3.0
4-
Release: 1%{?dist}
4+
Release: 2%{?dist}
55
License: LGPLv2+
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
@@ -47,11 +47,9 @@ cd build
4747
cmake --build . --target install
4848
rm -rf %{buildroot}%{_docdir}
4949

50-
%post
51-
-p /sbin/ldconfig
50+
%post -p /sbin/ldconfig
5251

53-
%postun
54-
-p /sbin/ldconfig
52+
%postun -p /sbin/ldconfig
5553

5654
%files
5755
%defattr(-,root,root)
@@ -66,6 +64,9 @@ rm -rf %{buildroot}%{_docdir}
6664
%{_libdir}/pkgconfig/*.pc
6765

6866
%changelog
67+
* Wed Apr 23 2025 Sam Meluch <[email protected]> - 1.3.0-2
68+
- Fix -p for ldconfig in post and postun scripts.
69+
6970
* Fri Oct 27 2023 CBL-Mariner Servicing Account <[email protected]> - 1.3.0-1
7071
- Auto-upgrade to 1.3.0 - Azure Linux 3.0 - package upgrades
7172

0 commit comments

Comments
 (0)