FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 04-15-2008, 10:18 PM
Alan Hourihane
 
Default gnuconfig.eclass problem

I'm trying to build gcc in my prefix, but it's always picking up
automake-1.7 from /usr/share and not the latest from my
${EPREFIX}/usr/share directory.

I spotted the following in gnuconfig.eclass....

# this searches the standard locations for the newest config.{sub|
guess}, and
# returns the directory where they can be found.
gnuconfig_findnewest() {
local locations="
/usr/share/gnuconfig/config.sub
/usr/share/automake-1.9/config.sub
/usr/share/automake-1.8/config.sub
/usr/share/automake-1.7/config.sub
/usr/share/automake-1.6/config.sub
/usr/share/automake-1.5/config.sub
/usr/share/automake-1.4/config.sub
/usr/share/libtool/config.sub
"
grep -s '^timestamp' ${locations} | sort -n -t' -k2 | tail -n 1
| sed 's,/config.sub:.*$,,'
}

Shouldn't the above have the ${EPREFIX} added somehow?

Alan.

--
gentoo-alt@lists.gentoo.org mailing list
 
Old 04-16-2008, 08:00 AM
Fabian Groffen
 
Default gnuconfig.eclass problem

On 15-04-2008 23:18:32 +0100, Alan Hourihane wrote:
> I'm trying to build gcc in my prefix, but it's always picking up
> automake-1.7 from /usr/share and not the latest from my
> ${EPREFIX}/usr/share directory.
>
> I spotted the following in gnuconfig.eclass....
>
> # this searches the standard locations for the newest config.{sub|
> guess}, and
> # returns the directory where they can be found.
> gnuconfig_findnewest() {
> local locations="
> /usr/share/gnuconfig/config.sub
> /usr/share/automake-1.9/config.sub
> /usr/share/automake-1.8/config.sub
> /usr/share/automake-1.7/config.sub
> /usr/share/automake-1.6/config.sub
> /usr/share/automake-1.5/config.sub
> /usr/share/automake-1.4/config.sub
> /usr/share/libtool/config.sub
> "
> grep -s '^timestamp' ${locations} | sort -n -t' -k2 | tail -n 1
> | sed 's,/config.sub:.*$,,'
> }
>
> Shouldn't the above have the ${EPREFIX} added somehow?

Looks like a big screwup indeed... Thanks!


--
Fabian Groffen
Gentoo on a different level
--
gentoo-alt@lists.gentoo.org mailing list
 
Old 04-16-2008, 08:15 AM
Fabian Groffen
 
Default gnuconfig.eclass problem

On 15-04-2008 23:18:32 +0100, Alan Hourihane wrote:
> I'm trying to build gcc in my prefix, but it's always picking up
> automake-1.7 from /usr/share and not the latest from my
> ${EPREFIX}/usr/share directory.
>
> I spotted the following in gnuconfig.eclass....

Weird actually, since gnuconfig is declared "DEAD", reason: portage has
it integrated...

> # this searches the standard locations for the newest config.{sub|
> guess}, and
> # returns the directory where they can be found.
> gnuconfig_findnewest() {
> local locations="
> /usr/share/gnuconfig/config.sub
> /usr/share/automake-1.9/config.sub
> /usr/share/automake-1.8/config.sub
> /usr/share/automake-1.7/config.sub
> /usr/share/automake-1.6/config.sub
> /usr/share/automake-1.5/config.sub
> /usr/share/automake-1.4/config.sub
> /usr/share/libtool/config.sub
> "

On a second thought, this list is also far from up-to-date, so I doubt
it is used currently.

> grep -s '^timestamp' ${locations} | sort -n -t' -k2 | tail -n 1
> | sed 's,/config.sub:.*$,,'
> }
>
> Shouldn't the above have the ${EPREFIX} added somehow?

That won't hurt in any case.


--
Fabian Groffen
Gentoo on a different level
--
gentoo-alt@lists.gentoo.org mailing list
 
Old 04-16-2008, 08:25 AM
Alan Hourihane
 
Default gnuconfig.eclass problem

On Wed, 2008-04-16 at 10:15 +0200, Fabian Groffen wrote:
> On 15-04-2008 23:18:32 +0100, Alan Hourihane wrote:
> > I'm trying to build gcc in my prefix, but it's always picking up
> > automake-1.7 from /usr/share and not the latest from my
> > ${EPREFIX}/usr/share directory.
> >
> > I spotted the following in gnuconfig.eclass....
>
> Weird actually, since gnuconfig is declared "DEAD", reason: portage has
> it integrated...

I thought so too, but it's not.

> > # this searches the standard locations for the newest config.{sub|
> > guess}, and
> > # returns the directory where they can be found.
> > gnuconfig_findnewest() {
> > local locations="
> > /usr/share/gnuconfig/config.sub
> > /usr/share/automake-1.9/config.sub
> > /usr/share/automake-1.8/config.sub
> > /usr/share/automake-1.7/config.sub
> > /usr/share/automake-1.6/config.sub
> > /usr/share/automake-1.5/config.sub
> > /usr/share/automake-1.4/config.sub
> > /usr/share/libtool/config.sub
> > "
>
> On a second thought, this list is also far from up-to-date, so I doubt
> it is used currently.

It really is, honestly.

> > grep -s '^timestamp' ${locations} | sort -n -t' -k2 | tail -n 1
> > | sed 's,/config.sub:.*$,,'
> > }
> >
> > Shouldn't the above have the ${EPREFIX} added somehow?
>
> That won't hurt in any case.

Look at toolchain.eclass and toolchain-binutils.eclass and it calls
gnuconfig_update which comes back to this function above.

So it really needs fixing and updating.

Alan.

--
gentoo-alt@lists.gentoo.org mailing list
 
Old 04-16-2008, 08:29 AM
Fabian Groffen
 
Default gnuconfig.eclass problem

On 16-04-2008 09:25:08 +0100, Alan Hourihane wrote:
> Look at toolchain.eclass and toolchain-binutils.eclass and it calls
> gnuconfig_update which comes back to this function above.
>
> So it really needs fixing and updating.

I fixed it, the updating I'll file a bug for.


--
Fabian Groffen
Gentoo on a different level
--
gentoo-alt@lists.gentoo.org mailing list
 

Thread Tools




All times are GMT. The time now is 05:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org