Richard Purdie
63b1fd2226
rust-common: Hack around LD_LIBRARY_PATH issues on centos7
...
When building cargo-native on centos7 with buildtools tarball installed,
we see failures:
/bin/sh: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /home/pokybuild/yocto-worker/reproducible-centos/build/build-st/tmp/work/x86_64-linux/cargo-native/1.54.0-r0/recipe-sysroot-native/usr/lib/libtinfo.so.5)
We also see this for libstd-rs once cargo-native is fixed.
The reason for this is that the wrapper script
cargo-native/1.54.0-r0/wrapper/target-rust-ccld has /bin/sh as it's
interpreter and cargo calls this with LD_LIBRARY_PATH set to include the
recipe-sysroot-native. The host /bin/sh links to libtinfo from the host
but it finds the version in the sysroot which needs a newer libc. This
results in the above error since the loader is an older libc and the two
are incompatible.
Our ccld wrapper calls gcc/ld which don't need the LD_LIBRARY_PATH
variable set. We can't patch this out the source since we're using
a prebuilt binary to generate a new cargo binary so this is impossible
to bootstrap.
Instead, put a binary wrapper into place which removes LD_LIBRARY_PATH
from the environment before calling the original wrapper (left in shell
as it is simpler to maintain).
(From OE-Core rev: 8feeeb7f76c6725e5226458c8f22999b67c52694)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org >
2021-09-02 21:22:54 +01:00
..
2021-07-28 23:47:00 +01:00
2021-08-02 15:44:10 +01:00
2021-08-12 06:26:16 +01:00
2021-09-01 14:06:17 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-09-01 14:06:18 +01:00
2021-07-10 22:42:22 +01:00
2021-08-26 22:09:44 +01:00
2021-08-26 22:09:43 +01:00
2021-01-20 00:45:05 +00:00
2019-04-12 09:29:06 +01:00
2019-12-29 09:27:16 +00:00
2021-08-02 15:44:10 +01:00
2021-05-18 23:52:54 +01:00
2021-08-02 15:44:10 +01:00
2021-07-13 14:27:53 +01:00
2019-01-11 10:39:09 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-26 22:09:43 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2020-02-14 13:07:23 +00:00
2021-08-13 14:44:06 +01:00
2021-08-02 15:44:10 +01:00
2020-06-30 23:03:02 +01:00
2021-08-02 15:44:10 +01:00
2021-03-20 18:54:56 +00:00
2020-10-08 08:08:32 +01:00
2021-08-04 20:45:41 +01:00
2019-11-21 23:08:19 +00:00
2021-08-05 08:53:41 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-09-01 14:06:18 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-20 08:53:03 +01:00
2021-08-02 15:44:10 +01:00
2020-12-15 22:51:56 +00:00
2019-09-19 10:54:32 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-09-01 14:06:17 +01:00
2020-09-20 12:48:11 +01:00
2021-08-02 15:44:10 +01:00
2021-08-04 20:45:41 +01:00
2021-08-04 20:45:41 +01:00
2021-08-02 15:44:10 +01:00
2021-08-04 20:45:41 +01:00
2021-09-02 12:12:08 +01:00
2020-09-17 09:47:45 +01:00
2021-08-02 15:44:10 +01:00
2021-09-01 14:06:17 +01:00
2021-08-02 15:44:10 +01:00
2021-08-27 11:54:33 +01:00
2021-07-28 23:47:00 +01:00
2021-08-04 10:38:26 +01:00
2021-09-01 14:06:17 +01:00
2020-03-10 23:20:33 +00:00
2021-08-02 15:44:10 +01:00
2021-08-17 09:53:04 +01:00
2021-08-04 20:45:41 +01:00
2021-08-02 15:44:10 +01:00
2021-06-17 13:42:31 +01:00
2019-09-19 10:54:32 +01:00
2021-08-04 20:45:41 +01:00
2019-03-03 15:38:13 +00:00
2021-05-14 07:57:27 +01:00
2021-08-27 11:54:34 +01:00
2021-03-14 16:33:59 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-12 06:26:16 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2020-08-26 21:56:41 +01:00
2021-08-02 15:44:10 +01:00
2021-08-12 06:26:15 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-06-26 11:27:39 +01:00
2021-08-22 22:21:46 +01:00
2020-08-26 21:56:41 +01:00
2021-08-23 08:30:55 +01:00
2021-08-06 09:25:25 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2019-01-11 10:39:09 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:11 +01:00
2021-08-02 15:44:11 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-09-02 12:12:08 +01:00
2021-08-13 14:44:05 +01:00
2020-10-30 13:22:49 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2020-06-15 14:53:46 +01:00
2021-07-10 22:43:41 +01:00
2020-02-21 17:48:09 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-02-18 23:40:01 +00:00
2021-01-13 23:13:45 +00:00
2021-08-02 15:44:10 +01:00
2021-08-12 06:26:15 +01:00
2020-07-27 10:37:57 +01:00
2021-08-26 22:09:43 +01:00
2021-09-02 21:22:54 +01:00
2021-08-26 22:09:43 +01:00
2021-08-02 15:44:10 +01:00
2020-11-16 14:27:46 +00:00
2021-08-02 15:44:10 +01:00
2020-06-17 11:10:28 +01:00
2020-10-17 23:22:19 +01:00
2021-08-20 08:53:03 +01:00
2021-08-02 15:44:10 +01:00
2019-07-26 08:41:38 +01:00
2019-05-16 16:35:12 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-13 22:43:56 +01:00
2020-09-21 23:54:39 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-17 09:53:04 +01:00
2021-08-02 15:44:10 +01:00
2021-09-02 12:12:08 +01:00
2021-08-04 20:45:41 +01:00
2021-08-02 15:44:10 +01:00
2021-08-18 17:01:06 +01:00
2021-08-22 22:21:46 +01:00
2021-08-02 15:44:10 +01:00
2020-11-11 10:08:12 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-22 22:21:47 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00