From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1656919-garchives=archives.gentoo.org@lists.gentoo.org> 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 0F6C9159C96 for <garchives@archives.gentoo.org>; Sun, 28 Jul 2024 13:42:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24231E2A40; Sun, 28 Jul 2024 13:42:17 +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 04ED3E2A40 for <gentoo-commits@lists.gentoo.org>; Sun, 28 Jul 2024 13:42:17 +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 09145335C11 for <gentoo-commits@lists.gentoo.org>; Sun, 28 Jul 2024 13:42:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B8531DC5 for <gentoo-commits@lists.gentoo.org>; Sun, 28 Jul 2024 13:42:14 +0000 (UTC) From: "Andreas K. Hüttel" <dilfridge@gentoo.org> 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" <dilfridge@gentoo.org> Message-ID: <1722174122.9a23794a3dc75c2248fbb6546b6428480fb91ead.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/binutils/binutils-2.42-r2.ebuild sys-devel/binutils/binutils-9999.ebuild X-VCS-Directories: sys-devel/binutils/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 9a23794a3dc75c2248fbb6546b6428480fb91ead X-VCS-Branch: master Date: Sun, 28 Jul 2024 13:42:14 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4cf925f4-1dcd-4070-91ce-21ade8866885 X-Archives-Hash: 829c4ca0e59d85ebc571b810ba60955f commit: 9a23794a3dc75c2248fbb6546b6428480fb91ead Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> AuthorDate: Sun Jul 28 13:41:32 2024 +0000 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> CommitDate: Sun Jul 28 13:42:02 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a23794a sys-devel/binutils: Detect and log binutils-config errors. Eventually we want to act on them... Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> sys-devel/binutils/binutils-2.42-r2.ebuild | 8 ++++---- sys-devel/binutils/binutils-9999.ebuild | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys-devel/binutils/binutils-2.42-r2.ebuild b/sys-devel/binutils/binutils-2.42-r2.ebuild index 5e6ae95311f5..7b0f6ea29f53 100644 --- a/sys-devel/binutils/binutils-2.42-r2.ebuild +++ b/sys-devel/binutils/binutils-2.42-r2.ebuild @@ -500,7 +500,7 @@ src_install() { pkg_postinst() { # Make sure this ${CTARGET} has a binutils version selected [[ -e ${EROOT}/etc/env.d/binutils/config-${CTARGET} ]] && return 0 - binutils-config ${CTARGET}-${PV} + binutils-config ${CTARGET}-${PV} || eerror binutils-config returned an error } pkg_postrm() { @@ -517,12 +517,12 @@ pkg_postrm() { choice=${choice//$'\n'/ } choice=${choice/* } if [[ -z ${choice} ]] ; then - binutils-config -u ${CTARGET} + binutils-config -u ${CTARGET} || eerror binutils-config returned an error else - binutils-config ${choice} + binutils-config ${choice} || eerror binutils-config returned an error fi elif [[ $(CHOST=${CTARGET} binutils-config -c) == ${CTARGET}-${PV} ]] ; then - binutils-config ${CTARGET}-${PV} + binutils-config ${CTARGET}-${PV} || eerror binutils-config returned an error fi } diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild index ec36fb66e100..ccf31a101405 100644 --- a/sys-devel/binutils/binutils-9999.ebuild +++ b/sys-devel/binutils/binutils-9999.ebuild @@ -494,7 +494,7 @@ src_install() { pkg_postinst() { # Make sure this ${CTARGET} has a binutils version selected [[ -e ${EROOT}/etc/env.d/binutils/config-${CTARGET} ]] && return 0 - binutils-config ${CTARGET}-${PV} + binutils-config ${CTARGET}-${PV} || eerror binutils-config returned an error } pkg_postrm() { @@ -511,12 +511,12 @@ pkg_postrm() { choice=${choice//$'\n'/ } choice=${choice/* } if [[ -z ${choice} ]] ; then - binutils-config -u ${CTARGET} + binutils-config -u ${CTARGET} || eerror binutils-config returned an error else - binutils-config ${choice} + binutils-config ${choice} || eerror binutils-config returned an error fi elif [[ $(CHOST=${CTARGET} binutils-config -c) == ${CTARGET}-${PV} ]] ; then - binutils-config ${CTARGET}-${PV} + binutils-config ${CTARGET}-${PV} || eerror binutils-config returned an error fi }