forked from pool/systemd
Accepting request 1105855 from home:kukuk:no-utmp
- Make utmp support per project configureable [jsc#PED-3144] - Make apparmor and selinux per project configureable [jsc#PED-2736] OBS-URL: https://build.opensuse.org/request/show/1105855 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1433
This commit is contained in:
parent
e23c2b5f22
commit
d48ca6ce6d
@ -380,8 +380,10 @@
|
|||||||
%{_mandir}/man8/systemd-tmpfiles.8.gz
|
%{_mandir}/man8/systemd-tmpfiles.8.gz
|
||||||
%{_mandir}/man8/systemd-update-done.8.gz
|
%{_mandir}/man8/systemd-update-done.8.gz
|
||||||
%{_mandir}/man8/systemd-update-done.service.8.gz
|
%{_mandir}/man8/systemd-update-done.service.8.gz
|
||||||
|
%if %{with utmp}
|
||||||
%{_mandir}/man8/systemd-update-utmp.8.gz
|
%{_mandir}/man8/systemd-update-utmp.8.gz
|
||||||
%{_mandir}/man8/systemd-update-utmp.service.8.gz
|
%{_mandir}/man8/systemd-update-utmp.service.8.gz
|
||||||
|
%endif
|
||||||
%{_mandir}/man8/systemd-user-sessions.8.gz
|
%{_mandir}/man8/systemd-user-sessions.8.gz
|
||||||
%{_mandir}/man8/systemd-user-sessions.service.8.gz
|
%{_mandir}/man8/systemd-user-sessions.service.8.gz
|
||||||
%{_mandir}/man8/systemd-userdbd.8.gz
|
%{_mandir}/man8/systemd-userdbd.8.gz
|
||||||
@ -420,7 +422,9 @@
|
|||||||
%{_systemd_util_dir}/systemd-timedated
|
%{_systemd_util_dir}/systemd-timedated
|
||||||
%{_systemd_util_dir}/systemd-update-done
|
%{_systemd_util_dir}/systemd-update-done
|
||||||
%{_systemd_util_dir}/systemd-update-helper
|
%{_systemd_util_dir}/systemd-update-helper
|
||||||
|
%if %{with utmp}
|
||||||
%{_systemd_util_dir}/systemd-update-utmp
|
%{_systemd_util_dir}/systemd-update-utmp
|
||||||
|
%endif
|
||||||
%{_systemd_util_dir}/systemd-user-runtime-dir
|
%{_systemd_util_dir}/systemd-user-runtime-dir
|
||||||
%{_systemd_util_dir}/systemd-user-sessions
|
%{_systemd_util_dir}/systemd-user-sessions
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
@ -566,7 +570,9 @@
|
|||||||
%{_unitdir}/sysinit.target.wants/systemd-sysusers.service
|
%{_unitdir}/sysinit.target.wants/systemd-sysusers.service
|
||||||
%{_unitdir}/sysinit.target.wants/systemd-tmpfiles-setup.service
|
%{_unitdir}/sysinit.target.wants/systemd-tmpfiles-setup.service
|
||||||
%{_unitdir}/sysinit.target.wants/systemd-update-done.service
|
%{_unitdir}/sysinit.target.wants/systemd-update-done.service
|
||||||
|
%if %{with utmp}
|
||||||
%{_unitdir}/sysinit.target.wants/systemd-update-utmp.service
|
%{_unitdir}/sysinit.target.wants/systemd-update-utmp.service
|
||||||
|
%endif
|
||||||
%{_unitdir}/syslog.socket
|
%{_unitdir}/syslog.socket
|
||||||
%{_unitdir}/system-update-cleanup.service
|
%{_unitdir}/system-update-cleanup.service
|
||||||
%{_unitdir}/system-update-pre.target
|
%{_unitdir}/system-update-pre.target
|
||||||
@ -605,7 +611,9 @@
|
|||||||
%{_unitdir}/systemd-tmpfiles-clean.timer
|
%{_unitdir}/systemd-tmpfiles-clean.timer
|
||||||
%{_unitdir}/systemd-tmpfiles-setup.service
|
%{_unitdir}/systemd-tmpfiles-setup.service
|
||||||
%{_unitdir}/systemd-update-done.service
|
%{_unitdir}/systemd-update-done.service
|
||||||
|
%if %{with utmp}
|
||||||
%{_unitdir}/systemd-update-utmp.service
|
%{_unitdir}/systemd-update-utmp.service
|
||||||
|
%endif
|
||||||
%{_unitdir}/systemd-user-sessions.service
|
%{_unitdir}/systemd-user-sessions.service
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
%{_unitdir}/systemd-userdbd.service
|
%{_unitdir}/systemd-userdbd.service
|
||||||
|
@ -13,7 +13,9 @@
|
|||||||
%{_mandir}/man8/systemd-initctl.socket.8.gz
|
%{_mandir}/man8/systemd-initctl.socket.8.gz
|
||||||
%{_mandir}/man8/systemd-rc-local-generator.8.gz
|
%{_mandir}/man8/systemd-rc-local-generator.8.gz
|
||||||
%{_mandir}/man8/systemd-sysv-generator.8.gz
|
%{_mandir}/man8/systemd-sysv-generator.8.gz
|
||||||
|
%if %{with utmp}
|
||||||
%{_mandir}/man8/systemd-update-utmp-runlevel.service.8.gz
|
%{_mandir}/man8/systemd-update-utmp-runlevel.service.8.gz
|
||||||
|
%endif
|
||||||
%{_mandir}/man8/telinit.8.gz
|
%{_mandir}/man8/telinit.8.gz
|
||||||
%{_sbindir}/runlevel
|
%{_sbindir}/runlevel
|
||||||
%{_sbindir}/telinit
|
%{_sbindir}/telinit
|
||||||
@ -21,10 +23,14 @@
|
|||||||
%{_systemd_util_dir}/systemd-sysv-install
|
%{_systemd_util_dir}/systemd-sysv-install
|
||||||
%{_systemdgeneratordir}/systemd-rc-local-generator
|
%{_systemdgeneratordir}/systemd-rc-local-generator
|
||||||
%{_systemdgeneratordir}/systemd-sysv-generator
|
%{_systemdgeneratordir}/systemd-sysv-generator
|
||||||
|
%if %{with utmp}
|
||||||
%{_unitdir}/graphical.target.wants/systemd-update-utmp-runlevel.service
|
%{_unitdir}/graphical.target.wants/systemd-update-utmp-runlevel.service
|
||||||
%{_unitdir}/multi-user.target.wants/systemd-update-utmp-runlevel.service
|
%{_unitdir}/multi-user.target.wants/systemd-update-utmp-runlevel.service
|
||||||
|
%endif
|
||||||
%{_unitdir}/rc-local.service
|
%{_unitdir}/rc-local.service
|
||||||
|
%if %{with utmp}
|
||||||
%{_unitdir}/rescue.target.wants/systemd-update-utmp-runlevel.service
|
%{_unitdir}/rescue.target.wants/systemd-update-utmp-runlevel.service
|
||||||
|
%endif
|
||||||
%{_unitdir}/runlevel0.target
|
%{_unitdir}/runlevel0.target
|
||||||
%{_unitdir}/runlevel1.target
|
%{_unitdir}/runlevel1.target
|
||||||
%{_unitdir}/runlevel2.target
|
%{_unitdir}/runlevel2.target
|
||||||
@ -35,7 +41,9 @@
|
|||||||
%{_unitdir}/sockets.target.wants/systemd-initctl.socket
|
%{_unitdir}/sockets.target.wants/systemd-initctl.socket
|
||||||
%{_unitdir}/systemd-initctl.service
|
%{_unitdir}/systemd-initctl.service
|
||||||
%{_unitdir}/systemd-initctl.socket
|
%{_unitdir}/systemd-initctl.socket
|
||||||
|
%if %{with utmp}
|
||||||
%{_unitdir}/systemd-update-utmp-runlevel.service
|
%{_unitdir}/systemd-update-utmp-runlevel.service
|
||||||
|
%endif
|
||||||
%if %{with split_usr}
|
%if %{with split_usr}
|
||||||
/sbin/runlevel
|
/sbin/runlevel
|
||||||
/sbin/telinit
|
/sbin/telinit
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 24 11:32:52 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
- Make utmp support per project configureable [jsc#PED-3144]
|
||||||
|
- Make apparmor and selinux per project configureable [jsc#PED-2736]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 24 10:42:20 UTC 2023 - Franck Bui <fbui@suse.com>
|
Thu Aug 24 10:42:20 UTC 2023 - Franck Bui <fbui@suse.com>
|
||||||
|
|
||||||
|
14
systemd.spec
14
systemd.spec
@ -39,6 +39,7 @@
|
|||||||
%global with_bootstrap 1
|
%global with_bootstrap 1
|
||||||
%else
|
%else
|
||||||
%global mini %nil
|
%global mini %nil
|
||||||
|
%bcond_without apparmor
|
||||||
%bcond_without coredump
|
%bcond_without coredump
|
||||||
%bcond_without homed
|
%bcond_without homed
|
||||||
%bcond_without importd
|
%bcond_without importd
|
||||||
@ -52,9 +53,11 @@
|
|||||||
%else
|
%else
|
||||||
%bcond_with sd_boot
|
%bcond_with sd_boot
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_without selinux
|
||||||
%bcond_without sysvcompat
|
%bcond_without sysvcompat
|
||||||
%bcond_without experimental
|
%bcond_without experimental
|
||||||
%bcond_without testsuite
|
%bcond_without testsuite
|
||||||
|
%bcond_without utmp
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# The following features are kept to ease migrations toward SLE. Their default
|
# The following features are kept to ease migrations toward SLE. Their default
|
||||||
@ -74,7 +77,9 @@ BuildRequires: bpftool
|
|||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: kbd
|
BuildRequires: kbd
|
||||||
|
%if %{with apparmor}
|
||||||
BuildRequires: libapparmor-devel
|
BuildRequires: libapparmor-devel
|
||||||
|
%endif
|
||||||
BuildRequires: libgcrypt-devel
|
BuildRequires: libgcrypt-devel
|
||||||
BuildRequires: libxslt-tools
|
BuildRequires: libxslt-tools
|
||||||
BuildRequires: polkit
|
BuildRequires: polkit
|
||||||
@ -90,7 +95,9 @@ BuildRequires: pkgconfig(liblzma)
|
|||||||
BuildRequires: pkgconfig(libpcre2-8)
|
BuildRequires: pkgconfig(libpcre2-8)
|
||||||
BuildRequires: pkgconfig(libqrencode)
|
BuildRequires: pkgconfig(libqrencode)
|
||||||
BuildRequires: pkgconfig(libseccomp) >= 2.3.1
|
BuildRequires: pkgconfig(libseccomp) >= 2.3.1
|
||||||
|
%if %{with selinux}
|
||||||
BuildRequires: pkgconfig(libselinux) >= 2.1.9
|
BuildRequires: pkgconfig(libselinux) >= 2.1.9
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libzstd)
|
BuildRequires: pkgconfig(libzstd)
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -557,9 +564,11 @@ Recommends: tpm2.0-tools
|
|||||||
%if %{with resolved}
|
%if %{with resolved}
|
||||||
# Optional dep for knot needed by TEST-75-RESOLVED
|
# Optional dep for knot needed by TEST-75-RESOLVED
|
||||||
Recommends: knot
|
Recommends: knot
|
||||||
|
%if %{with selinux}
|
||||||
# Optional deps needed by TEST-06-SELINUX (otherwise skipped)
|
# Optional deps needed by TEST-06-SELINUX (otherwise skipped)
|
||||||
Recommends: selinux-policy-devel
|
Recommends: selinux-policy-devel
|
||||||
Recommends: selinux-policy-targeted
|
Recommends: selinux-policy-targeted
|
||||||
|
%endif
|
||||||
# The following deps on libs are for test-dlopen-so whereas the pkgconfig ones
|
# The following deps on libs are for test-dlopen-so whereas the pkgconfig ones
|
||||||
# are used by test-funtions to find the libs on the host and install them in the
|
# are used by test-funtions to find the libs on the host and install them in the
|
||||||
# image, see install_missing_libraries() for details.
|
# image, see install_missing_libraries() for details.
|
||||||
@ -703,6 +712,7 @@ export CFLAGS="%{optflags} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
|
|||||||
-Dclock-valid-range-usec-max=946728000000000 \
|
-Dclock-valid-range-usec-max=946728000000000 \
|
||||||
-Dadm-group=false \
|
-Dadm-group=false \
|
||||||
-Dwheel-group=false \
|
-Dwheel-group=false \
|
||||||
|
-Dutmp=%{when utmp} \
|
||||||
-Ddefault-hierarchy=unified \
|
-Ddefault-hierarchy=unified \
|
||||||
-Ddefault-kill-user-processes=false \
|
-Ddefault-kill-user-processes=false \
|
||||||
-Dpamconfdir=no \
|
-Dpamconfdir=no \
|
||||||
@ -729,7 +739,7 @@ export CFLAGS="%{optflags} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
|
|||||||
\
|
\
|
||||||
-Dpstore=true \
|
-Dpstore=true \
|
||||||
\
|
\
|
||||||
-Dapparmor=%{when_not bootstrap} \
|
-Dapparmor=%{when apparmor} \
|
||||||
-Dbpf-framework=%{when_not bootstrap} \
|
-Dbpf-framework=%{when_not bootstrap} \
|
||||||
-Defi=%{when_not bootstrap} \
|
-Defi=%{when_not bootstrap} \
|
||||||
-Delfutils=%{when_not bootstrap} \
|
-Delfutils=%{when_not bootstrap} \
|
||||||
@ -741,7 +751,7 @@ export CFLAGS="%{optflags} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
|
|||||||
-Dnss-myhostname=%{when_not bootstrap} \
|
-Dnss-myhostname=%{when_not bootstrap} \
|
||||||
-Dnss-systemd=%{when_not bootstrap} \
|
-Dnss-systemd=%{when_not bootstrap} \
|
||||||
-Dseccomp=%{when_not bootstrap} \
|
-Dseccomp=%{when_not bootstrap} \
|
||||||
-Dselinux=%{when_not bootstrap} \
|
-Dselinux=%{when selinux} \
|
||||||
-Dtpm=%{when_not bootstrap} \
|
-Dtpm=%{when_not bootstrap} \
|
||||||
-Dtpm2=%{when_not bootstrap} \
|
-Dtpm2=%{when_not bootstrap} \
|
||||||
-Dtranslations=%{when_not bootstrap} \
|
-Dtranslations=%{when_not bootstrap} \
|
||||||
|
Loading…
Reference in New Issue
Block a user