A recent change to glibc 2.43 has caused a build failure.  oe-core has
updated the ltp recipe [1] so we need to copy the same fix over here.

[1] 
https://git.openembedded.org/openembedded-core/commit/?id=f78863f89da5d11b52c477741bf65790f2ce0186

Signed-off-by: Ryan Eatmon <[email protected]>
---
 ...tp-fix-build-failure-with-glibc-2.43.patch | 33 +++++++++++++++++++
 .../recipes-devtools/ltp-ddt/ltp_20260130.inc |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 
meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-ltp-fix-build-failure-with-glibc-2.43.patch

diff --git 
a/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-ltp-fix-build-failure-with-glibc-2.43.patch
 
b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-ltp-fix-build-failure-with-glibc-2.43.patch
new file mode 100644
index 00000000..7c78660e
--- /dev/null
+++ 
b/meta-arago-test/recipes-devtools/ltp-ddt/ltp-ddt/0001-ltp-fix-build-failure-with-glibc-2.43.patch
@@ -0,0 +1,33 @@
+ltp: fix build failure with glibc 2.43
+
+glibc 2.43 added native openat2() support for the first time. This
+caused compatibility issues with LTP's internal openat2 definitions
+in lapi/openat2.h. LTP's configure detects glibc's openat2() and
+sets HAVE_OPENAT2=1, causing lapi/openat2.h to skip its own
+definitions of struct open_how, RESOLVE_* constants and the openat2()
+wrapper, resulting in a build failure.
+
+Undef HAVE_OPENAT2 in lapi/openat2.h to force LTP to always use its
+own internal definitions.this is a workaround until the fix is found.
+
+Upstream-Status: Pending
+
+Signed-off-by: Hemanth Kumar M D <[email protected]>
+
+diff --git a/include/lapi/openat2.h b/include/lapi/openat2.h
+index 03327bdb7..bd44573c9 100644
+--- a/include/lapi/openat2.h
++++ b/include/lapi/openat2.h
+@@ -14,6 +14,11 @@
+
+ #include "config.h"
+
++/* glibc 2.43 provides openat2 but LTP uses its own syscall wrapper */
++#ifdef HAVE_OPENAT2
++#undef HAVE_OPENAT2
++#endif
++
+ #ifndef HAVE_OPENAT2
+ /*
+  * Arguments for how openat2(2) should open the target path. If only @flags 
and
+
diff --git a/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20260130.inc 
b/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20260130.inc
index 602f75ca..8786bb6d 100644
--- a/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20260130.inc
+++ b/meta-arago-test/recipes-devtools/ltp-ddt/ltp_20260130.inc
@@ -30,6 +30,7 @@ SRC_URI = 
"git://github.com/linux-test-project/ltp.git;branch=master;protocol=ht
            file://0001-Remove-OOM-tests-from-runtest-mm.patch \
            file://0001-Add-__clear_cache-declaration-for-clang.patch \
            
file://0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch \
+           file://0001-ltp-fix-build-failure-with-glibc-2.43.patch \
           "
 
 inherit autotools-brokensep pkgconfig
-- 
2.43.0



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17338): 
https://lists.yoctoproject.org/g/meta-arago/message/17338
Mute This Topic: https://lists.yoctoproject.org/mt/118302971/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to