1 |
On 09-07-2007 10:38:02 -0600, Aaron Wilson wrote: |
2 |
[snip hack-workaround] |
3 |
> But this is not a proper fix. I tried compiling bash a few times with |
4 |
> different configure options. Specifically I tried |
5 |
> |
6 |
>> ./configure --prefix=/Users/wilson/Library/Gentoo |
7 |
>> --sysconfdir=/Users/wilson/Library/Gentoo/etc |
8 |
> |
9 |
> but this bash still sourced /etc/profile. The configure script documents |
10 |
> the --sysconfdir option |
11 |
> |
12 |
>> $ ./configure --help|grep sysconf |
13 |
>> --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
14 |
> |
15 |
> I don't understand why this option has no effect (or why the prefix option |
16 |
> doesn't do the same as is implied by the [PREFIX/etc]. |
17 |
|
18 |
I just ran |
19 |
% ktrace -f /var/tmp/bash.trace bash |
20 |
$ ^D |
21 |
% kdump -f /var/tmp/bash.trace | less |
22 |
|
23 |
and the first file it opens (after lots of library loads by the linker) |
24 |
is |
25 |
21164 bash NAMI "/Library/Gentoo/etc/bash/bashrc" |
26 |
which is clearly a prefix path. |
27 |
|
28 |
I don't see it *ever* touching a non-prefixed file. That said, could |
29 |
(one of you) try the same as I did above and look through the output of |
30 |
kdump to see if you see it opening non-prefixed files? |
31 |
|
32 |
(Don't dump the file here on the list, or any other public place. If |
33 |
you want me to look at it, send it to me privately.) |
34 |
|
35 |
|
36 |
-- |
37 |
Fabian Groffen |
38 |
Gentoo on a different level |
39 |
|
40 |
-- |
41 |
gentoo-alt@g.o mailing list |