Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/5] package/pkg-waf.mk: drop bundled waf/waflib when external waf is used
@ 2023-02-08 18:19 Peter Korsgaard
  2023-02-08 18:19 ` [Buildroot] [PATCH 2/5] package/aubio: drop AUBIO_REMOVE_OLD_WAF hook Peter Korsgaard
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Peter Korsgaard @ 2023-02-08 18:19 UTC (permalink / raw)
  To: buildroot; +Cc: Yann E. MORIN

Waf requires that the version of the waf script matches the version of
waflib, so drop any bundled waf/waflib if _NEEDS_EXTERNAL_WAF is used, as
otherwise waf errors out with errors like:

Waf script '2.0.24' and library '1.9.3' do not match

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/pkg-waf.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/pkg-waf.mk b/package/pkg-waf.mk
index e090afa9e6..a067e69c9b 100644
--- a/package/pkg-waf.mk
+++ b/package/pkg-waf.mk
@@ -38,6 +38,13 @@ WAF_OPTS = $(if $(VERBOSE),-v) -j $(PARALLEL_JOBS)
 
 define inner-waf-package
 
+# The version of waflib has to match with the version of waf,
+# otherwise waf errors out with:
+# Waf script 'X' and library 'Y' do not match
+define WAF_PACKAGE_REMOVE_WAF_LIB
+	$(RM) -fr $(@D)/waf $(@D)/waflib
+endef
+
 # We need host-python3 to run waf
 $(2)_DEPENDENCIES += host-python3
 
@@ -47,6 +54,7 @@ $(2)_NEEDS_EXTERNAL_WAF ?= NO
 ifeq ($$($(2)_NEEDS_EXTERNAL_WAF),YES)
 $(2)_DEPENDENCIES += host-waf
 $(2)_WAF = $$(HOST_DIR)/bin/waf
+$(2)_PRE_CONFIGURE_HOOKS += WAF_PACKAGE_REMOVE_WAF_LIB
 else
 $(2)_WAF ?= ./waf
 endif
-- 
2.30.2

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

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

end of thread, other threads:[~2023-02-11 13:17 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 18:19 [Buildroot] [PATCH 1/5] package/pkg-waf.mk: drop bundled waf/waflib when external waf is used Peter Korsgaard
2023-02-08 18:19 ` [Buildroot] [PATCH 2/5] package/aubio: drop AUBIO_REMOVE_OLD_WAF hook Peter Korsgaard
2023-02-08 21:08   ` Romain Naour
2023-02-10 14:12     ` Peter Korsgaard
2023-02-10 14:11   ` Peter Korsgaard
2023-02-08 18:19 ` [Buildroot] [PATCH 3/5] package/glmark2: use external waf Peter Korsgaard
2023-02-10 14:11   ` Peter Korsgaard
2023-02-08 18:19 ` [Buildroot] [PATCH 4/5] package/jack2: fix build with python >= 3.11 Peter Korsgaard
2023-02-10 14:13   ` Peter Korsgaard
2023-02-08 18:19 ` [Buildroot] [PATCH 5/5] package/norm: use external waf Peter Korsgaard
2023-02-10 14:13   ` Peter Korsgaard
2023-02-08 19:24 ` [Buildroot] [PATCH 1/5] package/pkg-waf.mk: drop bundled waf/waflib when external waf is used Yann E. MORIN
2023-02-09  6:48   ` Peter Korsgaard
2023-02-10 14:09   ` Peter Korsgaard
2023-02-11  9:33   ` Romain Naour
2023-02-11 13:17     ` Peter Korsgaard
2023-02-08 21:05 ` Romain Naour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox