1 |
On 24-04-2008 23:53:51 +0100, Alan Hourihane wrote: |
2 |
> Using gcc-config fails compared to what binutils-config does for me. |
3 |
> |
4 |
> It turns out that this fails... |
5 |
> |
6 |
> env -i portageq envvar CHOST |
7 |
> |
8 |
> whereas in binutils-config we just do... |
9 |
> |
10 |
> portageq envvar CHOST |
11 |
> |
12 |
> Doing the former, gives me.... |
13 |
> |
14 |
> env: /root/gentoo/usr/bin/portageq: Invalid executable file format |
15 |
|
16 |
Does your /root/gentoo/usr/bin/portageq have an absolute shebang? Mine |
17 |
does. |
18 |
|
19 |
> Is there any reason to use "env -i" ?? |
20 |
|
21 |
it cleans the environment, probably for that case to avoid garbage (set |
22 |
by the user) to influence portageq's output. Must have been a reason |
23 |
for it at some point. Feels wrong they aren't aligned in |
24 |
binutils-config and gcc-config, though. |
25 |
|
26 |
|
27 |
-- |
28 |
Fabian Groffen |
29 |
Gentoo on a different level |
30 |
-- |
31 |
gentoo-alt@l.g.o mailing list |