authselect/0011-spec-remove-unnecessary-dependencies.patch
Pavel Březina d614caeca1 authselect-1.3.0-9: fix authselect on ostree
Resolves: rhbz#2051545, rhbz#2034360
2022-02-07 14:42:35 +01:00

40 lines
1.3 KiB
Diff

From 33230db31309b08a4e332fc5ee49f440871b7ee8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Tue, 1 Feb 2022 09:58:29 +0100
Subject: [PATCH 11/11] spec: remove unnecessary dependencies
- gawk, findutils and grep are no longer needed in scriptlets
- systemd does not have to be required
PAM and nsswitch.conf from shipped profiles references several
systemd modules. However if those modules are not installed,
they are simply ignored, therefore this dependency can be
omitted.
systemd is usually installed anyway, but it is not necessary to
pull it in on cases when it is not desired, such as in containers.
---
rpm/authselect.spec.in | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/rpm/authselect.spec.in b/rpm/authselect.spec.in
index fa01d4508b34023ad36d7bbfc6ffb05c517a9198..c11dfa510307e951ec6f9aa15dfe2dd4b19cd2f9 100644
--- a/rpm/authselect.spec.in
+++ b/rpm/authselect.spec.in
@@ -72,11 +72,8 @@ supported by authselect.
Summary: Utility library used by the authselect tool
# Required by scriptlets
Requires: coreutils
-Requires: findutils
-Requires: gawk
-Requires: grep
Requires: sed
-Requires: systemd
+Suggests: systemd
%if %{enforce_authselect}
# authselect now owns nsswitch.conf (glibc) and pam files
Conflicts: pam < 1.5.2-8
--
2.34.1