meta-selinux: fix parsing error while selinux not configured

Submitted by zhanglin on July 9, 2019, 3:32 a.m. | Patch ID: 163034

Details

Message ID 1562643170-45518-1-git-send-email-zhang.lin16@zte.com.cn
State New
Headers show

Commit Message

zhanglin July 9, 2019, 3:32 a.m.
Following parsing error will occure while "selinux" not configured
in DISTRO_FEATURES:
ERROR: ParseError in /workspace/zhanglin/CGEL/CGEL6X.new2/CGEL/cge-
l6x_yocto/sources/meta-selinux/recipes-devtools/python/: not a Bit-
Bake file
to fix this, including a empty file: python_default.inc in python_-
%bbappend will work.

Signed-off-by: zhanglin <zhang.lin16@zte.com.cn>
---
 recipes-devtools/python/python_%.bbappend  | 2 +-
 recipes-devtools/python/python_default.inc | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 create mode 100644 recipes-devtools/python/python_default.inc

diff --git a/recipes-devtools/python/python_default.inc b/recipes-devtools/python/python_default.inc
new file mode 100644
index 0000000..e69de29

Patch hide | download patch | download mbox

diff --git a/recipes-devtools/python/python_%.bbappend b/recipes-devtools/python/python_%.bbappend
index 7719d3b..4e69c49 100644
--- a/recipes-devtools/python/python_%.bbappend
+++ b/recipes-devtools/python/python_%.bbappend
@@ -1 +1 @@ 
-require ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', '${BPN}_selinux.inc', '', d)}
+require ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', '${BPN}_selinux.inc', '${BPN}_default.inc', d)}