All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/aubio: switch to external waf script
@ 2022-12-21 10:51 Romain Naour
  2022-12-28 10:03 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Romain Naour @ 2022-12-21 10:51 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour

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@smile.fr>
---
 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
-- 
2.34.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:[~2022-12-28 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-21 10:51 [Buildroot] [PATCH] package/aubio: switch to external waf script Romain Naour
2022-12-28 10:03 ` Thomas Petazzoni via buildroot

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.