sys-devel/binutils: Sync with Gentoo

It's from Gentoo commit 9a23794a3dc75c2248fbb6546b6428480fb91ead.
This commit is contained in:
Flatcar Buildbot 2024-07-29 07:19:23 +00:00 committed by Krzesimir Nowak
parent 754c962afc
commit e951b416eb
2 changed files with 8 additions and 8 deletions

View File

@ -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
}

View File

@ -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
}