Accepting request 917666 from Base:System

- Don't reexecute user manager instances on package update yet
  This can't be done until users have their user instance updated to
  the new version that supports reexecuting with SIGRTMIN+25 because
  this signal terminates the user managers for the previous versions.

- Import commit ec72db9ee0f8ce061f83624d7148ff38a5993b11
  3b1aa2f79f manager: reexecute on SIGRTMIN+25, user instances only
  fd46c81922 test: make sure to include all haveged unit files
- systemd.spec: reexec user manager instances on package updates

- Make sure the versions of both udev and systemd packages are always the same (bsc#1189480)

- Drop dependency on m4 (replaced by Jinja2)

OBS-URL: https://build.opensuse.org/request/show/917666
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=336
This commit is contained in:
Dominique Leuenberger 2021-09-11 20:24:21 +00:00 committed by Git OBS Bridge
parent f37ad01569
commit a923caa084
6 changed files with 105 additions and 15 deletions

View File

@ -1,3 +1,32 @@
-------------------------------------------------------------------
Wed Sep 8 17:01:58 UTC 2021 - Franck Bui <fbui@suse.com>
- Don't reexecute user manager instances on package update yet
This can't be done until users have their user instance updated to
the new version that supports reexecuting with SIGRTMIN+25 because
this signal terminates the user managers for the previous versions.
-------------------------------------------------------------------
Wed Sep 8 13:21:34 UTC 2021 - Franck Bui <fbui@suse.com>
- Import commit ec72db9ee0f8ce061f83624d7148ff38a5993b11
3b1aa2f79f manager: reexecute on SIGRTMIN+25, user instances only
fd46c81922 test: make sure to include all haveged unit files
- systemd.spec: reexec user manager instances on package updates
-------------------------------------------------------------------
Fri Sep 3 09:38:23 UTC 2021 - Franck Bui <fbui@suse.com>
- Make sure the versions of both udev and systemd packages are always the same (bsc#1189480)
-------------------------------------------------------------------
Thu Sep 2 10:01:23 UTC 2021 - Franck Bui <fbui@suse.com>
- Drop dependency on m4 (replaced by Jinja2)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 1 11:54:23 UTC 2021 - Franck Bui <fbui@suse.com> Wed Sep 1 11:54:23 UTC 2021 - Franck Bui <fbui@suse.com>

View File

@ -26,7 +26,7 @@
##### WARNING: please do not edit this auto generated spec file. Use the systemd.spec! ##### ##### WARNING: please do not edit this auto generated spec file. Use the systemd.spec! #####
%define mini -mini %define mini -mini
%define min_kernel_version 4.5 %define min_kernel_version 4.5
%define suse_version +suse.32.g40bda18e34 %define suse_version +suse.35.gec72db9ee0
%define _testsuitedir /usr/lib/systemd/tests %define _testsuitedir /usr/lib/systemd/tests
%bcond_with gnuefi %bcond_with gnuefi
@ -96,7 +96,6 @@ BuildRequires: gperf
BuildRequires: libacl-devel BuildRequires: libacl-devel
BuildRequires: libcap-devel BuildRequires: libcap-devel
BuildRequires: libmount-devel >= 2.27.1 BuildRequires: libmount-devel >= 2.27.1
BuildRequires: m4
BuildRequires: meson >= 0.43 BuildRequires: meson >= 0.43
BuildRequires: pam-devel BuildRequires: pam-devel
BuildRequires: python3-jinja2 BuildRequires: python3-jinja2
@ -277,13 +276,14 @@ This library provides several of the systemd C APIs:
Summary: A rule-based device node and kernel event manager Summary: A rule-based device node and kernel event manager
License: GPL-2.0-only License: GPL-2.0-only
URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
Requires: %{name} = %{version}-%{release}
%systemd_requires
Requires: kmod Requires: kmod
Requires: system-group-hardware Requires: system-group-hardware
Requires: group(kvm) Requires: group(kvm)
Requires(post): sed Requires(post): sed
Requires(post): coreutils Requires(post): coreutils
Requires(postun): coreutils Requires(postun): coreutils
%systemd_requires
Conflicts: filesystem < 11.5 Conflicts: filesystem < 11.5
Conflicts: mkinitrd < 2.7.0 Conflicts: mkinitrd < 2.7.0
@ -369,12 +369,12 @@ and systemd-importd.
Summary: Systemd tools for networkd and resolved Summary: Systemd tools for networkd and resolved
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%systemd_requires
# This Recommends because some symbols of libidn2 are dlopen()ed by resolved # This Recommends because some symbols of libidn2 are dlopen()ed by resolved
Recommends: pkgconfig(libidn2) Recommends: pkgconfig(libidn2)
BuildRequires: pkgconfig(libidn2) 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
%description network %description network
Systemd tools to manage network settings using networkd and Systemd tools to manage network settings using networkd and
@ -567,6 +567,7 @@ testsuite, please refer to %{_testsuitedir}/test/README.testsuite.
Summary: Experimental systemd features Summary: Experimental systemd features
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%systemd_requires
# These Recommends because some symbols of these libs are dlopen()ed by home stuff # These Recommends because some symbols of these libs are dlopen()ed by home stuff
Recommends: libfido2 Recommends: libfido2
Recommends: libpwquality1 Recommends: libpwquality1
@ -578,7 +579,6 @@ BuildRequires: pkgconfig(pwquality)
# fdisk and openssl are build requirements for home stuff and repart # fdisk and openssl are build requirements for home stuff and repart
BuildRequires: pkgconfig(fdisk) BuildRequires: pkgconfig(fdisk)
BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(openssl)
%systemd_requires
%description experimental %description experimental
This package contains optional extra services that are considered as This package contains optional extra services that are considered as
@ -941,7 +941,23 @@ pam-config --add --systemd || :
[ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || : [ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || :
/usr/lib/systemd/systemd-random-seed save || : /usr/lib/systemd/systemd-random-seed save || :
systemctl daemon-reexec || : systemctl daemon-reexec || :
# Reexecute user manager instances (if any). It is asynchronous but it
# shouldn't be a problem in practice: a problem would arise only if
# the new version of a user service has a brand new option that is
# only understood by the latest version of the user manager and the
# user service is started before the user manager get reexecuted. But
# this case is very unlikely especially since we don't restart any
# user service for now on.
#
# Before doing this, we unfortunately have to wait until users will
# reexec their user manager (by either rebooting or restarting their
# session) to a version that supports SIGRTMIN+25 otherwise sending
# the signal to an old version will kill the manager which means
# tearing down the user session.
#
# systemctl kill --kill-who=main --signal=SIGRTMIN+25 "user@*.service" || :
%journal_catalog_update %journal_catalog_update
%tmpfiles_create %tmpfiles_create

View File

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

View File

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

View File

@ -1,3 +1,32 @@
-------------------------------------------------------------------
Wed Sep 8 17:01:58 UTC 2021 - Franck Bui <fbui@suse.com>
- Don't reexecute user manager instances on package update yet
This can't be done until users have their user instance updated to
the new version that supports reexecuting with SIGRTMIN+25 because
this signal terminates the user managers for the previous versions.
-------------------------------------------------------------------
Wed Sep 8 13:21:34 UTC 2021 - Franck Bui <fbui@suse.com>
- Import commit ec72db9ee0f8ce061f83624d7148ff38a5993b11
3b1aa2f79f manager: reexecute on SIGRTMIN+25, user instances only
fd46c81922 test: make sure to include all haveged unit files
- systemd.spec: reexec user manager instances on package updates
-------------------------------------------------------------------
Fri Sep 3 09:38:23 UTC 2021 - Franck Bui <fbui@suse.com>
- Make sure the versions of both udev and systemd packages are always the same (bsc#1189480)
-------------------------------------------------------------------
Thu Sep 2 10:01:23 UTC 2021 - Franck Bui <fbui@suse.com>
- Drop dependency on m4 (replaced by Jinja2)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 1 11:54:23 UTC 2021 - Franck Bui <fbui@suse.com> Wed Sep 1 11:54:23 UTC 2021 - Franck Bui <fbui@suse.com>

View File

@ -24,7 +24,7 @@
%define bootstrap 0 %define bootstrap 0
%define mini %nil %define mini %nil
%define min_kernel_version 4.5 %define min_kernel_version 4.5
%define suse_version +suse.32.g40bda18e34 %define suse_version +suse.35.gec72db9ee0
%define _testsuitedir /usr/lib/systemd/tests %define _testsuitedir /usr/lib/systemd/tests
%bcond_with gnuefi %bcond_with gnuefi
@ -94,7 +94,6 @@ BuildRequires: gperf
BuildRequires: libacl-devel BuildRequires: libacl-devel
BuildRequires: libcap-devel BuildRequires: libcap-devel
BuildRequires: libmount-devel >= 2.27.1 BuildRequires: libmount-devel >= 2.27.1
BuildRequires: m4
BuildRequires: meson >= 0.43 BuildRequires: meson >= 0.43
BuildRequires: pam-devel BuildRequires: pam-devel
BuildRequires: python3-jinja2 BuildRequires: python3-jinja2
@ -275,13 +274,14 @@ This library provides several of the systemd C APIs:
Summary: A rule-based device node and kernel event manager Summary: A rule-based device node and kernel event manager
License: GPL-2.0-only License: GPL-2.0-only
URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
Requires: %{name} = %{version}-%{release}
%systemd_requires
Requires: kmod Requires: kmod
Requires: system-group-hardware Requires: system-group-hardware
Requires: group(kvm) Requires: group(kvm)
Requires(post): sed Requires(post): sed
Requires(post): coreutils Requires(post): coreutils
Requires(postun): coreutils Requires(postun): coreutils
%systemd_requires
Conflicts: filesystem < 11.5 Conflicts: filesystem < 11.5
Conflicts: mkinitrd < 2.7.0 Conflicts: mkinitrd < 2.7.0
@ -367,12 +367,12 @@ and systemd-importd.
Summary: Systemd tools for networkd and resolved Summary: Systemd tools for networkd and resolved
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%systemd_requires
# This Recommends because some symbols of libidn2 are dlopen()ed by resolved # This Recommends because some symbols of libidn2 are dlopen()ed by resolved
Recommends: pkgconfig(libidn2) Recommends: pkgconfig(libidn2)
BuildRequires: pkgconfig(libidn2) 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
%description network %description network
Systemd tools to manage network settings using networkd and Systemd tools to manage network settings using networkd and
@ -565,6 +565,7 @@ testsuite, please refer to %{_testsuitedir}/test/README.testsuite.
Summary: Experimental systemd features Summary: Experimental systemd features
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%systemd_requires
# These Recommends because some symbols of these libs are dlopen()ed by home stuff # These Recommends because some symbols of these libs are dlopen()ed by home stuff
Recommends: libfido2 Recommends: libfido2
Recommends: libpwquality1 Recommends: libpwquality1
@ -576,7 +577,6 @@ BuildRequires: pkgconfig(pwquality)
# fdisk and openssl are build requirements for home stuff and repart # fdisk and openssl are build requirements for home stuff and repart
BuildRequires: pkgconfig(fdisk) BuildRequires: pkgconfig(fdisk)
BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(openssl)
%systemd_requires
%description experimental %description experimental
This package contains optional extra services that are considered as This package contains optional extra services that are considered as
@ -939,7 +939,23 @@ pam-config --add --systemd || :
[ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || : [ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || :
/usr/lib/systemd/systemd-random-seed save || : /usr/lib/systemd/systemd-random-seed save || :
systemctl daemon-reexec || : systemctl daemon-reexec || :
# Reexecute user manager instances (if any). It is asynchronous but it
# shouldn't be a problem in practice: a problem would arise only if
# the new version of a user service has a brand new option that is
# only understood by the latest version of the user manager and the
# user service is started before the user manager get reexecuted. But
# this case is very unlikely especially since we don't restart any
# user service for now on.
#
# Before doing this, we unfortunately have to wait until users will
# reexec their user manager (by either rebooting or restarting their
# session) to a version that supports SIGRTMIN+25 otherwise sending
# the signal to an old version will kill the manager which means
# tearing down the user session.
#
# systemctl kill --kill-who=main --signal=SIGRTMIN+25 "user@*.service" || :
%journal_catalog_update %journal_catalog_update
%tmpfiles_create %tmpfiles_create