diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2019-06-28 00:02:35 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-07-10 09:24:32 -0700 |
commit | 7db5a3051198380c76acdb6aad036e6ef1558212 (patch) | |
tree | bf2ca279cc8ef6505749ac730ac9b03c4283dc65 /meta-perl/recipes-perl | |
parent | 3e94dea2413b7ff2abca294ee19a384fbffbcc70 (diff) | |
download | meta-openembedded-7db5a3051198380c76acdb6aad036e6ef1558212.tar.gz |
libauthen-radius-perl: ptest requires meta-networking to be present
Since commit [d7ea637 recipes-devtools: Move back from
meta-networking to meta-perl] applied, but freeradius
locates in meta-networking
If meta-networking not present and ptest enable, skip it
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-perl/recipes-perl')
-rw-r--r-- | meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb b/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb index fb18fe2a4..7118dc006 100644 --- a/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb +++ b/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb | |||
@@ -34,6 +34,14 @@ RDEPENDS_${PN} += "\ | |||
34 | perl-module-io-select \ | 34 | perl-module-io-select \ |
35 | perl-module-io-socket \ | 35 | perl-module-io-socket \ |
36 | " | 36 | " |
37 | RDEPENDS_${PN}-ptest += "freeradius" | 37 | RDEPENDS_${PN}-ptest += " \ |
38 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'freeradius', '', d)} \ | ||
39 | " | ||
38 | 40 | ||
39 | BBCLASSEXTEND = "native" | 41 | BBCLASSEXTEND = "native" |
42 | |||
43 | python() { | ||
44 | if bb.utils.contains('PTEST_ENABLED', '1', 'True', 'False', d) and \ | ||
45 | 'networking-layer' not in d.getVar('BBFILE_COLLECTIONS').split(): | ||
46 | raise bb.parse.SkipRecipe('ptest requires meta-networking to be present.') | ||
47 | } | ||