sys-libs/glibc: add preserve-libs for libcrypt

Bug: https://bugs.gentoo.org/802207
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Sam James
2021-07-17 19:11:04 +02:00
committed by Andreas K. Hüttel
parent d7842dd5e5
commit d6535cc0b6
2 changed files with 1549 additions and 1 deletions
File diff suppressed because it is too large Load Diff
+15 -1
View File
@@ -6,7 +6,7 @@ EAPI=7
PYTHON_COMPAT=( python3_{7,8,9,10} )
TMPFILES_OPTIONAL=1
inherit python-any-r1 prefix toolchain-funcs flag-o-matic gnuconfig \
inherit python-any-r1 prefix preserve-libs toolchain-funcs flag-o-matic gnuconfig \
multilib systemd multiprocessing tmpfiles
DESCRIPTION="GNU libc C library"
@@ -1489,6 +1489,16 @@ pkg_preinst() {
# https://bugs.gentoo.org/753740
rm "${EROOT}"/usr/lib/locale || die
fi
# Keep around libcrypt so that Perl doesn't break when merging libxcrypt
# (libxcrypt is the new provider for now of libcrypt.so.{1,2}).
# bug #802207
if has_version "${CATEGORY}/${PN}[crypt]"; then
PRESERVED_OLD_LIBCRYPT=1
preserve_old_lib /$(get_libdir)/libcrypt$(get_libname 1)
else
PRESERVED_OLD_LIBCRYPT=0
fi
}
pkg_postinst() {
@@ -1518,4 +1528,8 @@ pkg_postinst() {
fi
done
fi
if [[ ${PRESERVED_OLD_LIBCRYPT} -eq 1 ]] ; then
preserve_old_lib_notify /$(get_libdir)/libcrypt$(get_libname 1)
fi
}