From 3889da947eefa17777535e7f6b29e61776b2896c Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jul 15 2024 11:36:06 +0000 Subject: In standalone subpackages, suggest coreutils-single In a minimal installation, we pull in coreutils via dependencies. coreutils-single is much smaller, so bias the resolved towards that. $ sudo dnf5 install --releasever=rawhide --installroot=/var/tmp/inst1 --use-host-config \ /var/lib/mock/fedora-rawhide-x86_64/result/systemd-standalone-{repart,shutdown,sysusers,tmpfiles}-256.2-5*rpm After this operation 57 MiB will be used (install 57 MiB, remove 0 B). $ sudo dnf5 install --releasever=rawhide --installroot=/var/tmp/inst1 --use-host-config \ /var/lib/mock/fedora-rawhide-x86_64/result/systemd-standalone-{repart,shutdown,sysusers,tmpfiles}-256.2-6*rpm After this operation 41 MiB will be used (install 41 MiB, remove 0 B). --- diff --git a/systemd.spec b/systemd.spec index 44a0f16..8ce14eb 100644 --- a/systemd.spec +++ b/systemd.spec @@ -626,6 +626,7 @@ useful to test systemd internals. Summary: Standalone systemd-repart binary for use on systems without systemd Provides: %{name}-repart = %{version}-%{release} Conflicts: %{name}-udev +Suggests: coreutils-single RemovePathPostfixes: .standalone %description standalone-repart @@ -637,6 +638,7 @@ package and is meant for use on systems without systemd. Summary: Standalone systemd-tmpfiles binary for use on systems without systemd Provides: %{name}-tmpfiles = %{version}-%{release} Conflicts: %{name} +Suggests: coreutils-single RemovePathPostfixes: .standalone %description standalone-tmpfiles @@ -648,6 +650,7 @@ package and is meant for use on systems without systemd. Summary: Standalone systemd-sysusers binary for use on systems without systemd Provides: %{name}-sysusers = %{version}-%{release} Conflicts: %{name} +Suggests: coreutils-single RemovePathPostfixes: .standalone %description standalone-sysusers @@ -659,6 +662,7 @@ package and is meant for use on systems without systemd. Summary: Standalone systemd-shutdown binary for use on systems without systemd Provides: %{name}-shutdown = %{version}-%{release} Conflicts: %{name} +Suggests: coreutils-single RemovePathPostfixes: .standalone %description standalone-shutdown