commit:     ac74b9db2bdedc45a5409b01e93ec96d4470ca22
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  6 11:03:15 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov  6 11:04:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac74b9db

sys-devel/binutils: skip sanity check for prefix

It's not clear to me why it fails but I haven't got an environment to
debug it in right now, and it's a new addition, so it's not like it's
a regression to turn off the (new) sanity check.

Closes: https://bugs.gentoo.org/965478
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/binutils/binutils-2.45-r1.ebuild   | 4 +---
 sys-devel/binutils/binutils-2.45.9999.ebuild | 4 +---
 sys-devel/binutils/binutils-2.45.ebuild      | 4 +---
 sys-devel/binutils/binutils-9999.ebuild      | 4 +---
 4 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/sys-devel/binutils/binutils-2.45-r1.ebuild 
b/sys-devel/binutils/binutils-2.45-r1.ebuild
index 05d028192b7d..4f892fd2f3c3 100644
--- a/sys-devel/binutils/binutils-2.45-r1.ebuild
+++ b/sys-devel/binutils/binutils-2.45-r1.ebuild
@@ -528,9 +528,6 @@ src_install() {
 
 # Simple test to make sure our new binutils isn't completely broken.
 # Skip if this binutils is a cross compiler.
-#
-# If coreutils is built with USE=multicall, some of these files
-# will just be wrapper scripts, not actual ELFs we can test.
 binutils_sanity_check() {
        pushd "${T}" >/dev/null
 
@@ -571,6 +568,7 @@ binutils_sanity_check() {
 
 pkg_preinst() {
        [[ -n ${ROOT} ]] && return 0
+       [[ -n ${EPREFIX} ]] && return 0
        [[ -d ${ED}${BINPATH} ]] || return 0
        [[ -n ${BOOTSTRAP_RAP} ]] || return 0
        is_cross && return 0

diff --git a/sys-devel/binutils/binutils-2.45.9999.ebuild 
b/sys-devel/binutils/binutils-2.45.9999.ebuild
index 8bdb36fccd42..813f206a020f 100644
--- a/sys-devel/binutils/binutils-2.45.9999.ebuild
+++ b/sys-devel/binutils/binutils-2.45.9999.ebuild
@@ -532,9 +532,6 @@ src_install() {
 
 # Simple test to make sure our new binutils isn't completely broken.
 # Skip if this binutils is a cross compiler.
-#
-# If coreutils is built with USE=multicall, some of these files
-# will just be wrapper scripts, not actual ELFs we can test.
 binutils_sanity_check() {
        pushd "${T}" >/dev/null
 
@@ -575,6 +572,7 @@ binutils_sanity_check() {
 
 pkg_preinst() {
        [[ -n ${ROOT} ]] && return 0
+       [[ -n ${EPREFIX} ]] && return 0
        [[ -d ${ED}${BINPATH} ]] || return 0
        [[ -n ${BOOTSTRAP_RAP} ]] || return 0
        is_cross && return 0

diff --git a/sys-devel/binutils/binutils-2.45.ebuild 
b/sys-devel/binutils/binutils-2.45.ebuild
index e207c62705ef..6218370c5763 100644
--- a/sys-devel/binutils/binutils-2.45.ebuild
+++ b/sys-devel/binutils/binutils-2.45.ebuild
@@ -530,9 +530,6 @@ src_install() {
 
 # Simple test to make sure our new binutils isn't completely broken.
 # Skip if this binutils is a cross compiler.
-#
-# If coreutils is built with USE=multicall, some of these files
-# will just be wrapper scripts, not actual ELFs we can test.
 binutils_sanity_check() {
        pushd "${T}" >/dev/null
 
@@ -573,6 +570,7 @@ binutils_sanity_check() {
 
 pkg_preinst() {
        [[ -n ${ROOT} ]] && return 0
+       [[ -n ${EPREFIX} ]] && return 0
        [[ -d ${ED}${BINPATH} ]] || return 0
        [[ -n ${BOOTSTRAP_RAP} ]] || return 0
        is_cross && return 0

diff --git a/sys-devel/binutils/binutils-9999.ebuild 
b/sys-devel/binutils/binutils-9999.ebuild
index 8bdb36fccd42..813f206a020f 100644
--- a/sys-devel/binutils/binutils-9999.ebuild
+++ b/sys-devel/binutils/binutils-9999.ebuild
@@ -532,9 +532,6 @@ src_install() {
 
 # Simple test to make sure our new binutils isn't completely broken.
 # Skip if this binutils is a cross compiler.
-#
-# If coreutils is built with USE=multicall, some of these files
-# will just be wrapper scripts, not actual ELFs we can test.
 binutils_sanity_check() {
        pushd "${T}" >/dev/null
 
@@ -575,6 +572,7 @@ binutils_sanity_check() {
 
 pkg_preinst() {
        [[ -n ${ROOT} ]] && return 0
+       [[ -n ${EPREFIX} ]] && return 0
        [[ -d ${ED}${BINPATH} ]] || return 0
        [[ -n ${BOOTSTRAP_RAP} ]] || return 0
        is_cross && return 0

Reply via email to