ldconfig: make %ldconfig_post/%ldconfig_postun parameterized
If %ldconfig is not defined, then "%ldconfig_post/%ldconfig_postun foo" will expand to " foo" which is breaking packages. Also now it is possible to move %end into post/postun. Reported-by: Terje Røsten <terjeros@phys.ntnu.no> References: https://bugzilla.redhat.com/show_bug.cgi?id=1548331 Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
0448c23b73
commit
71d7440127
@ -1,9 +1,9 @@
|
||||
#%ldconfig /sbin/ldconfig
|
||||
%ldconfig_post %{?ldconfig:%post -p %ldconfig}
|
||||
%ldconfig_postun %{?ldconfig:%postun -p %ldconfig}
|
||||
%ldconfig_post(n:) %{?ldconfig:%post -p %ldconfig %{?*} %{-n:-n %{-n*}}\
|
||||
%end}
|
||||
%ldconfig_postun(n:) %{?ldconfig:%postun -p %ldconfig %{?*} %{-n:-n %{-n*}}\
|
||||
%end}
|
||||
%ldconfig_scriptlets(n:) %{?ldconfig:\
|
||||
%ldconfig_post %{?*} %{-n:-n %{-n*}}\
|
||||
%end\
|
||||
%ldconfig_postun %{?*} %{-n:-n %{-n*}}\
|
||||
%end\
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
Summary: Red Hat specific rpm configuration files
|
||||
Name: redhat-rpm-config
|
||||
Version: 102
|
||||
Version: 103
|
||||
Release: 1%{?dist}
|
||||
# No version specified.
|
||||
License: GPL+
|
||||
@ -183,6 +183,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov
|
||||
%{_rpmconfigdir}/macros.d/macros.kmp
|
||||
|
||||
%changelog
|
||||
* Sun Feb 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 103-1
|
||||
- Make %%ldconfig_post/%%ldconfig_postun parameterized
|
||||
|
||||
* Sat Feb 24 2018 Florian Weimer <fweimer@redhat.com> - 102-1
|
||||
- Second step of -z now move: removal from GCC specs file (#1548397)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user