commit:     e7b0114164283c266d7a246b824dfe906881b93c
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  6 21:25:52 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Aug  6 21:26:06 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7b01141

sys-libs/glibc: Run compiler tests only when compiling

Bug: https://bugs.gentoo.org/786570
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sys-libs/glibc/glibc-2.34.ebuild | 2 +-
 sys-libs/glibc/glibc-9999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-libs/glibc/glibc-2.34.ebuild b/sys-libs/glibc/glibc-2.34.ebuild
index e0e45501086..b9c6d96cb9f 100644
--- a/sys-libs/glibc/glibc-2.34.ebuild
+++ b/sys-libs/glibc/glibc-2.34.ebuild
@@ -678,7 +678,7 @@ sanity_prechecks() {
        fi
 
        # When we actually have to compile something...
-       if ! just_headers ; then
+       if ! just_headers && [[ ${MERGE_TYPE} != "binary" ]] ; then
                ebegin "Checking gcc for __thread support"
                if ! eend $(want__thread ; echo $?) ; then
                        echo

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 60bd75d08ac..564367df0b9 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -678,7 +678,7 @@ sanity_prechecks() {
        fi
 
        # When we actually have to compile something...
-       if ! just_headers ; then
+       if ! just_headers && [[ ${MERGE_TYPE} != "binary" ]] ; then
                ebegin "Checking gcc for __thread support"
                if ! eend $(want__thread ; echo $?) ; then
                        echo

Reply via email to