summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-11-14 23:05:33 +0000
committerSam James <sam@gentoo.org>2021-11-14 23:05:33 +0000
commite1c394c177c08679b430b78c3dbf7611768ca983 (patch)
tree79ba8ca66947ca0f246461cdb3ad22999eb5a2c4 /sys-libs/glibc
parentsys-libs/binutils-libs: patchlevel bump (diff)
downloadgentoo-e1c394c177c08679b430b78c3dbf7611768ca983.tar.gz
gentoo-e1c394c177c08679b430b78c3dbf7611768ca983.tar.bz2
gentoo-e1c394c177c08679b430b78c3dbf7611768ca983.zip
sys-libs/glibc: restart systemd in pkg_postinst
Closes: https://bugs.gentoo.org/823756 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/glibc')
-rw-r--r--sys-libs/glibc/glibc-2.34-r2.ebuild (renamed from sys-libs/glibc/glibc-2.34-r1.ebuild)6
-rw-r--r--sys-libs/glibc/glibc-9999.ebuild6
2 files changed, 12 insertions, 0 deletions
diff --git a/sys-libs/glibc/glibc-2.34-r1.ebuild b/sys-libs/glibc/glibc-2.34-r2.ebuild
index 790afee5b335..851820e3c05e 100644
--- a/sys-libs/glibc/glibc-2.34-r1.ebuild
+++ b/sys-libs/glibc/glibc-2.34-r2.ebuild
@@ -1539,6 +1539,12 @@ pkg_postinst() {
use compile-locales || run_locale_gen "${EROOT}/"
fi
+ if systemd_is_booted && [[ -z ${ROOT} ]] ; then
+ # We need to restart systemd when upgrading from < 2.34
+ # bug #823756
+ systemctl daemon-reexec
+ fi
+
# Check for sanity of /etc/nsswitch.conf, take 2
if [[ -e ${EROOT}/etc/nsswitch.conf ]] && ! has_version sys-auth/libnss-nis ; then
local entry
diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index ce5ad8d3c43d..d62fe8108de1 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -1540,6 +1540,12 @@ pkg_postinst() {
use compile-locales || run_locale_gen "${EROOT}/"
fi
+ if systemd_is_booted && [[ -z ${ROOT} ]] ; then
+ # We need to restart systemd when upgrading from < 2.34
+ # bug #823756
+ systemctl daemon-reexec
+ fi
+
# Check for sanity of /etc/nsswitch.conf, take 2
if [[ -e ${EROOT}/etc/nsswitch.conf ]] && ! has_version sys-auth/libnss-nis ; then
local entry