'LIBC' variable clashes with perl variable
-----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-----
Quoted 9 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
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_LIBCin OE?
Sounds sane to me.
Signature · 2 lines
Tom Rini Mentor Graphics Corporation
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_LIBCin 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.
-----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_LIBCin 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-----
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_LIBCin 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
Quoted 2 lines · Khem Raj
uclibc is ok but glibc and eglibc will have same
HOST_OSso 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.
Quoted 6 lines · Phil Blundell
Quoted 2 lines · Khem Raj
uclibc is ok but glibc and eglibc will have same
HOST_OSso 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
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_LIBCin 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
Quoted 7 lines · Tom Rini
Quoted 6 lines · Tom Rini
Quoted 5 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
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_LIBCin 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
-----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: SHA1Hi,
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_LIBCin 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-----
В сообщении от Среда 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?
Quoted 9 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
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_LIBCin 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
@@ -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
Roman I Khimov
Acked-byВ сообщении от Четверг 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.
Signed-off-by Tom Rini <[email protected]>
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3