commit: a6396f527bae1a5d55bb63060713cd60b83cf323 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Dec 2 01:16:13 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Dec 2 01:16:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6396f52
sys-libs/libxcrypt: add warning re distcc and older GCCs (<10) Bug: https://bugs.gentoo.org/823179 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-libs/libxcrypt/libxcrypt-4.4.25-r1.ebuild | 11 +++++++++++ sys-libs/libxcrypt/libxcrypt-4.4.26-r1.ebuild | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.25-r1.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.25-r1.ebuild index d8f01115f15c..d73e13788fd3 100644 --- a/sys-libs/libxcrypt/libxcrypt-4.4.25-r1.ebuild +++ b/sys-libs/libxcrypt/libxcrypt-4.4.25-r1.ebuild @@ -42,6 +42,17 @@ python_check_deps() { has_version -b "dev-python/passlib[${PYTHON_USEDEP}]" } +pkg_pretend() { + if [[ ${BUILD_TYPE} != "binary" ]] && tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]] ; then + die "libxcrypt is known to fail to build or be broken at runtime with < GCC 10 (bug #823179)!" + fi + + if has "distcc" ${FEATURES} ; then + ewarn "Please verify all distcc nodes are using the same versions of GCC (>= 10) and Binutils!" + ewarn "Older/mismatched versions of GCC may lead to a misbehaving library: bug #823179." + fi +} + pkg_setup() { MULTIBUILD_VARIANTS=( $(usex compat 'xcrypt_compat' '') diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.26-r1.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.26-r1.ebuild index 5d0f0cffee7d..b25eb93a2469 100644 --- a/sys-libs/libxcrypt/libxcrypt-4.4.26-r1.ebuild +++ b/sys-libs/libxcrypt/libxcrypt-4.4.26-r1.ebuild @@ -42,6 +42,17 @@ python_check_deps() { has_version -b "dev-python/passlib[${PYTHON_USEDEP}]" } +pkg_pretend() { + if [[ ${BUILD_TYPE} != "binary" ]] && tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]] ; then + die "libxcrypt is known to fail to build or be broken at runtime with < GCC 10 (bug #823179)!" + fi + + if has "distcc" ${FEATURES} ; then + ewarn "Please verify all distcc nodes are using the same versions of GCC (>= 10) and Binutils!" + ewarn "Older/mismatched versions of GCC may lead to a misbehaving library: bug #823179." + fi +} + pkg_setup() { MULTIBUILD_VARIANTS=( $(usex compat 'xcrypt_compat' '')
