aubio: disable tests by patch
oe-core commit ccd1142d22b31ed85d8823b1bc9e11ccfd72b61f
'utils.py: add parallel make helpers'
changed the way one passes the parallel make argument to waf.
prevents:
| bb.data_smart.ExpansionError: Failure expanding variable
| do_compile, expression was
| ...aubio-0.4.6/waf build ${@get_waf_parallel_make(d)} --notests
| which triggered exception
| NameError: name 'get_waf_parallel_make' is not defined
Patching tests away keeps recipe compatible with different oe-core versions.
Thanks to Max Krummenacher for pull request pointing me to this issue [1].
[1] https://github.com/schnitzeltony/meta-qt5-extra/pull/40
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -13,22 +13,15 @@ DEPENDS += " \
|
||||
python3-numpy \
|
||||
"
|
||||
|
||||
SRC_URI = "https://aubio.org/pub/${BPN}-${PV}.tar.bz2"
|
||||
SRC_URI = " \
|
||||
https://aubio.org/pub/${BPN}-${PV}.tar.bz2 \
|
||||
file://0001-do-not-build-tests.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "78d326e5e44d19b0d21a5abf834bae20"
|
||||
SRC_URI[sha256sum] = "bdc73be1f007218d3ea6d2a503b38a217815a0e2ccc4ed441f6e850ed5d47cfb"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--notests \
|
||||
--prefix=${prefix} \
|
||||
--sysconfdir=${sysconfdir} \
|
||||
--libdir=${libdir} \
|
||||
"
|
||||
|
||||
do_compile() {
|
||||
${S}/waf build ${@get_waf_parallel_make(d)} --notests
|
||||
}
|
||||
|
||||
do_install() {
|
||||
${S}/waf install --destdir=${D} --notests
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
From e597c5c8636a269dbe5e664c706e66887479f161 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Mon, 26 Feb 2018 10:59:52 +0100
|
||||
Subject: [PATCH] do not build tests
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
wscript | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/wscript b/wscript
|
||||
index c40a864..0bc8238 100644
|
||||
--- a/wscript
|
||||
+++ b/wscript
|
||||
@@ -474,7 +474,6 @@ def build(bld):
|
||||
if bld.env['DEST_OS']=='emscripten' and not bld.options.testcmd:
|
||||
bld.options.testcmd = 'node %s'
|
||||
bld.recurse('examples')
|
||||
- bld.recurse('tests')
|
||||
|
||||
# pkg-config template
|
||||
bld( source = 'aubio.pc.in' )
|
||||
--
|
||||
2.14.3
|
||||
|
||||
Reference in New Issue
Block a user