[Buildroot] [PATCH v2 1/2] Makefile: add libexec to BR_PATH

Quentin Schulz foss+buildroot at 0leil.net
Tue Apr 15 09:57:28 UTC 2025


From: Quentin Schulz <quentin.schulz at cherry.de>

Meson qt6 module is looking for uic, moc and other host tools that are
now installed in /libexec since Qt 6.1.[1]

Since the libexec directory can contain executables, it seemingly makes
sense to add that path to the BR_PATH environment variable so that Qt6
applications built with meson can find uic, moc, rcc, etc... in the
Buildroot host tools.

Another attempt[2] was made to make Meson look into the Buildroot host
directory but maybe it does make more sense to have libexec part of
BR_PATH anyway. Both solutions to the issue aren't exclusive though.

[1] https://github.com/mesonbuild/meson/issues/9791
[2] https://github.com/mesonbuild/meson/pull/14381

Suggested-by: Peter Seiderer <ps.report at gmx.net>
Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 5bf5abfe3badbd460392582425bbb49ab1a4e7b1..8787a9065fcaae126ed46c434f7ed7988d99bb16 100644
--- a/Makefile
+++ b/Makefile
@@ -468,7 +468,7 @@ $(STAGING_DIR_SYMLINK): | $(BASE_DIR)
 	ln -snf $(STAGING_DIR) $(STAGING_DIR_SYMLINK)
 
 # Quotes are needed for spaces and all in the original PATH content.
-BR_PATH = "$(HOST_DIR)/bin:$(HOST_DIR)/sbin:$(PATH)"
+BR_PATH = "$(HOST_DIR)/libexec:$(HOST_DIR)/bin:$(HOST_DIR)/sbin:$(PATH)"
 
 # Location of a file giving a big fat warning that output/target
 # should not be used as the root filesystem.

-- 
2.49.0



More information about the buildroot mailing list