Boost is querying the host's ldd for a glibc version instead of the target
which leads to reproducibility issues. We shouldn't do this when cross
compiling. Patch out the issue for now.

Signed-off-by: Richard Purdie <[email protected]>
---
 .../boost/boost-build-native_1.92.0.bb        |  3 ++-
 .../boost/boost-build/python-glibc.patch      | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/boost/boost-build/python-glibc.patch

diff --git a/meta/recipes-support/boost/boost-build-native_1.92.0.bb 
b/meta/recipes-support/boost/boost-build-native_1.92.0.bb
index c70ecf9f117..fed11eef445 100644
--- a/meta/recipes-support/boost/boost-build-native_1.92.0.bb
+++ b/meta/recipes-support/boost/boost-build-native_1.92.0.bb
@@ -7,7 +7,8 @@ LICENSE = "BSL-1.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
 
 SRC_URI = 
"git://github.com/boostorg/build;protocol=https;branch=master;tag=boost-${PV} \
-           file://add-python-numpy-include-feature.patch"
+           file://add-python-numpy-include-feature.patch \
+           file://python-glibc.patch"
 SRCREV = "05b6b638b54e1f013fb8b281f5020e337be31363"
 PE = "1"
 
diff --git a/meta/recipes-support/boost/boost-build/python-glibc.patch 
b/meta/recipes-support/boost/boost-build/python-glibc.patch
new file mode 100644
index 00000000000..b19f0ac474a
--- /dev/null
+++ b/meta/recipes-support/boost/boost-build/python-glibc.patch
@@ -0,0 +1,19 @@
+Calling ldd on the host glibc to make decisions about the target isn't cross 
compile
+safe, don't do it. We always have a new enough tagret glibc so we can skip 
this test.
+
+Signed-off-by: Richard Purdie <[email protected]>
+
+Upstream-Status: Inappropriate [Upstream would need a proper fix rather than a 
workaround]
+
+Index: boost-build-1.92.0/src/tools/python.jam
+===================================================================
+--- boost-build-1.92.0.orig/src/tools/python.jam
++++ boost-build-1.92.0/src/tools/python.jam
+@@ -624,6 +624,7 @@ local rule candidate-interpreters ( vers
+ local rule gcc-use-libutil ( )
+ {
+     local glibc ;
++    return ;
+     if [ feature.values <toolset> ] = gcc
+     {
+         debug-message Checking glibc (ldd) version... ;
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243919): 
https://lists.openembedded.org/g/openembedded-core/message/243919
Mute This Topic: https://lists.openembedded.org/mt/120859159/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to