From de4cf5cfe9cd2b30a48e74849674b85e6181e675 Mon Sep 17 00:00:00 2001 From: Ravindra Kumar Date: Tue, 24 Mar 2020 19:30:13 -0700 Subject: [PATCH] Use /sbin/ldconfig on older than Fedora 28 and RHEL 8 platforms. --- open-vm-tools.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/open-vm-tools.spec b/open-vm-tools.spec index bdcef1b..12081d1 100644 --- a/open-vm-tools.spec +++ b/open-vm-tools.spec @@ -28,7 +28,7 @@ Name: open-vm-tools Version: %{toolsversion} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Open Virtual Machine Tools for virtual machines hosted on VMware License: GPLv2 URL: https://github.com/vmware/%{name} @@ -110,6 +110,10 @@ Requires: tar Requires: which # xmlsec1-openssl needs to be added explicitly Requires: xmlsec1-openssl +%if 0%{?fedora} < 28 || 0%{?rhel} < 8 +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +%endif # open-vm-tools >= 10.0.0 do not require open-vm-tools-deploypkg # provided by VMware. That functionality is now available as part @@ -214,7 +218,11 @@ install -p -m 644 -D %{SOURCE4} %{buildroot}%{_modulesloaddir}/open-vm-tools.con # upstream %post +%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 %{?ldconfig} +%else +/sbin/ldconfig +%endif # Setup mount point for Shared Folders # NOTE: Use systemd-detect-virt to detect VMware platform because # vmware-checkvm might misbehave on non-VMware platforms. @@ -271,7 +279,11 @@ fi %systemd_preun run-vmblock\x2dfuse.mount %postun +%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 %{?ldconfig} +%else +/sbin/ldconfig +%endif %systemd_postun_with_restart %{toolsdaemon}.service %systemd_postun_with_restart %{vgauthdaemon}.service @@ -344,6 +356,9 @@ fi %{_bindir}/vmware-vgauth-smoketest %changelog +* Tue Mar 24 2020 Ravindra Kumar - 11.0.5-3 +- Use /sbin/ldconfig on older than Fedora 28 and RHEL 8 platforms. + * Fri Feb 07 2020 Ravindra Kumar - 11.0.5-2 - Added patch diskinfo-log-spew.patch.