[Buildroot] [git commit] package/aubio: switch to external waf script

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Dec 28 10:01:03 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=6264dfae49af69d7358f2d6fef21bd720e62440f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Since the python 3.11 version bump [1], the waf script
bundled in aubio 0.4.9 can't be executed anymore due
to a waf bug [2].

Use the waf script provided by the Buildroot waf package
infrastructure after removing the old waf script and its
libraries.

Fixes:
http://autobuild.buildroot.org/results/e2b/e2be18415ca794c68e708f2fdfd0a1a1ff5be714

[1] 738500c296c8b1206f20e94ca3e7c5932a6a0486
[2] https://gitlab.com/ita1024/waf/-/commit/68997828c850ce7fb30b73b4adfde35053e539d1

Signed-off-by: Romain Naour <romain.naour at smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/aubio/aubio.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/package/aubio/aubio.mk b/package/aubio/aubio.mk
index b2eb2b5e6d..c995fdfac7 100644
--- a/package/aubio/aubio.mk
+++ b/package/aubio/aubio.mk
@@ -16,6 +16,17 @@ AUBIO_CONF_OPTS = \
 	--disable-docs \
 	--disable-atlas
 
+# The waf script bundled in aubio 0.4.9 is too old for python3.11
+# Similar issue with Jack:
+# https://github.com/jackaudio/jack2/issues/898
+AUBIO_NEEDS_EXTERNAL_WAF = YES
+
+# The old waf script bundled in aubio 0.4.9 need to be removed first.
+define AUBIO_REMOVE_OLD_WAF
+	$(RM) -fr $(@D)/waf $(@D)/waflib
+endef
+AUBIO_POST_EXTRACT_HOOKS = AUBIO_REMOVE_OLD_WAF
+
 # Add --notests for each build step to avoid running unit tests on the
 # build machine.
 AUBIO_WAF_OPTS = --notests



More information about the buildroot mailing list