Skip to contentSkip to conversation

'LIBC' variable clashes with perl variable

DISCUSSION Koen Kooi 6 participants 13 messages Jul 11, 2010 – Jul 29, 2010

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

-----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-----

#1 lore raw
Quoted 9 lines · Koen Kooi

-----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.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#6 lore raw
In reply to Koen Kooi
Quoted 4 lines · Koen Kooi

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.

author
#7 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 4 lines · Phil Blundell
Quoted 3 lines · Koen Kooi

Perl (among others) uses the 'LIBC' variable to point its linker to libc.so.6, which fails due to OE redefing LIBC.

Quoted 8 lines
Quoted 1 line

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-----

#8 lore raw
In reply to Phil Blundell
Quoted 4 lines · Phil Blundell
Quoted 3 lines · Koen Kooi

Perl (among others) uses the 'LIBC' variable to point its linker to libc.so.6, which fails due to OE redefing LIBC.

Quoted 8 lines
Quoted 1 line

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.

Quoted 10 lines

p.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#9 lore raw
Quoted 2 lines · Khem Raj

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.

Are there any DISTROs which actually want to support both eglibc and glibc in parallel?

p.

#10 lore raw
Quoted 6 lines · Phil Blundell
Quoted 2 lines · Khem Raj

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.

Are there any DISTROs which actually want to support both eglibc and glibc in parallel?

angstrom supports all 3 of them IIRC with defaults being glibc

Quoted 10 lines

p.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw
In reply to Tom Rini
Quoted 4 lines · Tom Rini
Quoted 3 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines
Quoted 6 lines

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).

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#3 lore raw
Quoted 7 lines · Tom Rini
Quoted 6 lines · Tom Rini
Quoted 5 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

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?

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
author
#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 13 lines · Tom Rini
Quoted 12 lines · Tom Rini
Quoted 11 lines · Tom Rini
Quoted 9 lines · Koen Kooi

-----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?

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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-----

#5 lore raw
In reply to Tom Rini

В сообщении от Среда 28 июля 2010 04:48:19 автор Tom Rini написал:

Quoted 6 lines
Quoted 3 lines · Tom Rini

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?

#11 lore raw
In reply to Koen Kooi
Quoted 9 lines · Koen Kooi

-----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.

conf/bitbake.conf +3 -0
index d523519..ddb6a79 100644
@@ -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"
Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#12 lore raw

В сообщении от Четверг 29 июля 2010 05:31:07 автор Tom Rini написал:

Quoted 7 lines

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.

Signature · 3 lines
 http://roman.khimov.ru
mailto: [email protected]
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3