Hi,
I just built Yocto (warrior) with meta-selinux and got this error:

> meson.build:1:0: ERROR:  Value disabled is not boolean (true or false).


It appears the file *classes/meson-enable-selinux.bbclass* has incorrect
values.

Attached a patch that fixes the problem.

Itay

[image: Argus Logo]
*Itay Sperling* *|* Software Engineer, *Argus **Cyber Security Ltd.*
itay.sperl...@argus-sec.com *|*
www.argus-sec.com *|*
From fb16c433ada55283f9259fe578a073dc5566bc77 Mon Sep 17 00:00:00 2001
From: Itay Sperling <itay.sperling@argus-sec.com>
Date: Tue, 15 Oct 2019 16:27:21 +0300
Subject: meson values 'disabled' and 'enabled' are not valid.

ERROR:  Value disabled is not boolean (true or false).
---
 classes/meson-enable-selinux.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/meson-enable-selinux.bbclass b/classes/meson-enable-selinux.bbclass
index 91c2a2b..77a763a 100644
--- a/classes/meson-enable-selinux.bbclass
+++ b/classes/meson-enable-selinux.bbclass
@@ -1,4 +1,4 @@
 inherit selinux
 
 PACKAGECONFIG_append = " ${@target_selinux(d)}"
-PACKAGECONFIG[selinux] = "-Dselinux=enabled,-Dselinux=disabled,libselinux,"
+PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux,"
-- 
2.17.1

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to