commit:     d26221d21a851f84a639b44477f6dd94056a7058
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 26 20:34:47 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Jul 26 20:34:47 2024 +0000
URL:        
https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=d26221d2

Print error message on empty determined CHOST

No error exit yet, until we've fixed our problems.

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 src/binutils-config | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/binutils-config b/src/binutils-config
index a28366a..c8de31a 100755
--- a/src/binutils-config
+++ b/src/binutils-config
@@ -409,6 +409,12 @@ list_profiles() {
 set_HOST() {
        # Set HOST to CHOST if it isn't already set
        : ${HOST:=${CHOST:-$(portageq envvar CHOST)}}
+
+       if [[ -z ${HOST} ]] ; then
+               eerror "Cannot determine CHOST. Something is badly broken."
+               # once our current stage build problems are fixed, let's enable 
this:
+               # exit 1
+       fi
 }
 
 ENV_D="${EROOT}etc/env.d/binutils"

Reply via email to