Skip to contentSkip to conversation

flex: fix the deps for ptest builds

PATCH New Christopher Larson 1 participant 1 message Sep 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 flex: fix the deps for ptest builds

From: Christopher Larson <[email protected]>

Building the tests for flex requires flex-native and bison-native, but the attempt to add this dependency was done incorrectly. Use an inline python conditional based on PTEST_ENABLED instead.

---
 meta/recipes-devtools/flex/flex.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/flex/flex.inc +1 -1
index 54e4ec3..a4a26e2 100644
@@ -5,6 +5,7 @@ HOMEPAGE = "http://sourceforge.net/projects/flex/"
 
 SECTION = "devel"
 LICENSE = "BSD"
+DEPENDS += "${@'bison-native flex-native' if '${PTEST_ENABLED}' == '1' else ''}"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 \
            file://run-ptest \
@@ -28,7 +29,6 @@ do_install_append_class-nativesdk() {
 }
 
 RDEPENDS_${PN} += "m4"
-DEPENDS_${PN}-ptest += "bison-native flex-native"
 
 do_compile_ptest() {
 	for i in `find ${S}/tests/ -type d |grep -Ev "concatenated-options|reject|table-opts" | awk -F/ '{print $NF}'`; \
Signature · 1 line
1.8.3.4