Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Fabian Groffen <grobian@g.o>
Subject: Re: [prefix][linux] toolchain-binutils.eclass breaks prefix ongentoo-linux
Date: Fri, 4 May 2007 10:41:28 +0200
Committed, thanks a million

On 04-05-2007 10:30:10 +0200, Michael Haubenwallner wrote:
> Hi,
> 
> I've tried to bootstrap my prefix on a native gentoo linux, and when
> upgrading binutils from 2.16.1 to 2.17.* I ended up with broken binutils
> wrappers in prefix, if 2.16.1 is installed natively too.
> 
> Attached is a patch to fix this:
> The real problem is that "[[ ! -e ${BINPATH}/ld ]]", because BINPATH
> does not contain EPREFIX.
> Now when same version is installed natively, ${BINPATH}/ld exists
> unprefixed, resulting in not switching to newer binutils in prefix.
> 
> The other problem is: "env -i binutils-config ..." will not use
> "$EPREFIX/usr/bin/binutils-config", but "/usr/bin/binutils-config", with
> all possible kind of followup problems.
> 
> /haubi/
> 
> -- 
> Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz
> Sitz der Gesellschaft: Friesach bei Graz
> UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K
> Firmenbuchgericht: Landesgericht fur Zivilrechtssachen Graz
> 

> Index: toolchain-binutils.eclass
> ===================================================================
> --- toolchain-binutils.eclass	(revision 5613)
> +++ toolchain-binutils.eclass	(working copy)
> @@ -364,12 +364,12 @@
>  	#       rerun binutils-config if this is a remerge, as
>  	#       we want the mtimes on the symlinks updated (if
>  	#       it is the same as the current selected profile)
> -	if [[ ! -e ${BINPATH}/ld ]] && [[ ${current_profile} == ${CTARGET}-${BVER} ]] ; then
> +	if [[ ! -e ${EPREFIX}${BINPATH}/ld ]] && [[ ${current_profile} == ${CTARGET}-${BVER} ]] ; then
>  		local choice=$(binutils-config -l | grep ${CTARGET} | awk '{print $2}')
>  		choice=${choice//$'\n'/ }
>  		choice=${choice/* }
>  		if [[ -z ${choice} ]] ; then
> -			env -i binutils-config -u ${CTARGET}
> +			env -i "${EPREFIX}"/usr/bin/binutils-config -u ${CTARGET}
>  		else
>  			binutils-config ${choice}
>  		fi


-- 
Fabian Groffen
Gentoo on a different level
-- 
gentoo-alt@g.o mailing list


References:
[prefix][linux] toolchain-binutils.eclass breaks prefix ongentoo-linux
-- Michael Haubenwallner
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[prefix][linux] toolchain-binutils.eclass breaks prefix ongentoo-linux
Next by thread:
[prefix] broken bootstrap-prefix.sh for amd64-linux
Previous by date:
[prefix][linux] toolchain-binutils.eclass breaks prefix ongentoo-linux
Next by date:
[prefix] broken bootstrap-prefix.sh for amd64-linux


Updated Jun 17, 2009

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.