Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 95928
Collapse All | Expand All

(-)toolchain-binutils.eclass (-3 / +5 lines)
Lines 237-244 toolchain-binutils_pkg_postinst() { Link Here
237
}
237
}
238
238
239
toolchain-binutils_pkg_postrm() {
239
toolchain-binutils_pkg_postrm() {
240
	local choice=$(binutils-config -l | grep ${CTARGET} | grep -v ${CTARGET}-${PV})
240
	local current_profile=$(binutils-config -c ${CTARGET})
241
	choice=${choice/\* }
242
241
243
	# If no other versions exist, then uninstall for this 
242
	# If no other versions exist, then uninstall for this 
244
	# target ... otherwise, switch to the newest version
243
	# target ... otherwise, switch to the newest version
Lines 246-252 toolchain-binutils_pkg_postrm() { Link Here
246
	#       rerun binutils-config if this is a remerge, as
245
	#       rerun binutils-config if this is a remerge, as
247
	#       we want the mtimes on the symlinks updated (if
246
	#       we want the mtimes on the symlinks updated (if
248
	#       it is the same as the current selected profile)
247
	#       it is the same as the current selected profile)
249
	if [[ ! -e ${BINPATH}/ld ]] ; then
248
	if [[ ! -e ${BINPATH}/ld ]] && [[ ${current_profile} == ${CTARGET}-${PV} ]] ; then
249
		local choice=$(binutils-config -l | grep ${CTARGET} | awk '{print $2}')
250
		choice=${choice//$'\n'/ }
251
		choice=${choice/* }
250
		if [[ -z ${choice} ]] ; then
252
		if [[ -z ${choice} ]] ; then
251
			binutils-config -u ${CTARGET}
253
			binutils-config -u ${CTARGET}
252
		else
254
		else

Return to bug 95928