Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] gnuconfig.eclass problem
Date: Wed, 16 Apr 2008 08:15:09
Message-Id: 20080416081507.GM19983@gentoo.org
In Reply to: [gentoo-alt] gnuconfig.eclass problem by Alan Hourihane
1 On 15-04-2008 23:18:32 +0100, Alan Hourihane wrote:
2 > I'm trying to build gcc in my prefix, but it's always picking up
3 > automake-1.7 from /usr/share and not the latest from my
4 > ${EPREFIX}/usr/share directory.
5 >
6 > I spotted the following in gnuconfig.eclass....
7
8 Weird actually, since gnuconfig is declared "DEAD", reason: portage has
9 it integrated...
10
11 > # this searches the standard locations for the newest config.{sub|
12 > guess}, and
13 > # returns the directory where they can be found.
14 > gnuconfig_findnewest() {
15 > local locations="
16 > /usr/share/gnuconfig/config.sub
17 > /usr/share/automake-1.9/config.sub
18 > /usr/share/automake-1.8/config.sub
19 > /usr/share/automake-1.7/config.sub
20 > /usr/share/automake-1.6/config.sub
21 > /usr/share/automake-1.5/config.sub
22 > /usr/share/automake-1.4/config.sub
23 > /usr/share/libtool/config.sub
24 > "
25
26 On a second thought, this list is also far from up-to-date, so I doubt
27 it is used currently.
28
29 > grep -s '^timestamp' ${locations} | sort -n -t\' -k2 | tail -n 1
30 > | sed 's,/config.sub:.*$,,'
31 > }
32 >
33 > Shouldn't the above have the ${EPREFIX} added somehow?
34
35 That won't hurt in any case.
36
37
38 --
39 Fabian Groffen
40 Gentoo on a different level
41 --
42 gentoo-alt@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] gnuconfig.eclass problem Alan Hourihane <alanh@×××××××××××××××××.uk>