SHA256
1
0
forked from pool/systemd

Accepting request 885896 from Base:System

- systemd.spec: clean some of the build deps up:
  - libpcre is redundant with libpcre2 (only required by the full
    build) and the mini variant needs none of them. Hence drop the ref
    to libpcre.
  - normally libidn2 is needed by some optional features in
    systemd-network (only). But it's implicitly pulled in by libgnutls
    (required by the main package). Let's make sure the related
    features won't be disabled inadvertently in the future by making
    the dep explicit.

- enable libiptc for masquerading support in networkd

- create subpackage systemd-experimental to host pstore, repart,
  userdb and homed

OBS-URL: https://build.opensuse.org/request/show/885896
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=329
This commit is contained in:
Dominique Leuenberger 2021-06-03 22:33:07 +00:00 committed by Git OBS Bridge
commit 44300c9c4e
4 changed files with 290 additions and 6 deletions

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Wed Apr 7 08:59:15 UTC 2021 - Franck Bui <fbui@suse.com>
- systemd.spec: clean some of the build deps up:
- libpcre is redundant with libpcre2 (only required by the full
build) and the mini variant needs none of them. Hence drop the ref
to libpcre.
- normally libidn2 is needed by some optional features in
systemd-network (only). But it's implicitly pulled in by libgnutls
(required by the main package). Let's make sure the related
features won't be disabled inadvertently in the future by making
the dep explicit.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 30 13:35:38 UTC 2021 - Franck Bui <fbui@suse.com> Tue Mar 30 13:35:38 UTC 2021 - Franck Bui <fbui@suse.com>
@ -24,6 +39,11 @@ Wed Mar 24 07:05:22 UTC 2021 - Franck Bui <fbui@suse.com>
Temporary workaround for bsc#1183745 (upstream issue 18917) until an Temporary workaround for bsc#1183745 (upstream issue 18917) until an
actual fix is found. actual fix is found.
-------------------------------------------------------------------
Tue Mar 23 14:11:03 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
- enable libiptc for masquerading support in networkd
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 22 21:12:40 UTC 2021 - Neal Gompa <ngompa13@gmail.com> Mon Mar 22 21:12:40 UTC 2021 - Neal Gompa <ngompa13@gmail.com>
@ -65,6 +85,12 @@ Mon Mar 15 11:06:54 UTC 2021 - Franck Bui <fbui@suse.com>
e06139117c nspawn: make rootfs relative to oci bundle path (bsc#1182598) e06139117c nspawn: make rootfs relative to oci bundle path (bsc#1182598)
8ba587d46c PATCH] Always free deserialized_subscribed on reload (bsc#1180020) 8ba587d46c PATCH] Always free deserialized_subscribed on reload (bsc#1180020)
-------------------------------------------------------------------
Thu Mar 11 16:58:44 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
- create subpackage systemd-experimental to host pstore, repart,
userdb and homed
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 11 09:51:53 UTC 2021 - Franck Bui <fbui@suse.com> Thu Mar 11 09:51:53 UTC 2021 - Franck Bui <fbui@suse.com>

View File

@ -38,6 +38,7 @@
%bcond_with portabled %bcond_with portabled
%bcond_with resolved %bcond_with resolved
%bcond_with sysvcompat %bcond_with sysvcompat
%bcond_with experimental
%else %else
%bcond_without coredump %bcond_without coredump
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
@ -50,6 +51,7 @@
%bcond_without portabled %bcond_without portabled
%bcond_without resolved %bcond_without resolved
%bcond_without sysvcompat %bcond_without sysvcompat
%bcond_without experimental
%endif %endif
%bcond_with parentpathid %bcond_with parentpathid
@ -99,7 +101,6 @@ BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(blkid) >= 2.26 BuildRequires: pkgconfig(blkid) >= 2.26
BuildRequires: pkgconfig(libkmod) >= 15 BuildRequires: pkgconfig(libkmod) >= 15
BuildRequires: pkgconfig(libpci) >= 3 BuildRequires: pkgconfig(libpci) >= 3
BuildRequires: pkgconfig(libpcre)
%if %{with importd} %if %{with importd}
BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libcurl)
@ -112,6 +113,10 @@ BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33
%if %{with gnuefi} %if %{with gnuefi}
BuildRequires: gnu-efi BuildRequires: gnu-efi
%endif %endif
%if %{with experimental}
BuildRequires: pkgconfig(fdisk)
BuildRequires: pkgconfig(openssl)
%endif
%if 0%{?bootstrap} %if 0%{?bootstrap}
#!BuildIgnore: dbus-1 #!BuildIgnore: dbus-1
@ -367,6 +372,7 @@ Summary: Systemd tools for networkd and resolved
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Group: System/Base Group: System/Base
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildRequires: pkgconfig(libidn2)
Provides: systemd:/usr/lib/systemd/systemd-networkd Provides: systemd:/usr/lib/systemd/systemd-networkd
Provides: systemd:/usr/lib/systemd/systemd-resolved Provides: systemd:/usr/lib/systemd/systemd-resolved
%systemd_requires %systemd_requires
@ -493,6 +499,24 @@ This package contains systemd-journal-gatewayd,
systemd-journal-remote, and systemd-journal-upload. systemd-journal-remote, and systemd-journal-upload.
%endif %endif
%package experimental
Summary: Experimental systemd features
License: LGPL-2.1-or-later
Group: System/Base
Requires: %{name} = %{version}-%{release}
%systemd_requires
%description experimental
This package contains optional extra systemd services that are
considered a preview feature. Behaviour details and option names are
subject to change without the usual backwards-compatibility promises.
Components that turn out to be stable may be merged into the main or a
dedicated package later.
Use at your own risk.
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%lang_package %lang_package
%endif %endif
@ -526,14 +550,22 @@ systemd-journal-remote, and systemd-journal-upload.
-Dsmack=false \ -Dsmack=false \
-Dima=false \ -Dima=false \
-Delfutils=auto \ -Delfutils=auto \
%if %{with experimental}
-Dpstore=true \
-Drepart=true \
-Dhomed=true \
-Duserdb=true \
%else
-Dpstore=false \ -Dpstore=false \
-Drepart=false \ -Drepart=false \
-Duserdb=false \
-Dhomed=false \ -Dhomed=false \
-Duserdb=false \
%endif
%if 0%{?bootstrap}
-Dfdisk=false \ -Dfdisk=false \
-Dpwquality=false \ -Dpwquality=false \
-Dp11kit=false \ -Dp11kit=false \
%if ! 0%{?bootstrap} %else
-Dman=true \ -Dman=true \
-Dhtml=true \ -Dhtml=true \
%endif %endif
@ -1049,6 +1081,29 @@ fi
%service_del_postun systemd-portabled.service %service_del_postun systemd-portabled.service
%endif %endif
%if %{with experimental}
%pre experimental
%service_add_pre systemd-pstore.service
%service_add_pre systemd-userdbd.service systemd-userdbd.socket
%service_add_pre systemd-homed.service
%post experimental
%tmpfiles_create systemd-pstore.conf
%service_add_post systemd-pstore.service
%service_add_post systemd-userdbd.service systemd-userdbd.socket
%service_add_post systemd-homed.service
%preun experimental
%service_del_preun systemd-pstore.service
%service_del_preun systemd-userdbd.service systemd-userdbd.socket
%service_del_preun systemd-homed.service
%postun experimental
%service_del_postun systemd-pstore.service
%service_del_postun systemd-userdbd.service systemd-userdbd.socket
%service_del_postun systemd-homed.service
%endif
%clean %clean
%files %files
@ -1146,6 +1201,22 @@ fi
%exclude %{_unitdir}/dbus-org.freedesktop.portable1.service %exclude %{_unitdir}/dbus-org.freedesktop.portable1.service
%exclude %{_tmpfilesdir}/portables.conf %exclude %{_tmpfilesdir}/portables.conf
%endif %endif
%if %{with experimental}
%exclude %{_prefix}/lib/systemd/systemd-pstore
%exclude %{_unitdir}/systemd-pstore.service
%exclude %{_tmpfilesdir}/systemd-pstore.conf
%exclude %{_unitdir}/systemd-repart.service
%exclude %{_unitdir}/initrd-root-fs.target.wants/systemd-repart.service
%exclude %{_unitdir}/sysinit.target.wants/systemd-repart.service
%exclude %{_prefix}/lib/systemd/systemd-userwork
%exclude %{_prefix}/lib/systemd/systemd-userdbd
%exclude %{_unitdir}/systemd-userdbd.service
%exclude %{_unitdir}/systemd-userdbd.socket
%exclude %{_prefix}/lib/systemd/systemd-homed
%exclude %{_prefix}/lib/systemd/systemd-homework
%exclude %{_unitdir}/systemd-homed-activate.service
%exclude %{_unitdir}/systemd-homed.service
%endif
%{_unitdir}/*.automount %{_unitdir}/*.automount
%{_unitdir}/*.service %{_unitdir}/*.service
@ -1308,6 +1379,17 @@ fi
%exclude %{_mandir}/man*/portablectl* %exclude %{_mandir}/man*/portablectl*
%exclude %{_mandir}/man*/systemd-portabled* %exclude %{_mandir}/man*/systemd-portabled*
%endif %endif
%if %{with experimental}
%exclude %{_mandir}/man*/*pstore*
%exclude %{_mandir}/man*/*repart*
%exclude %{_mandir}/man*/userdbctl*
%exclude %{_mandir}/man*/systemd-userdbd*
%exclude %{_mandir}/man*/*homectl*
%exclude %{_mandir}/man*/*homed*
%exclude %{_mandir}/man*/org.freedesktop.home1*
%exclude %{_mandir}/man*/pam_systemd_home*
%exclude %{_datadir}/bash-completion/completions/homectl
%endif
%endif %endif
%{_docdir}/systemd %{_docdir}/systemd
@ -1614,4 +1696,38 @@ fi
%{_mandir}/man*/systemd-portabled* %{_mandir}/man*/systemd-portabled*
%endif %endif
%if %{with experimental}
%files experimental
%defattr(-,root,root)
%config(noreplace) /etc/systemd/pstore.conf
%{_prefix}/lib/systemd/systemd-pstore
%{_unitdir}/systemd-pstore.service
%{_tmpfilesdir}/systemd-pstore.conf
%{_mandir}/man*/*pstore*
%{_bindir}/systemd-repart
%{_unitdir}/systemd-repart.service
%{_mandir}/man*/*repart*
/usr/bin/userdbctl
%{_prefix}/lib/systemd/systemd-userwork
%{_prefix}/lib/systemd/systemd-userdbd
%{_unitdir}/systemd-userdbd.service
%{_unitdir}/systemd-userdbd.socket
%{_mandir}/man*/userdbctl*
%{_mandir}/man*/systemd-userdbd*
%config %{_sysconfdir}/homed.conf
%{_bindir}/homectl
%{_prefix}/lib/systemd/systemd-homed
%{_prefix}/lib/systemd/systemd-homework
%{_unitdir}/systemd-homed.service
%{_pamdir}/pam_systemd_home.so
%{_datadir}/dbus-1/system-services/org.freedesktop.home1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.home1.conf
%{_datadir}/polkit-1/actions/org.freedesktop.home1.policy
%{_datadir}/bash-completion/completions/homectl
%{_mandir}/man*/*homectl*
%{_mandir}/man*/*homed*
%{_mandir}/man*/org.freedesktop.home1*
%{_mandir}/man*/pam_systemd_home*
%endif
%changelog %changelog

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Wed Apr 7 08:59:15 UTC 2021 - Franck Bui <fbui@suse.com>
- systemd.spec: clean some of the build deps up:
- libpcre is redundant with libpcre2 (only required by the full
build) and the mini variant needs none of them. Hence drop the ref
to libpcre.
- normally libidn2 is needed by some optional features in
systemd-network (only). But it's implicitly pulled in by libgnutls
(required by the main package). Let's make sure the related
features won't be disabled inadvertently in the future by making
the dep explicit.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 30 13:35:38 UTC 2021 - Franck Bui <fbui@suse.com> Tue Mar 30 13:35:38 UTC 2021 - Franck Bui <fbui@suse.com>
@ -24,6 +39,11 @@ Wed Mar 24 07:05:22 UTC 2021 - Franck Bui <fbui@suse.com>
Temporary workaround for bsc#1183745 (upstream issue 18917) until an Temporary workaround for bsc#1183745 (upstream issue 18917) until an
actual fix is found. actual fix is found.
-------------------------------------------------------------------
Tue Mar 23 14:11:03 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
- enable libiptc for masquerading support in networkd
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 22 21:12:40 UTC 2021 - Neal Gompa <ngompa13@gmail.com> Mon Mar 22 21:12:40 UTC 2021 - Neal Gompa <ngompa13@gmail.com>
@ -65,6 +85,12 @@ Mon Mar 15 11:06:54 UTC 2021 - Franck Bui <fbui@suse.com>
e06139117c nspawn: make rootfs relative to oci bundle path (bsc#1182598) e06139117c nspawn: make rootfs relative to oci bundle path (bsc#1182598)
8ba587d46c PATCH] Always free deserialized_subscribed on reload (bsc#1180020) 8ba587d46c PATCH] Always free deserialized_subscribed on reload (bsc#1180020)
-------------------------------------------------------------------
Thu Mar 11 16:58:44 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
- create subpackage systemd-experimental to host pstore, repart,
userdb and homed
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 11 09:51:53 UTC 2021 - Franck Bui <fbui@suse.com> Thu Mar 11 09:51:53 UTC 2021 - Franck Bui <fbui@suse.com>

View File

@ -36,6 +36,7 @@
%bcond_with portabled %bcond_with portabled
%bcond_with resolved %bcond_with resolved
%bcond_with sysvcompat %bcond_with sysvcompat
%bcond_with experimental
%else %else
%bcond_without coredump %bcond_without coredump
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
@ -48,6 +49,7 @@
%bcond_without portabled %bcond_without portabled
%bcond_without resolved %bcond_without resolved
%bcond_without sysvcompat %bcond_without sysvcompat
%bcond_without experimental
%endif %endif
%bcond_with parentpathid %bcond_with parentpathid
@ -97,7 +99,6 @@ BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(blkid) >= 2.26 BuildRequires: pkgconfig(blkid) >= 2.26
BuildRequires: pkgconfig(libkmod) >= 15 BuildRequires: pkgconfig(libkmod) >= 15
BuildRequires: pkgconfig(libpci) >= 3 BuildRequires: pkgconfig(libpci) >= 3
BuildRequires: pkgconfig(libpcre)
%if %{with importd} %if %{with importd}
BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libcurl)
@ -110,6 +111,10 @@ BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33
%if %{with gnuefi} %if %{with gnuefi}
BuildRequires: gnu-efi BuildRequires: gnu-efi
%endif %endif
%if %{with experimental}
BuildRequires: pkgconfig(fdisk)
BuildRequires: pkgconfig(openssl)
%endif
%if 0%{?bootstrap} %if 0%{?bootstrap}
#!BuildIgnore: dbus-1 #!BuildIgnore: dbus-1
@ -365,6 +370,7 @@ Summary: Systemd tools for networkd and resolved
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Group: System/Base Group: System/Base
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildRequires: pkgconfig(libidn2)
Provides: systemd:/usr/lib/systemd/systemd-networkd Provides: systemd:/usr/lib/systemd/systemd-networkd
Provides: systemd:/usr/lib/systemd/systemd-resolved Provides: systemd:/usr/lib/systemd/systemd-resolved
%systemd_requires %systemd_requires
@ -491,6 +497,24 @@ This package contains systemd-journal-gatewayd,
systemd-journal-remote, and systemd-journal-upload. systemd-journal-remote, and systemd-journal-upload.
%endif %endif
%package experimental
Summary: Experimental systemd features
License: LGPL-2.1-or-later
Group: System/Base
Requires: %{name} = %{version}-%{release}
%systemd_requires
%description experimental
This package contains optional extra systemd services that are
considered a preview feature. Behaviour details and option names are
subject to change without the usual backwards-compatibility promises.
Components that turn out to be stable may be merged into the main or a
dedicated package later.
Use at your own risk.
%if ! 0%{?bootstrap} %if ! 0%{?bootstrap}
%lang_package %lang_package
%endif %endif
@ -524,14 +548,22 @@ systemd-journal-remote, and systemd-journal-upload.
-Dsmack=false \ -Dsmack=false \
-Dima=false \ -Dima=false \
-Delfutils=auto \ -Delfutils=auto \
%if %{with experimental}
-Dpstore=true \
-Drepart=true \
-Dhomed=true \
-Duserdb=true \
%else
-Dpstore=false \ -Dpstore=false \
-Drepart=false \ -Drepart=false \
-Duserdb=false \
-Dhomed=false \ -Dhomed=false \
-Duserdb=false \
%endif
%if 0%{?bootstrap}
-Dfdisk=false \ -Dfdisk=false \
-Dpwquality=false \ -Dpwquality=false \
-Dp11kit=false \ -Dp11kit=false \
%if ! 0%{?bootstrap} %else
-Dman=true \ -Dman=true \
-Dhtml=true \ -Dhtml=true \
%endif %endif
@ -1047,6 +1079,29 @@ fi
%service_del_postun systemd-portabled.service %service_del_postun systemd-portabled.service
%endif %endif
%if %{with experimental}
%pre experimental
%service_add_pre systemd-pstore.service
%service_add_pre systemd-userdbd.service systemd-userdbd.socket
%service_add_pre systemd-homed.service
%post experimental
%tmpfiles_create systemd-pstore.conf
%service_add_post systemd-pstore.service
%service_add_post systemd-userdbd.service systemd-userdbd.socket
%service_add_post systemd-homed.service
%preun experimental
%service_del_preun systemd-pstore.service
%service_del_preun systemd-userdbd.service systemd-userdbd.socket
%service_del_preun systemd-homed.service
%postun experimental
%service_del_postun systemd-pstore.service
%service_del_postun systemd-userdbd.service systemd-userdbd.socket
%service_del_postun systemd-homed.service
%endif
%clean %clean
%files %files
@ -1144,6 +1199,22 @@ fi
%exclude %{_unitdir}/dbus-org.freedesktop.portable1.service %exclude %{_unitdir}/dbus-org.freedesktop.portable1.service
%exclude %{_tmpfilesdir}/portables.conf %exclude %{_tmpfilesdir}/portables.conf
%endif %endif
%if %{with experimental}
%exclude %{_prefix}/lib/systemd/systemd-pstore
%exclude %{_unitdir}/systemd-pstore.service
%exclude %{_tmpfilesdir}/systemd-pstore.conf
%exclude %{_unitdir}/systemd-repart.service
%exclude %{_unitdir}/initrd-root-fs.target.wants/systemd-repart.service
%exclude %{_unitdir}/sysinit.target.wants/systemd-repart.service
%exclude %{_prefix}/lib/systemd/systemd-userwork
%exclude %{_prefix}/lib/systemd/systemd-userdbd
%exclude %{_unitdir}/systemd-userdbd.service
%exclude %{_unitdir}/systemd-userdbd.socket
%exclude %{_prefix}/lib/systemd/systemd-homed
%exclude %{_prefix}/lib/systemd/systemd-homework
%exclude %{_unitdir}/systemd-homed-activate.service
%exclude %{_unitdir}/systemd-homed.service
%endif
%{_unitdir}/*.automount %{_unitdir}/*.automount
%{_unitdir}/*.service %{_unitdir}/*.service
@ -1306,6 +1377,17 @@ fi
%exclude %{_mandir}/man*/portablectl* %exclude %{_mandir}/man*/portablectl*
%exclude %{_mandir}/man*/systemd-portabled* %exclude %{_mandir}/man*/systemd-portabled*
%endif %endif
%if %{with experimental}
%exclude %{_mandir}/man*/*pstore*
%exclude %{_mandir}/man*/*repart*
%exclude %{_mandir}/man*/userdbctl*
%exclude %{_mandir}/man*/systemd-userdbd*
%exclude %{_mandir}/man*/*homectl*
%exclude %{_mandir}/man*/*homed*
%exclude %{_mandir}/man*/org.freedesktop.home1*
%exclude %{_mandir}/man*/pam_systemd_home*
%exclude %{_datadir}/bash-completion/completions/homectl
%endif
%endif %endif
%{_docdir}/systemd %{_docdir}/systemd
@ -1612,4 +1694,38 @@ fi
%{_mandir}/man*/systemd-portabled* %{_mandir}/man*/systemd-portabled*
%endif %endif
%if %{with experimental}
%files experimental
%defattr(-,root,root)
%config(noreplace) /etc/systemd/pstore.conf
%{_prefix}/lib/systemd/systemd-pstore
%{_unitdir}/systemd-pstore.service
%{_tmpfilesdir}/systemd-pstore.conf
%{_mandir}/man*/*pstore*
%{_bindir}/systemd-repart
%{_unitdir}/systemd-repart.service
%{_mandir}/man*/*repart*
/usr/bin/userdbctl
%{_prefix}/lib/systemd/systemd-userwork
%{_prefix}/lib/systemd/systemd-userdbd
%{_unitdir}/systemd-userdbd.service
%{_unitdir}/systemd-userdbd.socket
%{_mandir}/man*/userdbctl*
%{_mandir}/man*/systemd-userdbd*
%config %{_sysconfdir}/homed.conf
%{_bindir}/homectl
%{_prefix}/lib/systemd/systemd-homed
%{_prefix}/lib/systemd/systemd-homework
%{_unitdir}/systemd-homed.service
%{_pamdir}/pam_systemd_home.so
%{_datadir}/dbus-1/system-services/org.freedesktop.home1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.home1.conf
%{_datadir}/polkit-1/actions/org.freedesktop.home1.policy
%{_datadir}/bash-completion/completions/homectl
%{_mandir}/man*/*homectl*
%{_mandir}/man*/*homed*
%{_mandir}/man*/org.freedesktop.home1*
%{_mandir}/man*/pam_systemd_home*
%endif
%changelog %changelog