]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: Only call ldconfig on RHEL7
authorCole Robinson <crobinso@redhat.com>
Mon, 18 Mar 2019 19:01:28 +0000 (15:01 -0400)
committerCole Robinson <crobinso@redhat.com>
Fri, 22 Mar 2019 15:32:45 +0000 (11:32 -0400)
Since Fedora 28 (our minimum supported build), ldconfig is called
automatically for us:

https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets

These changes appear to be implemented for RHEL > 7 as well, so only
run ldconfig on RHEL7

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
libvirt.spec.in

index 79f3d31d19a61b8d679a3ee5029c28db7e70e599..5fa0b22f31f444dc0669bcd0a4ed0a5dd9aa8559 100644 (file)
@@ -1480,12 +1480,16 @@ exit 0
 
 %post client
 
+%if 0%{?rhel} == 7
 /sbin/ldconfig
+%endif
 %systemd_post libvirt-guests.service
 
 %postun client
 
+%if 0%{?rhel} == 7
 /sbin/ldconfig
+%endif
 %systemd_postun libvirt-guests.service
 
 %triggerun client -- libvirt < 0.9.4