- systemd.spec: explicitely turn on/off build options

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1248
This commit is contained in:
Franck Bui 2022-02-14 07:34:49 +00:00 committed by Git OBS Bridge
parent a65ff71e2b
commit 3a72cf9abe
2 changed files with 43 additions and 63 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Feb 14 07:31:49 UTC 2022 - Franck Bui <fbui@suse.com>
- systemd.spec: explicitely turn on/off build options
Hence a feature can't be accidentally turned on/off because its dep is pulled
in or removed due to another feature being turned on/off.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 4 15:22:43 UTC 2022 - Franck Bui <fbui@suse.com> Fri Feb 4 15:22:43 UTC 2022 - Franck Bui <fbui@suse.com>

View File

@ -17,7 +17,7 @@
# #
# The git repository used to track all Suse specific changes can be # The git repository used to track all SUSE specific changes can be
# found at: https://github.com/openSUSE/systemd. # found at: https://github.com/openSUSE/systemd.
# #
@ -35,6 +35,9 @@
%define suse_version +suse.82.g117bd7f14a %define suse_version +suse.82.g117bd7f14a
%define _testsuitedir /usr/lib/systemd/tests %define _testsuitedir /usr/lib/systemd/tests
# Similar to %with but returns true/false
%define when() %{expand:%%{?with_%{1}:true}%%{!?with_%{1}:false}}
%if 0%{?bootstrap} %if 0%{?bootstrap}
%bcond_with coredump %bcond_with coredump
%bcond_with importd %bcond_with importd
@ -134,6 +137,8 @@ BuildRequires: gnu-efi
#!BuildIgnore: dbus-1 #!BuildIgnore: dbus-1
Requires: this-is-only-for-build-envs Requires: this-is-only-for-build-envs
Provides: systemd = %{version}-%{release} Provides: systemd = %{version}-%{release}
Conflicts: kiwi
Conflicts: systemd
%else %else
# the buildignore is important for bootstrapping # the buildignore is important for bootstrapping
#!BuildIgnore: udev #!BuildIgnore: udev
@ -157,11 +162,6 @@ Requires(post): findutils
Requires(post): systemd-presets-branding Requires(post): systemd-presets-branding
Requires(post): pam-config >= 0.79-5 Requires(post): pam-config >= 0.79-5
%endif %endif
%if 0%{?bootstrap}
Conflicts: kiwi
Conflicts: systemd
%endif
Conflicts: filesystem < 11.5 Conflicts: filesystem < 11.5
Conflicts: mkinitrd < 2.7.0 Conflicts: mkinitrd < 2.7.0
Conflicts: sysvinit Conflicts: sysvinit
@ -623,13 +623,21 @@ Have fun with these services at your own risk.
-Dsplit-bin=true \ -Dsplit-bin=true \
-Dsystem-uid-max=499 \ -Dsystem-uid-max=499 \
-Dsystem-gid-max=499 \ -Dsystem-gid-max=499 \
-Dadm-group=false \
-Dwheel-group=false \
-Dgshadow=false \
-Ddefault-hierarchy=unified \
-Ddefault-kill-user-processes=false \
-Dldconfig=false \
-Dpamconfdir=no \ -Dpamconfdir=no \
-Dpamlibdir=%{_pam_moduledir} \ -Dpamlibdir=%{_pam_moduledir} \
-Dxinitrcdir=%{_distconfdir}/X11/xinit/xinitrc.d \ -Dxinitrcdir=%{_distconfdir}/X11/xinit/xinitrc.d \
-Drpmmacrosdir=no \ -Drpmmacrosdir=no \
-Dcertificate-root=%{_sysconfdir}/pki/systemd \ -Dcertificate-root=%{_sysconfdir}/pki/systemd \
-Ddefault-hierarchy=unified \ %if %{without sysvcompat}
-Ddefault-kill-user-processes=false \ -Dsysvinit-path= \
-Dsysvrcnd-path= \
%endif
-Drc-local=/etc/init.d/boot.local \ -Drc-local=/etc/init.d/boot.local \
-Dcreate-log-dirs=false \ -Dcreate-log-dirs=false \
-Dbump-proc-sys-fs-nr-open=false \ -Dbump-proc-sys-fs-nr-open=false \
@ -641,17 +649,6 @@ Have fun with these services at your own risk.
-Dima=false \ -Dima=false \
-Delfutils=auto \ -Delfutils=auto \
-Doomd=false \ -Doomd=false \
%if %{with experimental}
-Dpstore=true \
-Drepart=true \
-Dhomed=true \
-Duserdb=true \
%else
-Dpstore=false \
-Drepart=false \
-Dhomed=false \
-Duserdb=false \
%endif
%if 0%{?bootstrap} %if 0%{?bootstrap}
-Dbashcompletiondir=no \ -Dbashcompletiondir=no \
-Dzshcompletiondir=no \ -Dzshcompletiondir=no \
@ -663,53 +660,28 @@ Have fun with these services at your own risk.
-Dman=true \ -Dman=true \
-Dhtml=true \ -Dhtml=true \
%endif %endif
%if %{without coredump} -Dcoredump=%{when coredump} \
-Dcoredump=false \ -Dimportd=%{when importd} \
%endif -Dmachined=%{when machined} \
%if %{without sd_boot} -Dnetworkd=%{when networkd} \
-Defi=false \ -Dportabled=%{when portabled} \
-Dgnu-efi=false \ -Dremote=%{when journal_remote} \
%else \
-Defi=true \ -Defi=%{when sd_boot} \
-Dgnu-efi=true \ -Dgnu-efi=%{when sd_boot} \
%endif \
%if %{without importd} -Dresolve=%{when resolved} \
-Dimportd=false \
%endif
%if %{without journal_remote}
-Dremote=false \
%endif
%if %{without portabled}
-Dportabled=false \
%endif
%if %{without machined}
-Dmachined=false \
%endif
%if %{without networkd}
-Dnetworkd=false \
%endif
%if %{without resolved}
-Dresolve=false \
%else
-Ddns-servers='' \ -Ddns-servers='' \
-Ddefault-dnssec=no \ -Ddefault-dnssec=no \
-Ddns-over-tls=openssl \ -Ddns-over-tls=openssl \
%endif \
%if %{without sysvcompat} -Dpstore=%{when experimental} \
-Dsysvinit-path= \ -Drepart=%{when experimental} \
-Dsysvrcnd-path= \ -Dhomed=%{when experimental} \
%endif -Duserdb=%{when experimental} \
%if %{with testsuite} \
-Dtests=unsafe \ -Dtests=%{?with_testsuite:unsafe}%{!?with_testsuite:false} \
-Dinstall-tests=true \ -Dinstall-tests=%{when testsuite}
%else
-Dtests=false \
-Dinstall-tests=false \
%endif
-Dadm-group=false \
-Dwheel-group=false \
-Dgshadow=false \
-Dldconfig=false
%meson_build %meson_build