From e596ca1fed6a3e752cdff692d0a6001ae948477c Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 8 Nov 2017 11:24:11 +0100 Subject: [PATCH] 0.170-3 - Rely on systemd_requires for sysctl_apply default-yama-scope. --- elfutils.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/elfutils.spec b/elfutils.spec index 2587187..635549e 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -156,6 +156,7 @@ License: GPLv2+ or LGPLv3+ Provides: default-yama-scope BuildArch: noarch # For the sysctl_apply macro +%{?systemd_requires} BuildRequires: systemd >= 215 %description default-yama-scope @@ -220,7 +221,11 @@ rm -rf ${RPM_BUILD_ROOT} %if %{provide_yama_scope} %post default-yama-scope +# Due to circular dependencies might not be installed yet, so double check. +# (systemd -> elfutils-libs -> default-yama-scope -> systemd) +if [ -x /usr/lib/systemd/systemd-sysctl ] ; then %sysctl_apply 10-default-yama-scope.conf +fi %endif %files @@ -307,6 +312,9 @@ rm -rf ${RPM_BUILD_ROOT} * Wed Dec 20 2017 Mark Wielaard - 0.170-4 - Add elfutils-0.170-dwarf_aggregate_size.patch. +* Wed Nov 8 2017 Mark Wielaard - 0.170-3 +- Rely on (and check) systemd_requires for sysctl_apply default-yama-scope. + * Thu Nov 2 2017 Mark Wielaard - 0.170-2 - Config files under /usr/lib/sysctl.d (_sysctldir) aren't %config (#1506660) Admin can place the real config file under /etc/sysctl.d as override.