sys-libs/glibc: Port to ver_replacing

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2025-02-14 15:12:14 +01:00
parent f593d3c773
commit 6d76d43044
2 changed files with 14 additions and 22 deletions

View File

@@ -33,7 +33,7 @@ MIN_PAX_UTILS_VER="1.3.3"
MIN_SYSTEMD_VER="254.9-r1"
inherit python-any-r1 prefix preserve-libs toolchain-funcs flag-o-matic gnuconfig \
multilib systemd multiprocessing tmpfiles
multilib systemd multiprocessing tmpfiles eapi9-ver
DESCRIPTION="GNU libc C library"
HOMEPAGE="https://www.gnu.org/software/libc/"
@@ -895,16 +895,12 @@ upgrade_warning() {
is_crosscompile && return
if [[ ${MERGE_TYPE} != buildonly && -n ${REPLACING_VERSIONS} && -z ${ROOT} ]]; then
local oldv newv=$(ver_cut 1-2 ${PV})
for oldv in ${REPLACING_VERSIONS}; do
if ver_test ${oldv} -lt ${newv}; then
ewarn "After upgrading glibc, please restart all running processes."
ewarn "Be sure to include init (telinit u) or systemd (systemctl daemon-reexec)."
ewarn "Alternatively, reboot your system."
ewarn "(See bug #660556, bug #741116, bug #823756, etc)"
break
fi
done
if ver_replacing -lt $(ver_cut 1-2 ${PV}); then
ewarn "After upgrading glibc, please restart all running processes."
ewarn "Be sure to include init (telinit u) or systemd (systemctl daemon-reexec)."
ewarn "Alternatively, reboot your system."
ewarn "(See bug #660556, bug #741116, bug #823756, etc)"
fi
fi
}

View File

@@ -33,7 +33,7 @@ MIN_PAX_UTILS_VER="1.3.3"
MIN_SYSTEMD_VER="254.9-r1"
inherit python-any-r1 prefix preserve-libs toolchain-funcs flag-o-matic gnuconfig \
multilib systemd multiprocessing tmpfiles
multilib systemd multiprocessing tmpfiles eapi9-ver
DESCRIPTION="GNU libc C library"
HOMEPAGE="https://www.gnu.org/software/libc/"
@@ -895,16 +895,12 @@ upgrade_warning() {
is_crosscompile && return
if [[ ${MERGE_TYPE} != buildonly && -n ${REPLACING_VERSIONS} && -z ${ROOT} ]]; then
local oldv newv=$(ver_cut 1-2 ${PV})
for oldv in ${REPLACING_VERSIONS}; do
if ver_test ${oldv} -lt ${newv}; then
ewarn "After upgrading glibc, please restart all running processes."
ewarn "Be sure to include init (telinit u) or systemd (systemctl daemon-reexec)."
ewarn "Alternatively, reboot your system."
ewarn "(See bug #660556, bug #741116, bug #823756, etc)"
break
fi
done
if ver_replacing -lt $(ver_cut 1-2 ${PV}); then
ewarn "After upgrading glibc, please restart all running processes."
ewarn "Be sure to include init (telinit u) or systemd (systemctl daemon-reexec)."
ewarn "Alternatively, reboot your system."
ewarn "(See bug #660556, bug #741116, bug #823756, etc)"
fi
fi
}