forked from pool/systemd
Accepting request 415263 from home:jengelh:branches:Base:System
Split systemctl and tmpfiles into a separate package
The backstory is that %{?systemd_requires} in all kinds of .spec files
pulls in systemd, which is not always desirable. Upstream has come up
with some solution where they make use of a rpm tag (available in
4.10+) that is only about ordering - cf
2424b6bd71
. The commit explicitly states though, that "installing systemd
afterwards [...], does not result in the same outcome."
With this proposed change to our systemd.spec, we could have the cake
and eat it too:
* symlinks in /etc/systemd can be created at install time, permitting
the administrator to install/use systemd as init system in a container
at a later date (enabling "same outcome")
* mandatory tmp directories will be created at install time already,
so the administrator does not have to run `tmpfiles --root=/mycontainer`
before launching the (systemd-less) container.
* the only protruding dependency of systemctl.rpm is libgcrypt20,
i.e. comparatively light.
* the OrderWithRequires feature can be done independently
Sounds like a plan? @mpluskal too #boo980389
OBS-URL: https://build.opensuse.org/request/show/415263
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=942
This commit is contained in:
parent
00bec688d4
commit
7bff8388c6
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 26 11:07:25 UTC 2016 - jengelh@inai.de
|
||||
|
||||
- Split systemctl and tmpfiles into a separate package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 17 03:41:05 UTC 2016 - asarai@suse.com
|
||||
|
||||
- Backport unified_cgroup_hierarchy fix for Linux >= 4.4. boo#989276
|
||||
+ systemd-230-cgroup2-use-new-fstype-for-unified-hierarchy.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 18 16:17:36 UTC 2016 - arvidjaar@gmail.com
|
||||
|
||||
|
@ -114,6 +114,7 @@ Requires: netcfg
|
||||
Requires: pam-config >= 0.79-5
|
||||
BuildRequires: pam-config >= 0.79-5
|
||||
Requires: pwdutils
|
||||
Requires: systemctl = %version-%release
|
||||
Requires: systemd-presets-branding
|
||||
Requires: sysvinit-tools
|
||||
Requires: util-linux >= 2.27.1
|
||||
@ -261,6 +262,8 @@ Patch527: 0001-core-fix-bus-name-synchronization-after-daemon-reloa.patch
|
||||
Patch528: 0001-core-re-sync-bus-name-list-after-deserializing-durin.patch
|
||||
# PATCH-FIX-UPSTREAM -- fixed after 228
|
||||
Patch529: 0001-systemctl-pid1-do-not-warn-about-missing-install-inf.patch
|
||||
# PATCH-FIX-UPSTREAM -- fixed after 320
|
||||
Patch530: systemd-230-cgroup2-use-new-fstype-for-unified-hierarchy.patch
|
||||
|
||||
# UDEV PATCHES
|
||||
# ============
|
||||
@ -385,6 +388,18 @@ This library provides several of the systemd C APIs:
|
||||
* sd-login(3): APIs to introspect and monitor seat, login session and
|
||||
user status information on the local system.
|
||||
|
||||
%package -n systemctl
|
||||
Summary: systemd essential helper programs
|
||||
License: LGPL-2.1+
|
||||
Group: System/Base
|
||||
|
||||
%description -n systemctl
|
||||
This subpackage contains the "systemctl" and "tmpfiles" programs of
|
||||
systemd, factored out to support RPM scriptlets making use of these
|
||||
two. It is meant for container/chroot directories for which the
|
||||
administrator intends not to use systemd as init system while still
|
||||
maintaining the /etc/systemd links for a later time.
|
||||
|
||||
%package -n udev%{?mini}
|
||||
Summary: A rule-based device node and kernel event manager
|
||||
License: GPL-2.0
|
||||
@ -607,6 +622,7 @@ cp %{SOURCE7} m4/
|
||||
%patch527 -p1
|
||||
%patch528 -p1
|
||||
%patch529 -p1
|
||||
%patch530 -p1
|
||||
|
||||
# udev patches
|
||||
%patch1002 -p1
|
||||
@ -1152,7 +1168,6 @@ exit 0
|
||||
%defattr(-,root,root)
|
||||
/bin/systemd
|
||||
/bin/systemd-ask-password
|
||||
/bin/systemctl
|
||||
%if %{with networkd}
|
||||
%{_bindir}/networkctl
|
||||
%endif
|
||||
@ -1164,7 +1179,6 @@ exit 0
|
||||
%if ! 0%{?bootstrap}
|
||||
%{_bindir}/machinectl
|
||||
%endif
|
||||
%{_bindir}/systemctl
|
||||
%{_bindir}/systemd-analyze
|
||||
%{_bindir}/coredumpctl
|
||||
%{_bindir}/systemd-delta
|
||||
@ -1181,7 +1195,6 @@ exit 0
|
||||
%{_bindir}/systemd-loginctl
|
||||
%{_bindir}/systemd-inhibit
|
||||
%{_bindir}/systemd-tty-ask-password-agent
|
||||
%{_bindir}/systemd-tmpfiles
|
||||
%{_bindir}/systemd-machine-id-setup
|
||||
%{_bindir}/systemd-nspawn
|
||||
%{_bindir}/systemd-stdio-bridge
|
||||
@ -1275,10 +1288,6 @@ exit 0
|
||||
%dir %{_sysconfdir}/modules-load.d
|
||||
%{_libexecdir}/modules-load.d/sg.conf
|
||||
|
||||
%dir %{_libexecdir}/tmpfiles.d
|
||||
%dir %{_sysconfdir}/tmpfiles.d
|
||||
%{_libexecdir}/tmpfiles.d/*.conf
|
||||
|
||||
%dir %{_libexecdir}/binfmt.d
|
||||
%dir %{_sysconfdir}/binfmt.d
|
||||
|
||||
@ -1582,4 +1591,13 @@ exit 0
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files -n systemctl
|
||||
%defattr(-,root,root)
|
||||
/bin/systemctl
|
||||
%_bindir/systemctl
|
||||
%_bindir/systemd-tmpfiles
|
||||
%dir %_sysconfdir/tmpfiles.d
|
||||
%dir %_libexecdir/tmpfiles.d
|
||||
%_libexecdir/tmpfiles.d/*.conf
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 26 11:07:25 UTC 2016 - jengelh@inai.de
|
||||
|
||||
- Split systemctl and tmpfiles into a separate package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 17 03:41:05 UTC 2016 - asarai@suse.com
|
||||
|
||||
|
29
systemd.spec
29
systemd.spec
@ -109,6 +109,7 @@ Requires: netcfg
|
||||
Requires: pam-config >= 0.79-5
|
||||
BuildRequires: pam-config >= 0.79-5
|
||||
Requires: pwdutils
|
||||
Requires: systemctl = %version-%release
|
||||
Requires: systemd-presets-branding
|
||||
Requires: sysvinit-tools
|
||||
Requires: util-linux >= 2.27.1
|
||||
@ -382,6 +383,18 @@ This library provides several of the systemd C APIs:
|
||||
* sd-login(3): APIs to introspect and monitor seat, login session and
|
||||
user status information on the local system.
|
||||
|
||||
%package -n systemctl
|
||||
Summary: systemd essential helper programs
|
||||
License: LGPL-2.1+
|
||||
Group: System/Base
|
||||
|
||||
%description -n systemctl
|
||||
This subpackage contains the "systemctl" and "tmpfiles" programs of
|
||||
systemd, factored out to support RPM scriptlets making use of these
|
||||
two. It is meant for container/chroot directories for which the
|
||||
administrator intends not to use systemd as init system while still
|
||||
maintaining the /etc/systemd links for a later time.
|
||||
|
||||
%package -n udev%{?mini}
|
||||
Summary: A rule-based device node and kernel event manager
|
||||
License: GPL-2.0
|
||||
@ -1150,7 +1163,6 @@ exit 0
|
||||
%defattr(-,root,root)
|
||||
/bin/systemd
|
||||
/bin/systemd-ask-password
|
||||
/bin/systemctl
|
||||
%if %{with networkd}
|
||||
%{_bindir}/networkctl
|
||||
%endif
|
||||
@ -1162,7 +1174,6 @@ exit 0
|
||||
%if ! 0%{?bootstrap}
|
||||
%{_bindir}/machinectl
|
||||
%endif
|
||||
%{_bindir}/systemctl
|
||||
%{_bindir}/systemd-analyze
|
||||
%{_bindir}/coredumpctl
|
||||
%{_bindir}/systemd-delta
|
||||
@ -1179,7 +1190,6 @@ exit 0
|
||||
%{_bindir}/systemd-loginctl
|
||||
%{_bindir}/systemd-inhibit
|
||||
%{_bindir}/systemd-tty-ask-password-agent
|
||||
%{_bindir}/systemd-tmpfiles
|
||||
%{_bindir}/systemd-machine-id-setup
|
||||
%{_bindir}/systemd-nspawn
|
||||
%{_bindir}/systemd-stdio-bridge
|
||||
@ -1273,10 +1283,6 @@ exit 0
|
||||
%dir %{_sysconfdir}/modules-load.d
|
||||
%{_libexecdir}/modules-load.d/sg.conf
|
||||
|
||||
%dir %{_libexecdir}/tmpfiles.d
|
||||
%dir %{_sysconfdir}/tmpfiles.d
|
||||
%{_libexecdir}/tmpfiles.d/*.conf
|
||||
|
||||
%dir %{_libexecdir}/binfmt.d
|
||||
%dir %{_sysconfdir}/binfmt.d
|
||||
|
||||
@ -1580,4 +1586,13 @@ exit 0
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files -n systemctl
|
||||
%defattr(-,root,root)
|
||||
/bin/systemctl
|
||||
%_bindir/systemctl
|
||||
%_bindir/systemd-tmpfiles
|
||||
%dir %_sysconfdir/tmpfiles.d
|
||||
%dir %_libexecdir/tmpfiles.d
|
||||
%_libexecdir/tmpfiles.d/*.conf
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user