From aee6daab3aa4f3746492502bfac76090fb0fc7a3b3cabf8579bb97ee986fb502 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Thu, 22 Feb 2018 15:07:17 +0000 Subject: [PATCH 1/3] Accepting request 579036 from home:fbui:systemd:Factory - Split off systemd-container sub-package off Other distros already do it and it seems a good idea to not install this stuff on new installations by default. At least /var/lib/machines subvol is not created anymore at boot even if it wasn't used at all. OBS-URL: https://build.opensuse.org/request/show/579036 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1014 --- systemd-mini.changes | 16 ++++- systemd-mini.spec | 143 ++++++++++++++++++++++++++++++------------- systemd.changes | 16 ++++- systemd.spec | 143 ++++++++++++++++++++++++++++++------------- 4 files changed, 228 insertions(+), 90 deletions(-) diff --git a/systemd-mini.changes b/systemd-mini.changes index fa988b4c..aa1eba4e 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Feb 22 14:57:19 UTC 2018 - fbui@suse.com + +- Split off systemd-container sub-package off + + Other distros already do it and it seems a good idea to not install + this stuff on new installations by default. At least + /var/lib/machines subvol is not created anymore at boot even if it + wasn't used at all. + ------------------------------------------------------------------- Mon Feb 19 14:26:51 UTC 2018 - fbui@suse.com @@ -75,13 +85,13 @@ Fri Feb 9 07:59:56 UTC 2018 - fbui@suse.com The previous fix couldn't work on platforms using a RO rootfs. Therefore we don't ship /usr/lib/systemd/system/tmp.mnt but - we still ship a copy in /var. + we still ship a copy in /usr/share/systemd. Users who want to use tmpfs on /tmp are supposed to add a symlink in - /etc/ pointing to the copy shipped in /var. + /etc/ pointing to the copy shipped in /usr/share/systemd. To support the update path we automatically create the symlink if - tmp.mount in use is located in /usr. + tmp.mount in use is located in /usr/lib/systemd. ------------------------------------------------------------------- Tue Feb 6 16:11:40 UTC 2018 - fbui@suse.com diff --git a/systemd-mini.spec b/systemd-mini.spec index cea9627c..a13b7bf6 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -293,6 +293,20 @@ Conflicts: libudev-devel This package contains the development files for the library libudev, a dynamic library, which provides access to udev device information. +%package container +Summary: Systemd tools for container management +License: LGPL-2.1+ +Group: System/Base +Requires: %{name} = %{version}-%{release} +%systemd_requires +Provides: systemd:%{_bindir}/systemd-nspawn + +%description container +Systemd tools to spawn and manage containers and virtual machines. + +This package contains systemd-nspawn, machinectl, systemd-machined, +and systemd-importd. + %if ! 0%{?bootstrap} %package logger Summary: Journal only logging @@ -697,23 +711,6 @@ done %{_prefix}/lib/systemd/scripts/upgrade-from-pre-210.sh || : if [ $1 -gt 1 ]; then - # Convert /var/lib/machines subvolume to make it suitable for - # rollbacks, if needed. See bsc#992573. The installer has been fixed - # to create it at installation time. - # - # The convertion might only be problematic for openSUSE distros - # (TW/Factory) where previous versions had already created the - # subvolume at the wrong place (via tmpfiles for example) and user - # started to populate and use it. In this case we'll let the user fix - # it manually. - # - # For SLE12 this subvolume was only introduced during the upgrade from - # v210 to v228 when we added this workaround. Note that the subvolume - # is still created at the wrong place due to the call to - # tmpfiles_create macro previously however it's empty so there - # shouldn't be any issues. - %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || : - # Migrate i18n setting stuff thout could be previously # configured in /etc/sysconfig but now is defined only in the # systemd official places (/etc/locale.conf, @@ -778,6 +775,26 @@ systemctl daemon-reload || : %postun -n libudev%{?mini}1 -p /sbin/ldconfig %postun -n libsystemd0%{?mini} -p /sbin/ldconfig +%post container +if [ $1 -gt 1 ]; then + # Convert /var/lib/machines subvolume to make it suitable for + # rollbacks, if needed. See bsc#992573. The installer has been fixed + # to create it at installation time. + # + # The convertion might only be problematic for openSUSE distros + # (TW/Factory) where previous versions had already created the + # subvolume at the wrong place (via tmpfiles for example) and user + # started to populate and use it. In this case we'll let the user fix + # it manually. + # + # For SLE12 this subvolume was only introduced during the upgrade from + # v210 to v228 when we added this workaround. Note that the subvolume + # is still created at the wrong place due to the call to + # tmpfiles_create macro previously however it's empty so there + # shouldn't be any issues. + %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || : +fi + %if ! 0%{?bootstrap} %post logger %tmpfiles_create -- --prefix=%{_localstatedir}/log/journal/ @@ -842,9 +859,6 @@ fi %{_bindir}/kernel-install %{_bindir}/hostnamectl %{_bindir}/localectl -%if %{with machined} -%{_bindir}/machinectl -%endif %{_bindir}/systemctl %{_bindir}/systemd-analyze %{_bindir}/coredumpctl @@ -864,7 +878,6 @@ fi %{_bindir}/systemd-tty-ask-password-agent %{_bindir}/systemd-tmpfiles %{_bindir}/systemd-machine-id-setup -%{_bindir}/systemd-nspawn %if %{with resolved} %{_bindir}/systemd-resolve %endif @@ -896,6 +909,24 @@ fi %exclude %{_unitdir}/systemd-udev*.* %exclude %{_unitdir}/*.target.wants/systemd-udev*.* %exclude %{_unitdir}/initrd-udevadm-cleanup-db.service +%exclude %{_unitdir}/systemd-nspawn@.service +%if %{with machined} +%exclude %{_prefix}/lib/systemd/systemd-machined +%exclude %{_unitdir}/systemd-machined.service +%exclude %{_unitdir}/dbus-org.freedesktop.machine1.service +%exclude %{_unitdir}/var-lib-machines.mount +%exclude %{_unitdir}/machine.slice +%exclude %{_unitdir}/machines.target* +%exclude %{_unitdir}/*.target.wants/var-lib-machines.mount +%endif +%if %{with importd} +%exclude %{_prefix}/lib/systemd/systemd-import* +%exclude %{_prefix}/lib/systemd/systemd-pull +%exclude %{_prefix}/lib/systemd/import-pubring.gpg +%exclude %{_unitdir}/systemd-importd.service +%exclude %{_unitdir}/dbus-org.freedesktop.import1.service +%endif + %{_unitdir}/*.automount %{_unitdir}/*.service %{_unitdir}/*.slice @@ -914,6 +945,7 @@ fi %{_prefix}/lib/systemd/resolv.conf %endif %{_prefix}/lib/systemd/scripts +%exclude %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh %dir %{_journalcatalogdir} %{_journalcatalogdir}/systemd.catalog %{_journalcatalogdir}/systemd.*.catalog @@ -930,9 +962,6 @@ fi %dir %{_unitdir}/user@0.service.d %{_unitdir}/getty@tty1.service.d/noclear.conf %{_unitdir}/user@0.service.d/nodelagate.conf -%if %{with importd} -%{_prefix}/lib/systemd/import-pubring.gpg -%endif /%{_lib}/security/pam_systemd.so %if %{with gnuefi} @@ -949,6 +978,7 @@ fi %{_sysusersdir}/ %dir %{_sysconfdir}/tmpfiles.d %{_tmpfilesdir}/ +%exclude %{_tmpfilesdir}/systemd-nspawn.conf %if %{with journal_remote} %exclude %{_sysusersdir}/systemd-remote.conf @@ -998,9 +1028,6 @@ fi %{_datadir}/dbus-1/system.d/org.freedesktop.systemd1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.hostname1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.timedate1.conf -%if %{with machined} -%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf -%endif %if %{with networkd} %{_sysconfdir}/systemd/system/dbus-org.freedesktop.network1.service %{_datadir}/dbus-1/system.d/org.freedesktop.network1.conf @@ -1009,9 +1036,6 @@ fi %{_sysconfdir}/systemd/system/dbus-org.freedesktop.resolve1.service %{_datadir}/dbus-1/system.d/org.freedesktop.resolve1.conf %endif -%if %{with importd} -%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf -%endif # Some files created at runtime. %ghost %config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf @@ -1043,12 +1067,6 @@ fi %if %{with resolved} %{_datadir}/dbus-1/system-services/org.freedesktop.resolve1.service %endif -%if %{with machined} -%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service -%endif -%if %{with importd} -%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service -%endif %dir %{_datadir}/polkit-1 %dir %{_datadir}/polkit-1/actions @@ -1057,12 +1075,6 @@ fi %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy %{_datadir}/polkit-1/actions/org.freedesktop.login1.policy -%if %{with machined} -%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy -%endif -%if %{with importd} -%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy -%endif %if %{with networkd} %{_datadir}/polkit-1/rules.d/systemd-networkd.rules %endif @@ -1081,6 +1093,13 @@ fi %{_mandir}/man8/systemd-journald* %{_mandir}/man8/systemd-u[ps]* %{_mandir}/man8/30-systemd-environment-d-generator.* +%if %{with machined} +%exclude %{_mandir}/man*/machinectl* +%exclude %{_mandir}/man*/systemd-machined* +%endif +%if %{with importd} +%exclude %{_mandir}/man*/systemd-importd* +%endif %endif %{_docdir}/systemd @@ -1202,6 +1221,46 @@ fi %{_mandir}/man3/*udev*.3* %endif +%files container +%defattr(-,root,root) +%{_bindir}/systemd-nspawn +%{_unitdir}/systemd-nspawn@.service +%{_tmpfilesdir}/systemd-nspawn.conf +%if %{with machined} +%{_bindir}/machinectl +%{_prefix}/lib/systemd/systemd-machined +%{_unitdir}/systemd-machined.service +%{_unitdir}/dbus-org.freedesktop.machine1.service +%{_unitdir}/var-lib-machines.mount +%{_unitdir}/machine.slice +%{_unitdir}/machines.target* +%{_unitdir}/*.target.wants/var-lib-machines.mount +%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh +%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf +%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service +%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy +%endif +%if %{with importd} +%{_prefix}/lib/systemd/systemd-import* +%{_prefix}/lib/systemd/systemd-pull +%{_prefix}/lib/systemd/import-pubring.gpg +%{_unitdir}/systemd-importd.service +%{_unitdir}/dbus-org.freedesktop.import1.service +%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf +%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service +%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy +%endif +%if ! 0%{?bootstrap} +%{_mandir}/man*/*nspawn* +%if %{with machined} +%{_mandir}/man*/machinectl* +%{_mandir}/man*/systemd-machined* +%endif +%if %{with importd} +%{_mandir}/man*/systemd-importd* +%endif +%endif + %if ! 0%{?bootstrap} %files logger %defattr(-,root,root) diff --git a/systemd.changes b/systemd.changes index fa988b4c..aa1eba4e 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Feb 22 14:57:19 UTC 2018 - fbui@suse.com + +- Split off systemd-container sub-package off + + Other distros already do it and it seems a good idea to not install + this stuff on new installations by default. At least + /var/lib/machines subvol is not created anymore at boot even if it + wasn't used at all. + ------------------------------------------------------------------- Mon Feb 19 14:26:51 UTC 2018 - fbui@suse.com @@ -75,13 +85,13 @@ Fri Feb 9 07:59:56 UTC 2018 - fbui@suse.com The previous fix couldn't work on platforms using a RO rootfs. Therefore we don't ship /usr/lib/systemd/system/tmp.mnt but - we still ship a copy in /var. + we still ship a copy in /usr/share/systemd. Users who want to use tmpfs on /tmp are supposed to add a symlink in - /etc/ pointing to the copy shipped in /var. + /etc/ pointing to the copy shipped in /usr/share/systemd. To support the update path we automatically create the symlink if - tmp.mount in use is located in /usr. + tmp.mount in use is located in /usr/lib/systemd. ------------------------------------------------------------------- Tue Feb 6 16:11:40 UTC 2018 - fbui@suse.com diff --git a/systemd.spec b/systemd.spec index 3d9cb358..38ac7087 100644 --- a/systemd.spec +++ b/systemd.spec @@ -291,6 +291,20 @@ Conflicts: libudev-devel This package contains the development files for the library libudev, a dynamic library, which provides access to udev device information. +%package container +Summary: Systemd tools for container management +License: LGPL-2.1+ +Group: System/Base +Requires: %{name} = %{version}-%{release} +%systemd_requires +Provides: systemd:%{_bindir}/systemd-nspawn + +%description container +Systemd tools to spawn and manage containers and virtual machines. + +This package contains systemd-nspawn, machinectl, systemd-machined, +and systemd-importd. + %if ! 0%{?bootstrap} %package logger Summary: Journal only logging @@ -695,23 +709,6 @@ done %{_prefix}/lib/systemd/scripts/upgrade-from-pre-210.sh || : if [ $1 -gt 1 ]; then - # Convert /var/lib/machines subvolume to make it suitable for - # rollbacks, if needed. See bsc#992573. The installer has been fixed - # to create it at installation time. - # - # The convertion might only be problematic for openSUSE distros - # (TW/Factory) where previous versions had already created the - # subvolume at the wrong place (via tmpfiles for example) and user - # started to populate and use it. In this case we'll let the user fix - # it manually. - # - # For SLE12 this subvolume was only introduced during the upgrade from - # v210 to v228 when we added this workaround. Note that the subvolume - # is still created at the wrong place due to the call to - # tmpfiles_create macro previously however it's empty so there - # shouldn't be any issues. - %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || : - # Migrate i18n setting stuff thout could be previously # configured in /etc/sysconfig but now is defined only in the # systemd official places (/etc/locale.conf, @@ -776,6 +773,26 @@ systemctl daemon-reload || : %postun -n libudev%{?mini}1 -p /sbin/ldconfig %postun -n libsystemd0%{?mini} -p /sbin/ldconfig +%post container +if [ $1 -gt 1 ]; then + # Convert /var/lib/machines subvolume to make it suitable for + # rollbacks, if needed. See bsc#992573. The installer has been fixed + # to create it at installation time. + # + # The convertion might only be problematic for openSUSE distros + # (TW/Factory) where previous versions had already created the + # subvolume at the wrong place (via tmpfiles for example) and user + # started to populate and use it. In this case we'll let the user fix + # it manually. + # + # For SLE12 this subvolume was only introduced during the upgrade from + # v210 to v228 when we added this workaround. Note that the subvolume + # is still created at the wrong place due to the call to + # tmpfiles_create macro previously however it's empty so there + # shouldn't be any issues. + %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || : +fi + %if ! 0%{?bootstrap} %post logger %tmpfiles_create -- --prefix=%{_localstatedir}/log/journal/ @@ -840,9 +857,6 @@ fi %{_bindir}/kernel-install %{_bindir}/hostnamectl %{_bindir}/localectl -%if %{with machined} -%{_bindir}/machinectl -%endif %{_bindir}/systemctl %{_bindir}/systemd-analyze %{_bindir}/coredumpctl @@ -862,7 +876,6 @@ fi %{_bindir}/systemd-tty-ask-password-agent %{_bindir}/systemd-tmpfiles %{_bindir}/systemd-machine-id-setup -%{_bindir}/systemd-nspawn %if %{with resolved} %{_bindir}/systemd-resolve %endif @@ -894,6 +907,24 @@ fi %exclude %{_unitdir}/systemd-udev*.* %exclude %{_unitdir}/*.target.wants/systemd-udev*.* %exclude %{_unitdir}/initrd-udevadm-cleanup-db.service +%exclude %{_unitdir}/systemd-nspawn@.service +%if %{with machined} +%exclude %{_prefix}/lib/systemd/systemd-machined +%exclude %{_unitdir}/systemd-machined.service +%exclude %{_unitdir}/dbus-org.freedesktop.machine1.service +%exclude %{_unitdir}/var-lib-machines.mount +%exclude %{_unitdir}/machine.slice +%exclude %{_unitdir}/machines.target* +%exclude %{_unitdir}/*.target.wants/var-lib-machines.mount +%endif +%if %{with importd} +%exclude %{_prefix}/lib/systemd/systemd-import* +%exclude %{_prefix}/lib/systemd/systemd-pull +%exclude %{_prefix}/lib/systemd/import-pubring.gpg +%exclude %{_unitdir}/systemd-importd.service +%exclude %{_unitdir}/dbus-org.freedesktop.import1.service +%endif + %{_unitdir}/*.automount %{_unitdir}/*.service %{_unitdir}/*.slice @@ -912,6 +943,7 @@ fi %{_prefix}/lib/systemd/resolv.conf %endif %{_prefix}/lib/systemd/scripts +%exclude %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh %dir %{_journalcatalogdir} %{_journalcatalogdir}/systemd.catalog %{_journalcatalogdir}/systemd.*.catalog @@ -928,9 +960,6 @@ fi %dir %{_unitdir}/user@0.service.d %{_unitdir}/getty@tty1.service.d/noclear.conf %{_unitdir}/user@0.service.d/nodelagate.conf -%if %{with importd} -%{_prefix}/lib/systemd/import-pubring.gpg -%endif /%{_lib}/security/pam_systemd.so %if %{with gnuefi} @@ -947,6 +976,7 @@ fi %{_sysusersdir}/ %dir %{_sysconfdir}/tmpfiles.d %{_tmpfilesdir}/ +%exclude %{_tmpfilesdir}/systemd-nspawn.conf %if %{with journal_remote} %exclude %{_sysusersdir}/systemd-remote.conf @@ -996,9 +1026,6 @@ fi %{_datadir}/dbus-1/system.d/org.freedesktop.systemd1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.hostname1.conf %{_datadir}/dbus-1/system.d/org.freedesktop.timedate1.conf -%if %{with machined} -%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf -%endif %if %{with networkd} %{_sysconfdir}/systemd/system/dbus-org.freedesktop.network1.service %{_datadir}/dbus-1/system.d/org.freedesktop.network1.conf @@ -1007,9 +1034,6 @@ fi %{_sysconfdir}/systemd/system/dbus-org.freedesktop.resolve1.service %{_datadir}/dbus-1/system.d/org.freedesktop.resolve1.conf %endif -%if %{with importd} -%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf -%endif # Some files created at runtime. %ghost %config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf @@ -1041,12 +1065,6 @@ fi %if %{with resolved} %{_datadir}/dbus-1/system-services/org.freedesktop.resolve1.service %endif -%if %{with machined} -%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service -%endif -%if %{with importd} -%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service -%endif %dir %{_datadir}/polkit-1 %dir %{_datadir}/polkit-1/actions @@ -1055,12 +1073,6 @@ fi %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy %{_datadir}/polkit-1/actions/org.freedesktop.login1.policy -%if %{with machined} -%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy -%endif -%if %{with importd} -%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy -%endif %if %{with networkd} %{_datadir}/polkit-1/rules.d/systemd-networkd.rules %endif @@ -1079,6 +1091,13 @@ fi %{_mandir}/man8/systemd-journald* %{_mandir}/man8/systemd-u[ps]* %{_mandir}/man8/30-systemd-environment-d-generator.* +%if %{with machined} +%exclude %{_mandir}/man*/machinectl* +%exclude %{_mandir}/man*/systemd-machined* +%endif +%if %{with importd} +%exclude %{_mandir}/man*/systemd-importd* +%endif %endif %{_docdir}/systemd @@ -1200,6 +1219,46 @@ fi %{_mandir}/man3/*udev*.3* %endif +%files container +%defattr(-,root,root) +%{_bindir}/systemd-nspawn +%{_unitdir}/systemd-nspawn@.service +%{_tmpfilesdir}/systemd-nspawn.conf +%if %{with machined} +%{_bindir}/machinectl +%{_prefix}/lib/systemd/systemd-machined +%{_unitdir}/systemd-machined.service +%{_unitdir}/dbus-org.freedesktop.machine1.service +%{_unitdir}/var-lib-machines.mount +%{_unitdir}/machine.slice +%{_unitdir}/machines.target* +%{_unitdir}/*.target.wants/var-lib-machines.mount +%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh +%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf +%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service +%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy +%endif +%if %{with importd} +%{_prefix}/lib/systemd/systemd-import* +%{_prefix}/lib/systemd/systemd-pull +%{_prefix}/lib/systemd/import-pubring.gpg +%{_unitdir}/systemd-importd.service +%{_unitdir}/dbus-org.freedesktop.import1.service +%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf +%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service +%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy +%endif +%if ! 0%{?bootstrap} +%{_mandir}/man*/*nspawn* +%if %{with machined} +%{_mandir}/man*/machinectl* +%{_mandir}/man*/systemd-machined* +%endif +%if %{with importd} +%{_mandir}/man*/systemd-importd* +%endif +%endif + %if ! 0%{?bootstrap} %files logger %defattr(-,root,root) From 62cb4abe9001976ea6975fff1b0633aa0830fa9565fb74aa4dd218d44737d2c1 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Mon, 26 Feb 2018 10:09:47 +0000 Subject: [PATCH 2/3] Accepting request 580123 from home:favogt:licensetag Use %license (boo#1082318). Please forward to SLE, if possible OBS-URL: https://build.opensuse.org/request/show/580123 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1015 --- systemd-mini.changes | 5 +++++ systemd-mini.spec | 1 + systemd.changes | 5 +++++ systemd.spec | 1 + 4 files changed, 12 insertions(+) diff --git a/systemd-mini.changes b/systemd-mini.changes index aa1eba4e..90ba8929 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 22 15:15:09 UTC 2018 - fvogt@suse.com + +- Use %license (boo#1082318) + ------------------------------------------------------------------- Thu Feb 22 14:57:19 UTC 2018 - fbui@suse.com diff --git a/systemd-mini.spec b/systemd-mini.spec index a13b7bf6..4530958c 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -848,6 +848,7 @@ fi %files -f systemd.lang %defattr(-,root,root) +%license LICENSE* /bin/systemd /bin/systemd-ask-password /bin/systemctl diff --git a/systemd.changes b/systemd.changes index aa1eba4e..26973404 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 22 15:11:13 UTC 2018 - fvogt@suse.com + +- Use %license (boo#1082318) + ------------------------------------------------------------------- Thu Feb 22 14:57:19 UTC 2018 - fbui@suse.com diff --git a/systemd.spec b/systemd.spec index 38ac7087..be2ed4ee 100644 --- a/systemd.spec +++ b/systemd.spec @@ -846,6 +846,7 @@ fi %files -f systemd.lang %defattr(-,root,root) +%license LICENSE* /bin/systemd /bin/systemd-ask-password /bin/systemctl From 19dfb206d5f00b852a9ec155f90d85636b69a6471b37e0e6699a0cc665a5ccaf Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Mon, 26 Feb 2018 10:53:13 +0000 Subject: [PATCH 3/3] Accepting request 580181 from home:fbui:systemd:Factory - Fix build errors due to the split-off of systemd-containe: found conflict of systemd-234-33.1.x86_64 with systemd-container-234-33.1.x86_64: - /usr/share/man/man5/systemd.nspawn.5.gz - /usr/share/man/man1/systemd-nspawn.1.gz found conflict of systemd-container-234-33.1.x86_64 with systemd-mini-container-234-33.1.x86_64: - /usr/bin/systemd-nspawn - /usr/lib/systemd/system/systemd-nspawn@.service - /usr/lib/tmpfiles.d/systemd-nspawn.conf OBS-URL: https://build.opensuse.org/request/show/580181 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1016 --- systemd-mini.changes | 17 +++++++++++++++-- systemd-mini.spec | 10 ++++++---- systemd.changes | 15 ++++++++++++++- systemd.spec | 10 ++++++---- 4 files changed, 41 insertions(+), 11 deletions(-) diff --git a/systemd-mini.changes b/systemd-mini.changes index 90ba8929..b10856aa 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,12 +1,25 @@ ------------------------------------------------------------------- -Thu Feb 22 15:15:09 UTC 2018 - fvogt@suse.com +Mon Feb 26 10:47:39 UTC 2018 - fbui@suse.com + +- Fix build errors due to the split-off of systemd-containe: + + found conflict of systemd-234-33.1.x86_64 with systemd-container-234-33.1.x86_64: + - /usr/share/man/man5/systemd.nspawn.5.gz + - /usr/share/man/man1/systemd-nspawn.1.gz + found conflict of systemd-container-234-33.1.x86_64 with systemd-mini-container-234-33.1.x86_64: + - /usr/bin/systemd-nspawn + - /usr/lib/systemd/system/systemd-nspawn@.service + - /usr/lib/tmpfiles.d/systemd-nspawn.conf + +------------------------------------------------------------------- +Thu Feb 22 15:11:13 UTC 2018 - fvogt@suse.com - Use %license (boo#1082318) ------------------------------------------------------------------- Thu Feb 22 14:57:19 UTC 2018 - fbui@suse.com -- Split off systemd-container sub-package off +- Split systemd-container sub-package off Other distros already do it and it seems a good idea to not install this stuff on new installations by default. At least diff --git a/systemd-mini.spec b/systemd-mini.spec index 4530958c..c627c00b 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -475,6 +475,9 @@ opensuse_ntp_servers=({0..3}.opensuse.pool.ntp.org) mv %{buildroot}%{_libdir}/libnss_myhostname.so.2 %{buildroot}/%{_lib} %else rm %{buildroot}%{_libdir}/libnss_systemd.so* +rm %{buildroot}%{_bindir}/systemd-nspawn +rm %{buildroot}%{_unitdir}/systemd-nspawn@.service +rm %{buildroot}%{_tmpfilesdir}/systemd-nspawn.conf %endif # FIXME: these symlinks should die. @@ -775,6 +778,7 @@ systemctl daemon-reload || : %postun -n libudev%{?mini}1 -p /sbin/ldconfig %postun -n libsystemd0%{?mini} -p /sbin/ldconfig +%if ! 0%{?bootstrap} %post container if [ $1 -gt 1 ]; then # Convert /var/lib/machines subvolume to make it suitable for @@ -795,7 +799,6 @@ if [ $1 -gt 1 ]; then %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || : fi -%if ! 0%{?bootstrap} %post logger %tmpfiles_create -- --prefix=%{_localstatedir}/log/journal/ if [ "$1" -eq 1 ]; then @@ -1094,6 +1097,7 @@ fi %{_mandir}/man8/systemd-journald* %{_mandir}/man8/systemd-u[ps]* %{_mandir}/man8/30-systemd-environment-d-generator.* +%exclude %{_mandir}/man*/*nspawn* %if %{with machined} %exclude %{_mandir}/man*/machinectl* %exclude %{_mandir}/man*/systemd-machined* @@ -1222,6 +1226,7 @@ fi %{_mandir}/man3/*udev*.3* %endif +%if ! 0%{?bootstrap} %files container %defattr(-,root,root) %{_bindir}/systemd-nspawn @@ -1251,7 +1256,6 @@ fi %{_datadir}/dbus-1/system-services/org.freedesktop.import1.service %{_datadir}/polkit-1/actions/org.freedesktop.import1.policy %endif -%if ! 0%{?bootstrap} %{_mandir}/man*/*nspawn* %if %{with machined} %{_mandir}/man*/machinectl* @@ -1260,9 +1264,7 @@ fi %if %{with importd} %{_mandir}/man*/systemd-importd* %endif -%endif -%if ! 0%{?bootstrap} %files logger %defattr(-,root,root) %dir %attr(2755,root,systemd-journal) %{_localstatedir}/log/journal/ diff --git a/systemd.changes b/systemd.changes index 26973404..b10856aa 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Feb 26 10:47:39 UTC 2018 - fbui@suse.com + +- Fix build errors due to the split-off of systemd-containe: + + found conflict of systemd-234-33.1.x86_64 with systemd-container-234-33.1.x86_64: + - /usr/share/man/man5/systemd.nspawn.5.gz + - /usr/share/man/man1/systemd-nspawn.1.gz + found conflict of systemd-container-234-33.1.x86_64 with systemd-mini-container-234-33.1.x86_64: + - /usr/bin/systemd-nspawn + - /usr/lib/systemd/system/systemd-nspawn@.service + - /usr/lib/tmpfiles.d/systemd-nspawn.conf + ------------------------------------------------------------------- Thu Feb 22 15:11:13 UTC 2018 - fvogt@suse.com @@ -6,7 +19,7 @@ Thu Feb 22 15:11:13 UTC 2018 - fvogt@suse.com ------------------------------------------------------------------- Thu Feb 22 14:57:19 UTC 2018 - fbui@suse.com -- Split off systemd-container sub-package off +- Split systemd-container sub-package off Other distros already do it and it seems a good idea to not install this stuff on new installations by default. At least diff --git a/systemd.spec b/systemd.spec index be2ed4ee..95da200d 100644 --- a/systemd.spec +++ b/systemd.spec @@ -473,6 +473,9 @@ opensuse_ntp_servers=({0..3}.opensuse.pool.ntp.org) mv %{buildroot}%{_libdir}/libnss_myhostname.so.2 %{buildroot}/%{_lib} %else rm %{buildroot}%{_libdir}/libnss_systemd.so* +rm %{buildroot}%{_bindir}/systemd-nspawn +rm %{buildroot}%{_unitdir}/systemd-nspawn@.service +rm %{buildroot}%{_tmpfilesdir}/systemd-nspawn.conf %endif # FIXME: these symlinks should die. @@ -773,6 +776,7 @@ systemctl daemon-reload || : %postun -n libudev%{?mini}1 -p /sbin/ldconfig %postun -n libsystemd0%{?mini} -p /sbin/ldconfig +%if ! 0%{?bootstrap} %post container if [ $1 -gt 1 ]; then # Convert /var/lib/machines subvolume to make it suitable for @@ -793,7 +797,6 @@ if [ $1 -gt 1 ]; then %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || : fi -%if ! 0%{?bootstrap} %post logger %tmpfiles_create -- --prefix=%{_localstatedir}/log/journal/ if [ "$1" -eq 1 ]; then @@ -1092,6 +1095,7 @@ fi %{_mandir}/man8/systemd-journald* %{_mandir}/man8/systemd-u[ps]* %{_mandir}/man8/30-systemd-environment-d-generator.* +%exclude %{_mandir}/man*/*nspawn* %if %{with machined} %exclude %{_mandir}/man*/machinectl* %exclude %{_mandir}/man*/systemd-machined* @@ -1220,6 +1224,7 @@ fi %{_mandir}/man3/*udev*.3* %endif +%if ! 0%{?bootstrap} %files container %defattr(-,root,root) %{_bindir}/systemd-nspawn @@ -1249,7 +1254,6 @@ fi %{_datadir}/dbus-1/system-services/org.freedesktop.import1.service %{_datadir}/polkit-1/actions/org.freedesktop.import1.policy %endif -%if ! 0%{?bootstrap} %{_mandir}/man*/*nspawn* %if %{with machined} %{_mandir}/man*/machinectl* @@ -1258,9 +1262,7 @@ fi %if %{with importd} %{_mandir}/man*/systemd-importd* %endif -%endif -%if ! 0%{?bootstrap} %files logger %defattr(-,root,root) %dir %attr(2755,root,systemd-journal) %{_localstatedir}/log/journal/