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 75F61159C96 for ; Sun, 28 Jul 2024 14:36:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DF0AE2A2D; Sun, 28 Jul 2024 14:36:06 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 6EA22E2A2D for ; Sun, 28 Jul 2024 14:36:06 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 73079335D64 for ; Sun, 28 Jul 2024 14:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 122621952 for ; Sun, 28 Jul 2024 14:36:04 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1722177340.bf4b9fcbb4ce432731ac90fbbb3bcf73beb51820.dilfridge@gentoo> Subject: [gentoo-commits] proj/binutils-config:master commit in: src/ X-VCS-Repository: proj/binutils-config X-VCS-Files: src/binutils-config X-VCS-Directories: src/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: bf4b9fcbb4ce432731ac90fbbb3bcf73beb51820 X-VCS-Branch: master Date: Sun, 28 Jul 2024 14:36:04 +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: 769b7520-5375-4dc3-a978-f5c801dda4ac X-Archives-Hash: 4d66355f23bb8243687d24acb197f076 commit: bf4b9fcbb4ce432731ac90fbbb3bcf73beb51820 Author: Andreas K. Hüttel gentoo org> AuthorDate: Sun Jul 28 14:24:28 2024 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Sun Jul 28 14:35:40 2024 +0000 URL: https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=bf4b9fcb Fix test for broken symlinks (-e is false, -h is true) Signed-off-by: Andreas K. Hüttel gentoo.org> src/binutils-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/binutils-config b/src/binutils-config index 519f1f0..43d38e5 100755 --- a/src/binutils-config +++ b/src/binutils-config @@ -191,7 +191,7 @@ switch_profile() { # Some stages errorneously could not figure out CHOST and installed # symlinks into the path ${EROOT}/usr/libexec/gcc/${HOST}. These need # to go away. - if [[ -e "${EROOT}/usr/libexec/gcc/${HOST}/${x}" ]] ; then + if [[ -h "${EROOT}/usr/libexec/gcc/${HOST}/${x}" ]] ; then rm -f "${EROOT}/usr/libexec/gcc/${HOST}/${x}" bad_symlinks_removed="1" fi