]> code.ossystems Code Review - openembedded-core.git/commit
rust-common.bbclass: rewrite toolchain wrappers in (native) python
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sun, 10 Oct 2021 19:10:06 +0000 (21:10 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Oct 2021 10:48:35 +0000 (11:48 +0100)
commit997d54363a3cb3a0e949b3626855f2fa41afeb2b
treea7cb6ff1c58ce3515adee9426e0151edbe831a0a
parent8915dfa2034d939b504f134e83811ed2ba18a6f1
rust-common.bbclass: rewrite toolchain wrappers in (native) python

librsvg on centos 7 and friends exhibits the same libtinfo leakage
problem, this time coming from the compiler and not the linker.
Simply covering the compiler by the existing C wrapper-of-wrapper
does not work, as rust-native builds put Important Stuff into
LD_LIBRARY_PATH and unsetting it breaks things badly.

Rather than try to figure out which combination of wrappers and
LD_LIBRARY_PATH settings works for which situation, or provide
some kind of sh-native, let's simply use python3-native for the
wrappers, which should insulate builds from the the host shell.
rust-native already depends on python3-native, so this does not
lengthen the builds.

This also reverts:
rust-common: Hack around LD_LIBRARY_PATH issues on centos7
(commit 63b1fd2226b5f146d6c853cc57417704df378438).

I'd also like to say boo to Red Hat (or GNU?) for breaking ABI
compatibility for stat() in glibc 2.33, we ended up sorting
this mess because of it.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rust-common.bbclass
meta/files/rust-ccld-wrapper.c [deleted file]