summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-06-20 16:57:11 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-06-20 17:32:36 +0800
commita6d371267bf1cf586851d6b47db75aea9516dbb3 (patch)
treebd84654b2fec4b665a264db690565d2553eb2442
parent614837afa1d92fcfef65135c18974165cfcd2612 (diff)
downloadmeta-selinux-a6d371267bf1cf586851d6b47db75aea9516dbb3.tar.gz
audit: fix python header path in configure.ac
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/audit/audit/audit-python-configure.patch27
-rw-r--r--recipes-security/audit/audit_2.2.1.bb5
2 files changed, 31 insertions, 1 deletions
diff --git a/recipes-security/audit/audit/audit-python-configure.patch b/recipes-security/audit/audit/audit-python-configure.patch
new file mode 100644
index 0000000..f90e213
--- /dev/null
+++ b/recipes-security/audit/audit/audit-python-configure.patch
@@ -0,0 +1,27 @@
1From cace630b0eb42418dea4f3d98c69d0d777bfc1be Mon Sep 17 00:00:00 2001
2From: Xin Ouyang <Xin.Ouyang@windriver.com>
3Date: Wed, 20 Jun 2012 16:34:19 +0800
4Subject: [PATCH] audit: python cross-compile
5
6Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
7---
8 configure.ac | 3 ++-
9 1 files changed, 2 insertions(+), 1 deletions(-)
10
11diff --git a/configure.ac b/configure.ac
12index 3db7d45..9a07db6 100644
13--- a/configure.ac
14+++ b/configure.ac
15@@ -90,7 +90,8 @@ if test x$use_python = xno ; then
16 else
17 AC_MSG_RESULT(testing)
18 AM_PATH_PYTHON
19-if test -f /usr/include/python${am_cv_python_version}/Python.h ; then
20+PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
21+if test -f $PY_PREFIX/include/python${am_cv_python_version}/Python.h ; then
22 python_found="yes"
23 AC_MSG_NOTICE(Python bindings will be built)
24 else
25--
261.7.7
27
diff --git a/recipes-security/audit/audit_2.2.1.bb b/recipes-security/audit/audit_2.2.1.bb
index 8fb9e03..48cc2ea 100644
--- a/recipes-security/audit/audit_2.2.1.bb
+++ b/recipes-security/audit/audit_2.2.1.bb
@@ -12,7 +12,10 @@ SRC_URI = "http://people.redhat.com/sgrubb/audit/audit-${PV}.tar.gz \
12 file://disable-ldap.patch \ 12 file://disable-ldap.patch \
13 file://audit-python.patch" 13 file://audit-python.patch"
14 14
15SRC_URI += "file://2.2.1-audit-for-cross-compiling.patch file://sbin-in-usr.patch file://auditd" 15SRC_URI += "file://2.2.1-audit-for-cross-compiling.patch \
16 file://audit-python-configure.patch \
17 file://sbin-in-usr.patch \
18 file://auditd"
16 19
17inherit autotools 20inherit autotools
18 21