diff options
Diffstat (limited to 'meta-openembedded/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb')
-rw-r--r-- | meta-openembedded/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta-openembedded/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb b/meta-openembedded/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb index fb18fe2a46..7118dc0064 100644 --- a/meta-openembedded/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb +++ b/meta-openembedded/meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb @@ -34,6 +34,14 @@ RDEPENDS_${PN} += "\ perl-module-io-select \ perl-module-io-socket \ " -RDEPENDS_${PN}-ptest += "freeradius" +RDEPENDS_${PN}-ptest += " \ + ${@bb.utils.contains('PTEST_ENABLED', '1', 'freeradius', '', d)} \ +" BBCLASSEXTEND = "native" + +python() { + if bb.utils.contains('PTEST_ENABLED', '1', 'True', 'False', d) and \ + 'networking-layer' not in d.getVar('BBFILE_COLLECTIONS').split(): + raise bb.parse.SkipRecipe('ptest requires meta-networking to be present.') +} |