From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7375D158086 for ; Thu, 2 Dec 2021 01:16:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6E2B2BC025; Thu, 2 Dec 2021 01:16:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A0822BC025 for ; Thu, 2 Dec 2021 01:16:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 17C9E342D26 for ; Thu, 2 Dec 2021 01:16:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 37B128E for ; Thu, 2 Dec 2021 01:16:55 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1638407800.a6396f527bae1a5d55bb63060713cd60b83cf323.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libxcrypt/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libxcrypt/libxcrypt-4.4.25-r1.ebuild sys-libs/libxcrypt/libxcrypt-4.4.26-r1.ebuild X-VCS-Directories: sys-libs/libxcrypt/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a6396f527bae1a5d55bb63060713cd60b83cf323 X-VCS-Branch: master Date: Thu, 2 Dec 2021 01:16:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 400a6412-6cd2-4c04-980b-64e729dcd02f X-Archives-Hash: f89f464c294911ab6ac8bc6d0aeb7834 commit: a6396f527bae1a5d55bb63060713cd60b83cf323 Author: Sam James gentoo org> AuthorDate: Thu Dec 2 01:16:13 2021 +0000 Commit: Sam James gentoo 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 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' '')