SHA256
1
0
forked from pool/systemd

Accepting request 1062012 from Base:System

- Import commit d87834a33444b7163e741e1089e82b44af663808 (merge of v252.5)
  For a complete list of changes, visit:
  5a506d73bd...d87834a334

- Move the bash completion support for systemd-cryptenroll in udev.

- systemd-testsuite: move the integration tests in a dedicated sub directory.

- machines.target belongs to systemd-container, do its init/cleanup steps from
  the scriptlets of this sub-package.

OBS-URL: https://build.opensuse.org/request/show/1062012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=378
This commit is contained in:
Dominique Leuenberger 2023-01-31 15:08:28 +00:00 committed by Git OBS Bridge
parent 54c156c423
commit 688f3b3091
6 changed files with 60 additions and 26 deletions

View File

@ -137,7 +137,6 @@
%{_datadir}/bash-completion/completions/systemd-cat %{_datadir}/bash-completion/completions/systemd-cat
%{_datadir}/bash-completion/completions/systemd-cgls %{_datadir}/bash-completion/completions/systemd-cgls
%{_datadir}/bash-completion/completions/systemd-cgtop %{_datadir}/bash-completion/completions/systemd-cgtop
%{_datadir}/bash-completion/completions/systemd-cryptenroll
%{_datadir}/bash-completion/completions/systemd-delta %{_datadir}/bash-completion/completions/systemd-delta
%{_datadir}/bash-completion/completions/systemd-detect-virt %{_datadir}/bash-completion/completions/systemd-detect-virt
%{_datadir}/bash-completion/completions/systemd-id128 %{_datadir}/bash-completion/completions/systemd-id128

View File

@ -28,6 +28,7 @@
%{_bindir}/systemd-hwdb %{_bindir}/systemd-hwdb
%{_bindir}/udevadm %{_bindir}/udevadm
%if %{without bootstrap} %if %{without bootstrap}
%{_datadir}/bash-completion/completions/systemd-cryptenroll
%{_datadir}/bash-completion/completions/udevadm %{_datadir}/bash-completion/completions/udevadm
%endif %endif
%{_datadir}/pkgconfig/udev.pc %{_datadir}/pkgconfig/udev.pc

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c897cd9b3d3b7ba9fdb5600ddb2f9aff285abc479f190bbbdcec8ca37c95b8b
size 8042788

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb506e9ea2783c8dff075ecfd6d253fd397d2bd017f928903aff0cd6f272c9e1
size 8050412

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
Mon Jan 30 08:39:24 UTC 2023 - Franck Bui <fbui@suse.com>
- Import commit d87834a33444b7163e741e1089e82b44af663808 (merge of v252.5)
For a complete list of changes, visit:
https://github.com/openSUSE/systemd/compare/5a506d73bde7ba9261985f8e9ce084044a519432...d87834a33444b7163e741e1089e82b44af663808
-------------------------------------------------------------------
Thu Jan 26 16:30:41 UTC 2023 - Franck Bui <fbui@suse.com>
- Move the bash completion support for systemd-cryptenroll in udev.
-------------------------------------------------------------------
Thu Jan 26 16:13:43 UTC 2023 - Franck Bui <fbui@suse.com>
- systemd-testsuite: move the integration tests in a dedicated sub directory.
-------------------------------------------------------------------
Thu Jan 26 14:02:11 UTC 2023 - Franck Bui <fbui@suse.com>
- machines.target belongs to systemd-container, do its init/cleanup steps from
the scriptlets of this sub-package.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 24 13:19:01 UTC 2023 - Franck Bui <fbui@suse.com> Tue Jan 24 13:19:01 UTC 2023 - Franck Bui <fbui@suse.com>

View File

