mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
sys-devel/binutils: Sync with Gentoo
It's from Gentoo commit 9a23794a3dc75c2248fbb6546b6428480fb91ead.
This commit is contained in:
parent
754c962afc
commit
e951b416eb
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user