All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ltp-testsuite: kirk needs python3
@ 2026-01-14 19:24 Maxim Tarelov
  2026-01-16  6:35 ` Petr Vorel
  0 siblings, 1 reply; 2+ messages in thread
From: Maxim Tarelov @ 2026-01-14 19:24 UTC (permalink / raw)
  To: buildroot; +Cc: Petr Vorel, Maxim Tarelov

LTP project contains a number of scripts, such as kirk, which depend on
python3, but not all boards _defconfigs enable python3 by default.

To avoid errors like this:
 # /usr/lib/ltp-testsuite/kirk
 env: can't execute 'python3': No such file or directory

we must explicitly enable python3 when selecting LTP.

Signed-off-by: Maxim Tarelov <tarelovma@yandex.ru>
---
 package/ltp-testsuite/Config.in        | 1 +
 package/ltp-testsuite/ltp-testsuite.mk | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/package/ltp-testsuite/Config.in b/package/ltp-testsuite/Config.in
index 81dc9dffee..0ddc2fe02c 100644
--- a/package/ltp-testsuite/Config.in
+++ b/package/ltp-testsuite/Config.in
@@ -15,6 +15,7 @@ config BR2_PACKAGE_LTP_TESTSUITE
 	depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
 	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
+	select BR2_PACKAGE_PYTHON3
 	help
 	  The Linux Test Project provides a huge testsuite for Linux.
 
diff --git a/package/ltp-testsuite/ltp-testsuite.mk b/package/ltp-testsuite/ltp-testsuite.mk
index e4e3ff8717..c103ac9819 100644
--- a/package/ltp-testsuite/ltp-testsuite.mk
+++ b/package/ltp-testsuite/ltp-testsuite.mk
@@ -13,6 +13,8 @@ LTP_TESTSUITE_LICENSE_FILES = COPYING
 
 LTP_TESTSUITE_CONF_OPTS += --disable-metadata
 
+LTP_TESTSUITE_DEPENDENCIES += python3
+
 ifeq ($(BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX),y)
 LTP_TESTSUITE_CONF_OPTS += --with-open-posix-testsuite
 endif
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-16  6:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14 19:24 [Buildroot] [PATCH 1/1] package/ltp-testsuite: kirk needs python3 Maxim Tarelov
2026-01-16  6:35 ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.