diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-06-20 16:57:11 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-06-20 17:32:36 +0800 |
commit | a6d371267bf1cf586851d6b47db75aea9516dbb3 (patch) | |
tree | bd84654b2fec4b665a264db690565d2553eb2442 | |
parent | 614837afa1d92fcfef65135c18974165cfcd2612 (diff) | |
download | meta-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.patch | 27 | ||||
-rw-r--r-- | recipes-security/audit/audit_2.2.1.bb | 5 |
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 @@ | |||
1 | From cace630b0eb42418dea4f3d98c69d0d777bfc1be Mon Sep 17 00:00:00 2001 | ||
2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
3 | Date: Wed, 20 Jun 2012 16:34:19 +0800 | ||
4 | Subject: [PATCH] audit: python cross-compile | ||
5 | |||
6 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
7 | --- | ||
8 | configure.ac | 3 ++- | ||
9 | 1 files changed, 2 insertions(+), 1 deletions(-) | ||
10 | |||
11 | diff --git a/configure.ac b/configure.ac | ||
12 | index 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 | -- | ||
26 | 1.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 | ||
15 | SRC_URI += "file://2.2.1-audit-for-cross-compiling.patch file://sbin-in-usr.patch file://auditd" | 15 | SRC_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 | ||
17 | inherit autotools | 20 | inherit autotools |
18 | 21 | ||