From a6d371267bf1cf586851d6b47db75aea9516dbb3 Mon Sep 17 00:00:00 2001 From: Xin Ouyang Date: Wed, 20 Jun 2012 16:57:11 +0800 Subject: audit: fix python header path in configure.ac Signed-off-by: Xin Ouyang --- .../audit/audit/audit-python-configure.patch | 27 ++++++++++++++++++++++ recipes-security/audit/audit_2.2.1.bb | 5 +++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 recipes-security/audit/audit/audit-python-configure.patch 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 @@ +From cace630b0eb42418dea4f3d98c69d0d777bfc1be Mon Sep 17 00:00:00 2001 +From: Xin Ouyang +Date: Wed, 20 Jun 2012 16:34:19 +0800 +Subject: [PATCH] audit: python cross-compile + +Signed-off-by: Xin Ouyang +--- + configure.ac | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 3db7d45..9a07db6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -90,7 +90,8 @@ if test x$use_python = xno ; then + else + AC_MSG_RESULT(testing) + AM_PATH_PYTHON +-if test -f /usr/include/python${am_cv_python_version}/Python.h ; then ++PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'` ++if test -f $PY_PREFIX/include/python${am_cv_python_version}/Python.h ; then + python_found="yes" + AC_MSG_NOTICE(Python bindings will be built) + else +-- +1.7.7 + 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 \ file://disable-ldap.patch \ file://audit-python.patch" -SRC_URI += "file://2.2.1-audit-for-cross-compiling.patch file://sbin-in-usr.patch file://auditd" +SRC_URI += "file://2.2.1-audit-for-cross-compiling.patch \ + file://audit-python-configure.patch \ + file://sbin-in-usr.patch \ + file://auditd" inherit autotools -- cgit v1.2.3-54-g00ecf