public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/systemd] rawhide: Split out systemd-tools package
@ 2026-11-19 14:11 Luca Boccassi
0 siblings, 0 replies; only message in thread
From: Luca Boccassi @ 2026-11-19 14:11 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/systemd
Branch : rawhide
Commit : 480fb8323bc414cf25d33e46144079de6e84eab8
Author : Luca Boccassi <luca.boccassi@gmail.com>
Date : 2026-11-19T01:32:33+00:00
Stats : +62/-14 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/systemd/c/480fb8323bc414cf25d33e46144079de6e84eab8?branch=rawhide
Log:
Split out systemd-tools package
Split out some of the user-facing tools that are likely to be
usable remotely, without systemd running, while building images,
in a container/portable image, etc.
This is an initial list and can be expanded when a concrete use
case appears.
For now the systemd package requires it to avoid breaking existing
setups, in the future it could be relaxed to a recommends.
---
diff --git a/split-files.py b/split-files.py
index d2cce8b..3ebd1fb 100644
--- a/split-files.py
+++ b/split-files.py
@@ -47,6 +47,27 @@ known_files = '''
known_files = {line.split()[-1]:line for line in known_files.splitlines()
if line and not line.startswith('#')}
+tool_paths = {
+ '/usr/bin/portablectl',
+ '/usr/bin/systemctl',
+ '/usr/bin/systemd-cat',
+ '/usr/bin/systemd-creds',
+ '/usr/bin/systemd-delta',
+ '/usr/bin/systemd-detect-virt',
+ '/usr/bin/systemd-escape',
+ '/usr/bin/systemd-id128',
+ '/usr/bin/systemd-inhibit',
+ '/usr/bin/systemd-notify',
+ '/usr/bin/systemd-path',
+ '/usr/bin/systemd-repart',
+ '/usr/bin/systemd-tmpfiles',
+ '/usr/bin/varlinkctl',
+ '/usr/lib/systemd/systemd-keyutil',
+ '/usr/lib/systemd/systemd-measure',
+ '/usr/lib/systemd/systemd-sbsign',
+}
+tool_manpages = {os.path.basename(p) for p in tool_paths}
+
def files(root):
os.chdir(root)
todo = collections.deque(['.'])
@@ -69,6 +90,7 @@ outputs = {suffix: open(f'.file-list-{suffix}', 'w')
'pam',
'rpm-macros',
'sysusers',
+ 'tools',
'devel',
'container',
'import-keys',
@@ -156,6 +178,11 @@ for file in files(buildroot):
''', n, re.X):
o = outputs['sysusers']
+ elif (n in tool_paths or
+ (n.startswith('/usr/share/man/') and
+ re.sub(r'\.[1-9](?:\.\w+)?$', '', file.name) in tool_manpages)):
+ o = outputs['tools']
+
elif re.search(r'import-pubring', n):
o = outputs['import-keys']
@@ -163,7 +190,6 @@ for file in files(buildroot):
machinectl|
mount.ddi|
importctl|
- portablectl|
portabled|portable1|
systemd-nspawn|
systemd\.nspawn|
diff --git a/systemd.spec b/systemd.spec
index 178e516..5516f50 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -303,6 +303,7 @@ Requires: systemd-libs%{_isa} = %{version}-%{release}
%{?fedora:Recommends: systemd-networkd = %{version}-%{release}}
%{?fedora:Recommends: systemd-resolved = %{version}-%{release}}
Requires: systemd-shared%{_isa} = %{version}-%{release}
+Requires: systemd-tools%{_isa} = %{version}-%{release}
Requires: /usr/bin/systemd-sysusers
# The standalone version doesn't Provide the _isa suffix,
@@ -313,10 +314,8 @@ Recommends: systemd-sysusers%{_isa} = %{version}-%{release}
Requires: libzstd.so.1%{?elf_suffix}
%endif
-Recommends: diffutils
Requires: (util-linux-core or util-linux)
Requires: (libbpf >= 2:1.4.7 if libbpf)
-Provides: /bin/systemctl
Provides: /sbin/shutdown
Provides: syslog
Provides: systemd-units = %{version}-%{release}
@@ -349,8 +348,6 @@ Conflicts: dracut < 059-16
Conflicts: systemd-standalone-report
Provides: systemd-report = %{version}-%{release}
%endif
-Conflicts: systemd-standalone-tmpfiles
-Provides: systemd-tmpfiles = %{version}-%{release}
Conflicts: systemd-standalone-shutdown
Provides: systemd-shutdown = %{version}-%{release}
@@ -468,6 +465,31 @@ Conflicts: systemd < 257.3-6
%description sysusers
This package contains the systemd-sysusers program.
+%package tools
+Summary: systemd command-line tools
+License: LGPL-2.1-or-later
+Requires: systemd-shared%{_isa} = %{version}-%{release}
+Recommends: diffutils
+Provides: /bin/systemctl
+Provides: systemd-repart = %{version}-%{release}
+Provides: systemd-tmpfiles = %{version}-%{release}
+Conflicts: systemd-standalone-repart
+Conflicts: systemd-standalone-tmpfiles
+# Older systemd and systemd-udev packages own some of these binaries.
+Conflicts: systemd < %{version}-%{release}
+Conflicts: systemd-udev < %{version}-%{release}
+
+%if %{defined rhel} && 0%{?rhel} <= 10
+# systemd-repart loads these libraries at runtime.
+Requires: libblkid.so.1%{?elf_suffix}
+Requires: libfdisk.so.1%{?elf_suffix}
+%endif
+
+%description tools
+Command-line tools for controlling systemd, managing credentials, preparing
+disk images, managing temporary files, and more. They can be installed
+without the systemd service manager.
+
%package devel
Summary: Development headers for systemd
License: LGPL-2.1-or-later AND MIT
@@ -499,7 +521,6 @@ Requires: libkmod.so.2(LIBKMOD_5)%{?elf_bits}
# udev uses libblkid in various builtins so make it a hard dependency.
Requires: libblkid.so.1%{?elf_suffix}
Requires: libblkid.so.1(BLKID_2.30)%{?elf_bits}
-Requires: libfdisk.so.1%{?elf_suffix}
%endif
Provides: udev = %{version}
@@ -539,9 +560,6 @@ Recommends: kbd
Provides: u2f-hidraw-policy = 1.0.2-40
Obsoletes: u2f-hidraw-policy < 1.0.2-40
-Conflicts: systemd-standalone-repart
-Provides: systemd-repart = %{version}-%{release}
-
# Newer versions of those are required to support X11 keycode remapping
Conflicts: xorg-x11-drv-evdev < 2.11.0
Conflicts: xorg-x11-drv-libinput < 1.5.0
@@ -561,7 +579,7 @@ virtual machines, but not in containers.
This package also provides systemd-timesyncd, a network time protocol daemon.
It also contains tools to manage encrypted home areas and secrets bound to the
-machine, and to create or grow partitions and make file systems automatically.
+machine, and units for automatic partitioning and file system setup.
%package imds
Summary: Client for IMDS cloud metadata services
@@ -770,14 +788,14 @@ Different binaries test different parts of the codebase.
%package standalone-repart
Summary: Standalone systemd-repart binary for use on systems without systemd
Provides: systemd-repart = %{version}-%{release}
-Conflicts: systemd-udev
+Conflicts: systemd-tools
Suggests: coreutils-single
RemovePathPostfixes: .standalone
%description standalone-repart
Standalone systemd-repart binary with no dependencies on the systemd-shared
library or other libraries from systemd-libs. This package conflicts with the
-systemd-udev package and is meant for use on systems without systemd-udev.
+systemd-tools package.
%if %{with report_standalone}
%package standalone-report
@@ -796,14 +814,14 @@ is meant for use on systems without systemd or with older version of it.
%package standalone-tmpfiles
Summary: Standalone systemd-tmpfiles binary for use on systems without systemd
Provides: systemd-tmpfiles = %{version}-%{release}
-Conflicts: systemd
+Conflicts: systemd-tools
Suggests: coreutils-single
RemovePathPostfixes: .standalone
%description standalone-tmpfiles
Standalone systemd-tmpfiles binary with no dependencies on the systemd-shared
library or other libraries from systemd-libs. This package conflicts with the
-main systemd package and is meant for use on systems without systemd.
+systemd-tools package.
%package standalone-sysusers
Summary: Standalone systemd-sysusers binary for use on systems without systemd
@@ -1598,6 +1616,10 @@ fi
%files sysusers -f .file-list-sysusers
+%files tools -f .file-list-tools
+%license LICENSE.LGPL2.1
+%dir %{pkgdir}
+
%files resolved -f .file-list-resolve
%files devel -f .file-list-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-19 14:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 14:11 [rpms/systemd] rawhide: Split out systemd-tools package Luca Boccassi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox