aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/coreutils/coreutils-8.24/fix-selinux-flask.patch
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-07-07 10:56:39 +0800
committerChen Qi <Qi.Chen@windriver.com>2015-07-07 11:06:50 +0800
commit3db01c6686b85677a8256956c39eb1075a7009e1 (patch)
treee49844100cc10c064b7899fb59245817b7079cf4 /meta/recipes-core/coreutils/coreutils-8.24/fix-selinux-flask.patch
parentdd09fab685de2eaf04aa5ab60f8220b89c1deae9 (diff)
downloadopenembedded-core-contrib-ChenQi/coreutils-8.24.tar.gz
openembedded-core-contrib-ChenQi/coreutils-8.24.tar.bz2
openembedded-core-contrib-ChenQi/coreutils-8.24.zip
coreutils: upgrade to 8.24ChenQi/coreutils-8.24ChenQi/coreutils
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-core/coreutils/coreutils-8.24/fix-selinux-flask.patch')
-rw-r--r--meta/recipes-core/coreutils/coreutils-8.24/fix-selinux-flask.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-core/coreutils/coreutils-8.24/fix-selinux-flask.patch b/meta/recipes-core/coreutils/coreutils-8.24/fix-selinux-flask.patch
new file mode 100644
index 00000000000..9d1ae55d475
--- /dev/null
+++ b/meta/recipes-core/coreutils/coreutils-8.24/fix-selinux-flask.patch
@@ -0,0 +1,39 @@
+From a1d360509fa3a4aff57eedcd528cc0347a87531d Mon Sep 17 00:00:00 2001
+From: Robert Yang <liezhi.yang@windriver.com>
+Date: Tue, 16 Sep 2014 01:59:08 -0700
+Subject: [PATCH] gnulib-comp.m4: selinux/flask.h should respect to
+ with_selinux
+
+Fixed when build with meta-selinux even when --without-selinux:
+runcon.c:49:28: fatal error: selinux/flask.h: No such file or directory
+ # include <selinux/flask.h>
+ ^
+compilation terminated.
+
+Upstream-Status: Pending
+
+Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
+---
+ m4/gnulib-comp.m4 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4
+index 472d3a0..5f09734 100644
+--- a/m4/gnulib-comp.m4
++++ b/m4/gnulib-comp.m4
+@@ -1730,11 +1730,11 @@ AC_DEFUN([gl_INIT],
+ AC_LIBOBJ([select])
+ fi
+ gl_SYS_SELECT_MODULE_INDICATOR([select])
+- AC_CHECK_HEADERS([selinux/flask.h])
+ AC_LIBOBJ([selinux-at])
+ gl_HEADERS_SELINUX_SELINUX_H
+ gl_HEADERS_SELINUX_CONTEXT_H
+ if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
++ AC_CHECK_HEADERS([selinux/flask.h])
+ AC_LIBOBJ([getfilecon])
+ fi
+ gl_SERVENT
+--
+1.7.9.5
+