1 |
On 10/03/2013 12:59 PM, Fabian Groffen wrote: |
2 |
> On 03-10-2013 12:16:45 +0200, Michael Haubenwallner wrote: |
3 |
>> Hi! |
4 |
>> |
5 |
>> As I'm still not in sync with vanilla Prefix yet, thought to share this |
6 |
>> info before you start digging... |
7 |
>> |
8 |
>> 've just learned that autoconf's configure may listen to CONFIG_SITE |
9 |
>> environment variable, and simply sources the file from its value. |
10 |
>> |
11 |
>> This has bitten me on openSUSE 12.3 (64bit), where I've wondered why |
12 |
>> I got configure to use libdir=$prefix/lib64 and libexecdir=$prefix/lib |
13 |
>> even with some 32bit-only Prefix - and indeed, openSUSE 12.3 does |
14 |
>> set CONFIG_SITE in /etc/profile.d/site.sh. |
15 |
>> |
16 |
>> For Prefix we should have our etc/profile to punt CONFIG_SITE value - |
17 |
>> either unset directly or set to empty somewhere in etc/profile.d/. |
18 |
Actually meant etc/env.d/ here. |
19 |
>> |
20 |
>> Different thoughts? |
21 |
> |
22 |
> Can't we just blacklist it in startprefix? How does it end up in the |
23 |
> env anyway? Is it during bootstrap? then just blacklist it in |
24 |
> bootstrap-prefix.sh |
25 |
|
26 |
Anyone starting with the host's loginshell environment does have it set. |
27 |
|
28 |
For automation purposes it is necessary to be able to run the Prefix environment |
29 |
simply by "source EPREFIX/etc/profile", so actually one shell's env cumulates: |
30 |
source /etc/profile |
31 |
source @GENTOO_PORTAGE_EPREFIX@/etc/profile # portage builtin |
32 |
source $EPREFIX/etc/profile # envvar with prefix-chaining (like cross-prefix) |
33 |
|
34 |
Building some non ebuild-ified but autotoolized application using this env setup |
35 |
will see CONFIG_PATH and fail. |
36 |
|
37 |
> I'm probably missing something here. It feels like the PKG_CONFIG_PATH |
38 |
> thing a bit. |
39 |
|
40 |
Indeed, they're on the same level. And here I find PKG_CONFIG_PATH being set in both |
41 |
@GENTOO_PORTAGE_EPREFIX@'s and $EPREFIX's etc/env.d/00basic, unsure if we (still) do |
42 |
that in vanilla Prefix. |
43 |
|
44 |
/haubi/ |