diff --git a/brp-ldconfig b/brp-ldconfig index 90d0f13..e169609 100755 --- a/brp-ldconfig +++ b/brp-ldconfig @@ -6,5 +6,8 @@ if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi -/sbin/ldconfig -N -r "$RPM_BUILD_ROOT" +# Create an empty config file for ldconfig to shut up a warning +config=$(mktemp -p "$RPM_BUILD_ROOT") +/sbin/ldconfig -f $(basename "$config") -N -r "$RPM_BUILD_ROOT" +rm -f "$config" # TODO: warn if it created new symlinks and guide people. diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 205cf5a..c908540 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 125 +Version: 126 Release: 1%{?dist} # No version specified. License: GPL+ @@ -199,6 +199,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Mon Dec 17 2018 Panu Matilainen - 126-1 +- Silence the annoying warning from ldconfig brp-script (#1540971) + * Thu Nov 15 2018 Miro HronĨok - 125-1 - Make automagic Python bytecompilation optional https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2