From a1b0bcc02063c569b0af55fc4212d7d9efea851b4a5c920b2a0294e515363352 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 3 Jun 2021 22:33:07 +0000 Subject: [PATCH] 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 --- systemd-mini.changes | 26 +++++++++ systemd-mini.spec | 122 +++++++++++++++++++++++++++++++++++++++++-- systemd.changes | 26 +++++++++ systemd.spec | 122 +++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 290 insertions(+), 6 deletions(-) diff --git a/systemd-mini.changes b/systemd-mini.changes index f2e3c48f..e63fc72b 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Wed Apr 7 08:59:15 UTC 2021 - Franck Bui + +- 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 @@ -24,6 +39,11 @@ Wed Mar 24 07:05:22 UTC 2021 - Franck Bui Temporary workaround for bsc#1183745 (upstream issue 18917) until an actual fix is found. +------------------------------------------------------------------- +Tue Mar 23 14:11:03 UTC 2021 - Ludwig Nussel + +- enable libiptc for masquerading support in networkd + ------------------------------------------------------------------- Mon Mar 22 21:12:40 UTC 2021 - Neal Gompa @@ -65,6 +85,12 @@ Mon Mar 15 11:06:54 UTC 2021 - Franck Bui e06139117c nspawn: make rootfs relative to oci bundle path (bsc#1182598) 8ba587d46c PATCH] Always free deserialized_subscribed on reload (bsc#1180020) +------------------------------------------------------------------- +Thu Mar 11 16:58:44 UTC 2021 - Ludwig Nussel + +- create subpackage systemd-experimental to host pstore, repart, + userdb and homed + ------------------------------------------------------------------- Thu Mar 11 09:51:53 UTC 2021 - Franck Bui diff --git a/systemd-mini.spec b/systemd-mini.spec index d2b08382..5ed9d5d2 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -38,6 +38,7 @@ %bcond_with portabled %bcond_with resolved %bcond_with sysvcompat +%bcond_with experimental %else %bcond_without coredump %ifarch %{ix86} x86_64 @@ -50,6 +51,7 @@ %bcond_without portabled %bcond_without resolved %bcond_without sysvcompat +%bcond_without experimental %endif %bcond_with parentpathid @@ -99,7 +101,6 @@ BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(blkid) >= 2.26 BuildRequires: pkgconfig(libkmod) >= 15 BuildRequires: pkgconfig(libpci) >= 3 -BuildRequires: pkgconfig(libpcre) %if %{with importd} BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(libcurl) @@ -112,6 +113,10 @@ BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33 %if %{with gnuefi} BuildRequires: gnu-efi %endif +%if %{with experimental} +BuildRequires: pkgconfig(fdisk) +BuildRequires: pkgconfig(openssl) +%endif %if 0%{?bootstrap} #!BuildIgnore: dbus-1 @@ -367,6 +372,7 @@ Summary: Systemd tools for networkd and resolved License: LGPL-2.1-or-later Group: System/Base Requires: %{name} = %{version}-%{release} +BuildRequires: pkgconfig(libidn2) Provides: systemd:/usr/lib/systemd/systemd-networkd Provides: systemd:/usr/lib/systemd/systemd-resolved %systemd_requires @@ -493,6 +499,24 @@ This package contains systemd-journal-gatewayd, systemd-journal-remote, and systemd-journal-upload. %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} %lang_package %endif @@ -526,14 +550,22 @@ systemd-journal-remote, and systemd-journal-upload. -Dsmack=false \ -Dima=false \ -Delfutils=auto \ +%if %{with experimental} + -Dpstore=true \ + -Drepart=true \ + -Dhomed=true \ + -Duserdb=true \ +%else -Dpstore=false \ -Drepart=false \ - -Duserdb=false \ -Dhomed=false \ + -Duserdb=false \ +%endif +%if 0%{?bootstrap} -Dfdisk=false \ -Dpwquality=false \ -Dp11kit=false \ -%if ! 0%{?bootstrap} +%else -Dman=true \ -Dhtml=true \ %endif @@ -1049,6 +1081,29 @@ fi %service_del_postun systemd-portabled.service %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 %files @@ -1146,6 +1201,22 @@ fi %exclude %{_unitdir}/dbus-org.freedesktop.portable1.service %exclude %{_tmpfilesdir}/portables.conf %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}/*.service @@ -1308,6 +1379,17 @@ fi %exclude %{_mandir}/man*/portablectl* %exclude %{_mandir}/man*/systemd-portabled* %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 %{_docdir}/systemd @@ -1614,4 +1696,38 @@ fi %{_mandir}/man*/systemd-portabled* %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 diff --git a/systemd.changes b/systemd.changes index f2e3c48f..e63fc72b 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Wed Apr 7 08:59:15 UTC 2021 - Franck Bui + +- 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 @@ -24,6 +39,11 @@ Wed Mar 24 07:05:22 UTC 2021 - Franck Bui Temporary workaround for bsc#1183745 (upstream issue 18917) until an actual fix is found. +------------------------------------------------------------------- +Tue Mar 23 14:11:03 UTC 2021 - Ludwig Nussel + +- enable libiptc for masquerading support in networkd + ------------------------------------------------------------------- Mon Mar 22 21:12:40 UTC 2021 - Neal Gompa @@ -65,6 +85,12 @@ Mon Mar 15 11:06:54 UTC 2021 - Franck Bui e06139117c nspawn: make rootfs relative to oci bundle path (bsc#1182598) 8ba587d46c PATCH] Always free deserialized_subscribed on reload (bsc#1180020) +------------------------------------------------------------------- +Thu Mar 11 16:58:44 UTC 2021 - Ludwig Nussel + +- create subpackage systemd-experimental to host pstore, repart, + userdb and homed + ------------------------------------------------------------------- Thu Mar 11 09:51:53 UTC 2021 - Franck Bui diff --git a/systemd.spec b/systemd.spec index 962abb8e..d31ca44b 100644 --- a/systemd.spec +++ b/systemd.spec @@ -36,6 +36,7 @@ %bcond_with portabled %bcond_with resolved %bcond_with sysvcompat +%bcond_with experimental %else %bcond_without coredump %ifarch %{ix86} x86_64 @@ -48,6 +49,7 @@ %bcond_without portabled %bcond_without resolved %bcond_without sysvcompat +%bcond_without experimental %endif %bcond_with parentpathid @@ -97,7 +99,6 @@ BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(blkid) >= 2.26 BuildRequires: pkgconfig(libkmod) >= 15 BuildRequires: pkgconfig(libpci) >= 3 -BuildRequires: pkgconfig(libpcre) %if %{with importd} BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(libcurl) @@ -110,6 +111,10 @@ BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33 %if %{with gnuefi} BuildRequires: gnu-efi %endif +%if %{with experimental} +BuildRequires: pkgconfig(fdisk) +BuildRequires: pkgconfig(openssl) +%endif %if 0%{?bootstrap} #!BuildIgnore: dbus-1 @@ -365,6 +370,7 @@ Summary: Systemd tools for networkd and resolved License: LGPL-2.1-or-later Group: System/Base Requires: %{name} = %{version}-%{release} +BuildRequires: pkgconfig(libidn2) Provides: systemd:/usr/lib/systemd/systemd-networkd Provides: systemd:/usr/lib/systemd/systemd-resolved %systemd_requires @@ -491,6 +497,24 @@ This package contains systemd-journal-gatewayd, systemd-journal-remote, and systemd-journal-upload. %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} %lang_package %endif @@ -524,14 +548,22 @@ systemd-journal-remote, and systemd-journal-upload. -Dsmack=false \ -Dima=false \ -Delfutils=auto \ +%if %{with experimental} + -Dpstore=true \ + -Drepart=true \ + -Dhomed=true \ + -Duserdb=true \ +%else -Dpstore=false \ -Drepart=false \ - -Duserdb=false \ -Dhomed=false \ + -Duserdb=false \ +%endif +%if 0%{?bootstrap} -Dfdisk=false \ -Dpwquality=false \ -Dp11kit=false \ -%if ! 0%{?bootstrap} +%else -Dman=true \ -Dhtml=true \ %endif @@ -1047,6 +1079,29 @@ fi %service_del_postun systemd-portabled.service %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 %files @@ -1144,6 +1199,22 @@ fi %exclude %{_unitdir}/dbus-org.freedesktop.portable1.service %exclude %{_tmpfilesdir}/portables.conf %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}/*.service @@ -1306,6 +1377,17 @@ fi %exclude %{_mandir}/man*/portablectl* %exclude %{_mandir}/man*/systemd-portabled* %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 %{_docdir}/systemd @@ -1612,4 +1694,38 @@ fi %{_mandir}/man*/systemd-portabled* %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