* 'LIBC' variable clashes with perl variable
@ 2010-07-11 13:45 Koen Kooi
2010-07-11 15:50 ` Tom Rini
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Koen Kooi @ 2010-07-11 13:45 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Perl (among others) uses the 'LIBC' variable to point its linker to
libc.so.6, which fails due to OE redefing LIBC.
Any objections to renaming LIBC to TARGET_LIBC in OE?
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMOcrcMkyGM64RGpERAgPdAJ9DGZStg8DuhSa2MrYNuLsJVWRjwQCfZEPN
YIxL9q+S4caNMNmlrYsb3EE=
=xzeu
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: 'LIBC' variable clashes with perl variable
2010-07-11 13:45 'LIBC' variable clashes with perl variable Koen Kooi
@ 2010-07-11 15:50 ` Tom Rini
2010-07-13 19:06 ` Tom Rini
2010-07-11 17:01 ` Phil Blundell
2010-07-29 1:31 ` Tom Rini
2 siblings, 1 reply; 13+ messages in thread
From: Tom Rini @ 2010-07-11 15:50 UTC (permalink / raw)
To: openembedded-devel
Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> Perl (among others) uses the 'LIBC' variable to point its linker to
> libc.so.6, which fails due to OE redefing LIBC.
>
> Any objections to renaming LIBC to TARGET_LIBC in OE?
Sounds sane to me.
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 'LIBC' variable clashes with perl variable
2010-07-11 15:50 ` Tom Rini
@ 2010-07-13 19:06 ` Tom Rini
2010-07-28 0:48 ` Tom Rini
0 siblings, 1 reply; 13+ messages in thread
From: Tom Rini @ 2010-07-13 19:06 UTC (permalink / raw)
To: openembedded-devel
Tom Rini wrote:
> Koen Kooi wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi,
>>
>> Perl (among others) uses the 'LIBC' variable to point its linker to
>> libc.so.6, which fails due to OE redefing LIBC.
>>
>> Any objections to renaming LIBC to TARGET_LIBC in OE?
>
> Sounds sane to me.
Actually, why don't we just unexport it, like MACHINE / DISTRO /
TARGET_ARCH, and while we're at it, maybe TMPDIR too (since that's quite
meaningful outside of OE).
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 'LIBC' variable clashes with perl variable
2010-07-13 19:06 ` Tom Rini
@ 2010-07-28 0:48 ` Tom Rini
2010-07-28 7:09 ` Koen Kooi
2010-07-28 7:24 ` Roman I Khimov
0 siblings, 2 replies; 13+ messages in thread
From: Tom Rini @ 2010-07-28 0:48 UTC (permalink / raw)
To: openembedded-devel
Tom Rini wrote:
> Tom Rini wrote:
>> Koen Kooi wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Hi,
>>>
>>> Perl (among others) uses the 'LIBC' variable to point its linker to
>>> libc.so.6, which fails due to OE redefing LIBC.
>>>
>>> Any objections to renaming LIBC to TARGET_LIBC in OE?
>>
>> Sounds sane to me.
>
> Actually, why don't we just unexport it, like MACHINE / DISTRO /
> TARGET_ARCH, and while we're at it, maybe TMPDIR too (since that's quite
> meaningful outside of OE).
ping?
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 'LIBC' variable clashes with perl variable
2010-07-28 0:48 ` Tom Rini
@ 2010-07-28 7:09 ` Koen Kooi
2010-07-28 7:24 ` Roman I Khimov
1 sibling, 0 replies; 13+ messages in thread
From: Koen Kooi @ 2010-07-28 7:09 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 28-07-10 02:48, Tom Rini wrote:
> Tom Rini wrote:
>> Tom Rini wrote:
>>> Koen Kooi wrote:
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> Hi,
>>>>
>>>> Perl (among others) uses the 'LIBC' variable to point its linker to
>>>> libc.so.6, which fails due to OE redefing LIBC.
>>>>
>>>> Any objections to renaming LIBC to TARGET_LIBC in OE?
>>>
>>> Sounds sane to me.
>>
>> Actually, why don't we just unexport it, like MACHINE / DISTRO /
>> TARGET_ARCH, and while we're at it, maybe TMPDIR too (since that's
>> quite meaningful outside of OE).
>
> ping?
Sounds like a good idea to me.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMT9erMkyGM64RGpERAhw6AKCVTO1RK3XH3B2YOekgEdvHYRRKBwCeNx+S
E0WYpLLZov9c/ZVmErVoZJ0=
=G0RS
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 'LIBC' variable clashes with perl variable
2010-07-28 0:48 ` Tom Rini
2010-07-28 7:09 ` Koen Kooi
@ 2010-07-28 7:24 ` Roman I Khimov
1 sibling, 0 replies; 13+ messages in thread
From: Roman I Khimov @ 2010-07-28 7:24 UTC (permalink / raw)
To: openembedded-devel
В сообщении от Среда 28 июля 2010 04:48:19 автор Tom Rini написал:
> Tom Rini wrote:
> > Actually, why don't we just unexport it, like MACHINE / DISTRO /
> > TARGET_ARCH, and while we're at it, maybe TMPDIR too (since that's quite
> > meaningful outside of OE).
>
> ping?
I don't see any problems with that, so why not?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 'LIBC' variable clashes with perl variable
2010-07-11 13:45 'LIBC' variable clashes with perl variable Koen Kooi
2010-07-11 15:50 ` Tom Rini
@ 2010-07-11 17:01 ` Phil Blundell
2010-07-11 17:33 ` Koen Kooi
2010-07-11 22:17 ` Khem Raj
2010-07-29 1:31 ` Tom Rini
2 siblings, 2 replies; 13+ messages in thread
From: Phil Blundell @ 2010-07-11 17:01 UTC (permalink / raw)
To: openembedded-devel
On Sun, 2010-07-11 at 15:45 +0200, Koen Kooi wrote:
> Perl (among others) uses the 'LIBC' variable to point its linker to
> libc.so.6, which fails due to OE redefing LIBC.
>
> Any objections to renaming LIBC to TARGET_LIBC in OE?
How is perl getting to see that variable? I don't think it ought to be
exported.
I don't have any problem with renaming it, though I do wonder whether it
would be better to just abolish it altogether in favour of inspecting
${HOST_OS}.
p.
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: 'LIBC' variable clashes with perl variable
2010-07-11 17:01 ` Phil Blundell
@ 2010-07-11 17:33 ` Koen Kooi
2010-07-11 22:17 ` Khem Raj
1 sibling, 0 replies; 13+ messages in thread
From: Koen Kooi @ 2010-07-11 17:33 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11-07-10 19:01, Phil Blundell wrote:
> On Sun, 2010-07-11 at 15:45 +0200, Koen Kooi wrote:
>> Perl (among others) uses the 'LIBC' variable to point its linker to
>> libc.so.6, which fails due to OE redefing LIBC.
>>
>> Any objections to renaming LIBC to TARGET_LIBC in OE?
>
> How is perl getting to see that variable? I don't think it ought to be
> exported.
>
> I don't have any problem with renaming it, though I do wonder whether it
> would be better to just abolish it altogether in favour of inspecting
> ${HOST_OS}.
LIBC is currently used to set it for bitbake, e.g.:
MACHINE=beagleboard LIBC=eglibc bitbake foo
MACHINE=beagleboard LIBC=uclibc bitbake foo
Which also means we can't use any '_', so it would be TARGETLIBC or HOSTOS.
I'm not sure what the impact would be when we would unexport it, though.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMOgBTMkyGM64RGpERAqO9AJ4lSJbHDviQjgkIK5XkTC6/9voHIQCcDSrq
CK72iQi4N6rTh7x9hXt3jpM=
=XkZF
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: 'LIBC' variable clashes with perl variable
2010-07-11 17:01 ` Phil Blundell
2010-07-11 17:33 ` Koen Kooi
@ 2010-07-11 22:17 ` Khem Raj
2010-07-11 22:39 ` Phil Blundell
1 sibling, 1 reply; 13+ messages in thread
From: Khem Raj @ 2010-07-11 22:17 UTC (permalink / raw)
To: openembedded-devel
On Sun, Jul 11, 2010 at 10:01 AM, Phil Blundell <philb@gnu.org> wrote:
> On Sun, 2010-07-11 at 15:45 +0200, Koen Kooi wrote:
>> Perl (among others) uses the 'LIBC' variable to point its linker to
>> libc.so.6, which fails due to OE redefing LIBC.
>>
>> Any objections to renaming LIBC to TARGET_LIBC in OE?
>
> How is perl getting to see that variable? I don't think it ought to be
> exported.
>
> I don't have any problem with renaming it, though I do wonder whether it
> would be better to just abolish it altogether in favour of inspecting
> ${HOST_OS}.
uclibc is ok but glibc and eglibc will have same HOST_OS so it will be
hard to differentiate which system C library to choose.
>
> p.
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 'LIBC' variable clashes with perl variable
2010-07-11 13:45 'LIBC' variable clashes with perl variable Koen Kooi
2010-07-11 15:50 ` Tom Rini
2010-07-11 17:01 ` Phil Blundell
@ 2010-07-29 1:31 ` Tom Rini
2010-07-29 5:43 ` Roman I Khimov
2 siblings, 1 reply; 13+ messages in thread
From: Tom Rini @ 2010-07-29 1:31 UTC (permalink / raw)
To: openembedded-devel
Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> Perl (among others) uses the 'LIBC' variable to point its linker to
> libc.so.6, which fails due to OE redefing LIBC.
>
> Any objections to renaming LIBC to TARGET_LIBC in OE?
bitbake.conf: Unexport LIBC from the environment
As spoted by Koen at least perl makes use of LIBC coming from the
environment to be meaningful, so don't export it as it doesn't match our
meaning.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index d523519..ddb6a79 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -799,3 +799,6 @@ TARGET_ARCH[unexport] = "1"
# (breaks sysvinit at least)
DISTRO[unexport] = "1"
+# Make sure that LIBC isn't exported
+# (breaks perl at least)
+LIBC[unexport] = "1"
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply related [flat|nested] 13+ messages in thread
end of thread, other threads:[~2010-07-29 5:44 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-11 13:45 'LIBC' variable clashes with perl variable Koen Kooi
2010-07-11 15:50 ` Tom Rini
2010-07-13 19:06 ` Tom Rini
2010-07-28 0:48 ` Tom Rini
2010-07-28 7:09 ` Koen Kooi
2010-07-28 7:24 ` Roman I Khimov
2010-07-11 17:01 ` Phil Blundell
2010-07-11 17:33 ` Koen Kooi
2010-07-11 22:17 ` Khem Raj
2010-07-11 22:39 ` Phil Blundell
2010-07-11 22:42 ` Khem Raj
2010-07-29 1:31 ` Tom Rini
2010-07-29 5:43 ` Roman I Khimov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.