diff options
author | Kai Kang <kai.kang@windriver.com> | 2016-06-01 16:35:43 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-06-06 02:44:44 -0400 |
commit | 06dccfa933d7ef60d2f6739f78e1197c7f8df5cd (patch) | |
tree | 7960a2f60fba27ecd767564fbc02b189af637137 /recipes-containers/criu/files/disable-selinux.patch | |
parent | 01aa8f18196d76d4554649c47348fb68277574c5 (diff) | |
download | meta-virtualization-06dccfa933d7ef60d2f6739f78e1197c7f8df5cd.tar.gz |
criu: fix build-deps qa warning
It shows warning when build crius if libselinux has been built already:
WARNING: QA Issue: criu rdepends on libselinux, but it isn't a build dependency? [build-deps]
Add a patch to disable selinux support when 'selinux' is not in PACKAGECONF.
And update indentation at same time.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/criu/files/disable-selinux.patch')
-rw-r--r-- | recipes-containers/criu/files/disable-selinux.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-containers/criu/files/disable-selinux.patch b/recipes-containers/criu/files/disable-selinux.patch new file mode 100644 index 00000000..da881dd3 --- /dev/null +++ b/recipes-containers/criu/files/disable-selinux.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Upstream-Status: Inappropriate [disable feature] | ||
2 | |||
3 | It shows warning when build crius if libselinux has been built already: | ||
4 | |||
5 | WARNING: QA Issue: criu rdepends on libselinux, but it isn't a build dependency? [build-deps] | ||
6 | |||
7 | Apply this patch to disable selinux support when 'selinux' is not in PACKAGECONF. | ||
8 | |||
9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
10 | |||
11 | diff --git a/Makefile.config b/Makefile.config | ||
12 | index ce4b8d8..3ac2780 100644 | ||
13 | --- a/Makefile.config | ||
14 | +++ b/Makefile.config | ||
15 | @@ -8,11 +8,6 @@ ifeq ($(call try-cc,$(LIBBSD_DEV_TEST),-lbsd),y) | ||
16 | DEFINES += -DCONFIG_HAS_LIBBSD | ||
17 | endif | ||
18 | |||
19 | -ifeq ($(call pkg-config-check,libselinux),y) | ||
20 | - LIBS := -lselinux $(LIBS) | ||
21 | - DEFINES += -DCONFIG_HAS_SELINUX | ||
22 | -endif | ||
23 | - | ||
24 | $(CONFIG): scripts/utilities.mak scripts/feature-tests.mak include/config-base.h | ||
25 | $(E) " GEN " $@ | ||
26 | $(Q) @echo '#ifndef __CR_CONFIG_H__' > $@ | ||