From c9030f045ba66cc76753f71d07bb92d87d91a63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 2 Nov 2018 11:39:52 +0100 Subject: [PATCH] Split out the rpm macros into systemd-rpm-macros subpackage --- split-files.py | 3 +++ systemd.spec | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/split-files.py b/split-files.py index 262ee04..61ed548 100644 --- a/split-files.py +++ b/split-files.py @@ -18,6 +18,7 @@ def files(root): o_libs = open('.file-list-libs', 'w') o_udev = open('.file-list-udev', 'w') o_pam = open('.file-list-pam', 'w') +o_rpm_macros = open('.file-list-rpm-macros', 'w') o_devel = open('.file-list-devel', 'w') o_container = open('.file-list-container', 'w') o_remote = open('.file-list-remote', 'w') @@ -47,6 +48,8 @@ for file in files(buildroot): continue if '/security/pam_' in n: o = o_pam + elif 'rpm/macros' in n: + o = o_rpm_macros elif re.search(r'/lib.*\.pc|/man3/|/usr/include|(?= 1.9.18 Requires: %{name}-pam = %{version}-%{release} +Requires: %{name}-rpm-macros = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Recommends: diffutils Requires: util-linux @@ -170,6 +171,13 @@ Requires: %{name} = %{version}-%{release} %description pam Systemd PAM module registers the session with systemd-logind. +%package rpm-macros +Summary: Macros that define paths and scriptlets related to systemd + +%description rpm-macros +Just the definitions of rpm macros. Use %%{?systemd_requires} in the +binary packages that use any scriptlets from this package. + %package devel Summary: Development headers for systemd License: LGPLv2+ and MIT @@ -678,6 +686,8 @@ fi %files pam -f .file-list-pam +%files rpm-macros -f .file-list-rpm-macros + %files devel -f .file-list-devel %files udev -f .file-list-udev @@ -689,6 +699,9 @@ fi %files tests -f .file-list-tests %changelog +* Fri Nov 2 2018 Zbigniew Jędrzejewski-Szmek - 239-7.git9f3aed1 +- Split out the rpm macros into systemd-rpm-macros subpackage (#1645298) + * Sun Oct 28 2018 Zbigniew Jędrzejewski-Szmek - 239-6.git9f3aed1 - Fix a local vulnerability from a race condition in chown-recursive (CVE-2018-15687, #1639076) - Fix a local vulnerability from invalid handling of long lines in state deserialization (CVE-2018-15686, #1639071)