@ -19,7 +19,7 @@
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%define min_kernel_version 4.5 %define min_kernel_version 4.5
%define archive_version +suse.44.g5a506d73bd %define archive_version +suse.46.gd87834a334
%define _testsuitedir /usr/lib/systemd/tests %define _testsuitedir /usr/lib/systemd/tests
%define xinitconfdir %{?_distconfdir}%{!?_distconfdir:%{_sysconfdir}}/X11/xinit %define xinitconfdir %{?_distconfdir}%{!?_distconfdir:%{_sysconfdir}}/X11/xinit
@ -72,7 +72,7 @@
Name: systemd%{?mini} Name: systemd%{?mini}
URL: http://www.freedesktop.org/wiki/Software/systemd URL: http://www.freedesktop.org/wiki/Software/systemd
Version: 252.4 Version: 252.5
Release: 0 Release: 0
Summary: A System and Session Manager Summary: A System and Session Manager
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
@ -557,24 +557,24 @@ Requires: systemd-portable
Requires: xz Requires: xz
%description testsuite %description testsuite
This package contains the unit tests as well as the extended This package contains the unit tests as well as the extended testsuite. The unit
testsuite. The unit tests are used to check various internal functions tests are used to check various internal functions used by systemd whereas the
used by systemd whereas the extended testsuite is used to test various extended testsuite is used to test various functionalities of systemd and all
functionalities of systemd and all its components. its components.
Note that the extended testsuite only works with UID=0. Note that you need root privileges to run the extended testsuite.
Run the following python script to run all unit tests at once: Run the following python script to run all unit tests at once:
$ %{_testsuitedir}/run-unit-tests.py $ %{_testsuitedir}/run-unit-tests.py
To run the full extended testsuite do the following: To run the full extended testsuite do the following:
$ NO_BUILD=1 TEST_NESTED_VM=1 %{_testsuitedir}/test/run-integration-tests.sh $ NO_BUILD=1 TEST_NESTED_VM=1 %{_testsuitedir}/integration-tests/run-integration-tests.sh
Or to run one specific integration test: Or to run one specific integration test:
$ NO_BUILD=1 TEST_NESTED_VM=1 make -C %{_testsuitedir}/test/TEST-01-BASIC clean setup run $ NO_BUILD=1 TEST_NESTED_VM=1 make -C %{_testsuitedir}/integration-tests/TEST-01-BASIC clean setup run
For more details on the available options to run the extended For more details on the available options to run the extended testsuite, please
testsuite, please refer to %{_testsuitedir}/test/README.testsuite. refer to %{_testsuitedir}/integration-tests/README.testsuite.
%endif %endif
%if %{with experimental} %if %{with experimental}
@ -942,14 +942,18 @@ rm -f %{buildroot}%{_unitdir}/systemd-journald-audit.socket
rm -f %{buildroot}%{_unitdir}/sockets.target.wants/systemd-journald-audit.socket rm -f %{buildroot}%{_unitdir}/sockets.target.wants/systemd-journald-audit.socket
%if %{with testsuite} %if %{with testsuite}
cp -a test %{buildroot}%{_testsuitedir}/ # -Dinstall_test took care of installing the unit tests only (those in
# When the tests are installed, the effective testdata directory is in # src/tests) and testdata directory. Here we copy the integration tests
# %{_testsuitedir}, the other one, which is actually a symlink, is only useful # including also all related scripts used to prepare and run the integration
# when the tests are run directly from the source. # tests in dedicated VMs. During the copy, all symlinks are replaced by the
rm %{buildroot}%{_testsuitedir}/test/testdata # files they point to making sure we won't try to embed dangling symlinks.
# kbd-model-map became a dangling symlink, drop it. mkdir -p %{buildroot}%{_testsuitedir}/integration-tests
rm %{buildroot}%{_testsuitedir}/test/test-keymap-util/kbd-model-map tar -cO \
find %{buildroot}%{_testsuitedir}/ -name .git\* -exec rm -fr {} \; --dereference \
--exclude=testdata \
--exclude-vcs \
--exclude-vcs-ignores \
-C test/ . | tar -xC %{buildroot}%{_testsuitedir}/integration-tests
%endif %endif
%if %{without bootstrap} %if %{without bootstrap}
@ -962,7 +966,6 @@ find %{buildroot}%{_testsuitedir}/ -name .git\* -exec rm -fr {} \;
%pre %pre
# Units listed below can be enabled at installation according to their preset # Units listed below can be enabled at installation according to their preset
# setting. # setting.
%systemd_pre machines.target
%systemd_pre remote-fs.target %systemd_pre remote-fs.target
%systemd_pre getty@.service %systemd_pre getty@.service
%systemd_pre systemd-timesyncd.service %systemd_pre systemd-timesyncd.service
@ -1022,7 +1025,6 @@ fi
# Units listed below can be enabled at installation accoding to their preset # Units listed below can be enabled at installation accoding to their preset
# setting. # setting.
%systemd_post machines.target
%systemd_post remote-fs.target %systemd_post remote-fs.target
%systemd_post getty@.service %systemd_post getty@.service
%systemd_post systemd-timesyncd.service %systemd_post systemd-timesyncd.service
@ -1136,7 +1138,11 @@ rm -f /etc/udev/rules.d/{20,55,65}-cdrom.rules
%postun -n libudev%{?mini}1 -p %ldconfig %postun -n libudev%{?mini}1 -p %ldconfig
%postun -n libsystemd0%{?mini} -p %ldconfig %postun -n libsystemd0%{?mini} -p %ldconfig
%pre container
%systemd_pre machines.target
%post container %post container
%systemd_post machines.target
%tmpfiles_create systemd-nspawn.conf %tmpfiles_create systemd-nspawn.conf
%if %{with machined} %if %{with machined}
%ldconfig %ldconfig
@ -1157,7 +1163,11 @@ if [ $1 -gt 1 ]; then
%{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || : %{_prefix}/lib/systemd/scripts/fix-machines-btrfs-subvol.sh || :
fi fi
%preun container
%systemd_preun machines.target
%postun container %postun container
%systemd_postun machines.target
%ldconfig %ldconfig
%endif %endif
@ -1381,7 +1391,7 @@ fi
%if %{with testsuite} %if %{with testsuite}
%files testsuite %files testsuite
%defattr(-,root,root) %defattr(-,root,root)
%doc %{_testsuitedir}/test/README.testsuite %doc %{_testsuitedir}/integration-tests/README.testsuite
%{_testsuitedir} %{_testsuitedir}
%endif %endif