diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-09-16 02:40:02 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-29 12:12:42 +0100 |
commit | a876a2bf78deb4607b3b59366bda6e35755ea868 (patch) | |
tree | 03e7419d4852185a24a359e15671cca883979ffa /meta | |
parent | f3e9be37e80b884ec142dc90e1984142a230c772 (diff) | |
download | poky-a876a2bf78deb4607b3b59366bda6e35755ea868.tar.gz |
coreutils: selinux/flask.h should respect to with_selinux
Fixed when build with meta-selinux even with --without-selinux:
runcon.c:49:28: fatal error: selinux/flask.h: No such file or directory
# include <selinux/flask.h>
^
compilation terminated.
(From OE-Core rev: d52a606c8a75496f3b7239adc19fdb66e3ae576a)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/coreutils/coreutils-8.22/fix-selinux-flask.patch | 39 | ||||
-rw-r--r-- | meta/recipes-core/coreutils/coreutils_8.22.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-core/coreutils/coreutils-8.22/fix-selinux-flask.patch b/meta/recipes-core/coreutils/coreutils-8.22/fix-selinux-flask.patch new file mode 100644 index 0000000000..9d1ae55d47 --- /dev/null +++ b/meta/recipes-core/coreutils/coreutils-8.22/fix-selinux-flask.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From a1d360509fa3a4aff57eedcd528cc0347a87531d Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Tue, 16 Sep 2014 01:59:08 -0700 | ||
4 | Subject: [PATCH] gnulib-comp.m4: selinux/flask.h should respect to | ||
5 | with_selinux | ||
6 | |||
7 | Fixed when build with meta-selinux even when --without-selinux: | ||
8 | runcon.c:49:28: fatal error: selinux/flask.h: No such file or directory | ||
9 | # include <selinux/flask.h> | ||
10 | ^ | ||
11 | compilation terminated. | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | |||
15 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
16 | --- | ||
17 | m4/gnulib-comp.m4 | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 | ||
21 | index 472d3a0..5f09734 100644 | ||
22 | --- a/m4/gnulib-comp.m4 | ||
23 | +++ b/m4/gnulib-comp.m4 | ||
24 | @@ -1730,11 +1730,11 @@ AC_DEFUN([gl_INIT], | ||
25 | AC_LIBOBJ([select]) | ||
26 | fi | ||
27 | gl_SYS_SELECT_MODULE_INDICATOR([select]) | ||
28 | - AC_CHECK_HEADERS([selinux/flask.h]) | ||
29 | AC_LIBOBJ([selinux-at]) | ||
30 | gl_HEADERS_SELINUX_SELINUX_H | ||
31 | gl_HEADERS_SELINUX_CONTEXT_H | ||
32 | if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then | ||
33 | + AC_CHECK_HEADERS([selinux/flask.h]) | ||
34 | AC_LIBOBJ([getfilecon]) | ||
35 | fi | ||
36 | gl_SERVENT | ||
37 | -- | ||
38 | 1.7.9.5 | ||
39 | |||
diff --git a/meta/recipes-core/coreutils/coreutils_8.22.bb b/meta/recipes-core/coreutils/coreutils_8.22.bb index 83f786129b..6239600c6d 100644 --- a/meta/recipes-core/coreutils/coreutils_8.22.bb +++ b/meta/recipes-core/coreutils/coreutils_8.22.bb | |||
@@ -16,6 +16,7 @@ SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \ | |||
16 | file://remove-usr-local-lib-from-m4.patch \ | 16 | file://remove-usr-local-lib-from-m4.patch \ |
17 | file://dummy_help2man.patch \ | 17 | file://dummy_help2man.patch \ |
18 | file://fix-for-dummy-man-usage.patch \ | 18 | file://fix-for-dummy-man-usage.patch \ |
19 | file://fix-selinux-flask.patch \ | ||
19 | " | 20 | " |
20 | 21 | ||
21 | SRC_URI[md5sum] = "8fb0ae2267aa6e728958adc38f8163a2" | 22 | SRC_URI[md5sum] = "8fb0ae2267aa6e728958adc38f8163a2" |