From: Christopher Larson Date: Wed, 17 Sep 2014 01:22:02 +0000 (-0700) Subject: flex: fix the deps for ptest builds X-Git-Tag: rev_ivi_2015_02_04~6606 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf4fdad46261f8c36d12cd1d634e2fce605933bc;p=scm%2Fbb%2Ftizen-distro.git flex: fix the deps for ptest builds 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. (From OE-Core rev: fce2be6dcf8e7320b7b9df9947745e78fd160815) Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/flex/flex.inc b/meta/recipes-devtools/flex/flex.inc index 54e4ec3..a4a26e2 100644 --- a/meta/recipes-devtools/flex/flex.inc +++ b/meta/recipes-devtools/flex/flex.inc @@ -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}'`; \