diff options
-rw-r--r-- | meta-oe/recipes-support/libcap-ng/libcap-ng/python.patch | 55 | ||||
-rw-r--r-- | meta-oe/recipes-support/libcap-ng/libcap-ng_0.7.7.bb (renamed from meta-oe/recipes-support/libcap-ng/libcap-ng_0.7.4.bb) | 8 |
2 files changed, 42 insertions, 21 deletions
diff --git a/meta-oe/recipes-support/libcap-ng/libcap-ng/python.patch b/meta-oe/recipes-support/libcap-ng/libcap-ng/python.patch index d82ceb454b..59591eb469 100644 --- a/meta-oe/recipes-support/libcap-ng/libcap-ng/python.patch +++ b/meta-oe/recipes-support/libcap-ng/libcap-ng/python.patch | |||
@@ -1,16 +1,44 @@ | |||
1 | configure.ac - Avoid an incorrect check for python. | 1 | From b01bb2694f66cd981e6d61523433dc3eb5ed32f2 Mon Sep 17 00:00:00 2001 |
2 | Makefile.am - avoid hard coded host include paths. | 2 | From: Li xin <lixin.fnst@cn.fujitsu.com> |
3 | Date: Sat, 18 Jul 2015 23:03:30 +0900 | ||
4 | Subject: [PATCH] configure.ac - Avoid an incorrect check for python. | ||
5 | Makefile.am - avoid hard coded host include paths. | ||
6 | |||
7 | Upstream-Status: pending | ||
3 | 8 | ||
4 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | 9 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
10 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
11 | --- | ||
12 | bindings/python/Makefile.am | 3 ++- | ||
13 | configure.ac | 15 ++------------- | ||
14 | 2 files changed, 4 insertions(+), 14 deletions(-) | ||
5 | 15 | ||
6 | --- libcap-ng-0.6.5/configure.ac.orig 2012-01-17 13:59:03.645898989 -0600 | 16 | diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am |
7 | +++ libcap-ng-0.6.5/configure.ac 2012-01-17 13:59:46.353959252 -0600 | 17 | index 82b9bb8..f9fe7a8 100644 |
8 | @@ -120,17 +120,8 @@ | 18 | --- a/bindings/python/Makefile.am |
19 | +++ b/bindings/python/Makefile.am | ||
20 | @@ -23,7 +23,8 @@ SUBDIRS = test | ||
21 | CONFIG_CLEAN_FILES = *.loT *.rej *.orig | ||
22 | AM_CFLAGS = -fPIC -DPIC | ||
23 | PYLIBVER ?= python$(PYTHON_VERSION) | ||
24 | -AM_CPPFLAGS = -I. -I$(top_builddir) -I@PYINCLUDEDIR@ | ||
25 | +PYINC ?= /usr/include/$(PYLIBVER) | ||
26 | +AM_CPPFLAGS = -I. -I$(top_builddir) -I$(PYINC) | ||
27 | LIBS = $(top_builddir)/src/libcap-ng.la | ||
28 | SWIG_FLAGS = -python | ||
29 | SWIG_INCLUDES = ${AM_CPPFLAGS} | ||
30 | diff --git a/configure.ac b/configure.ac | ||
31 | index 1d777d5..9d90f64 100644 | ||
32 | --- a/configure.ac | ||
33 | +++ b/configure.ac | ||
34 | @@ -123,19 +123,8 @@ if test x$use_python = xno ; then | ||
9 | else | 35 | else |
10 | AC_MSG_RESULT(testing) | 36 | AC_MSG_RESULT(testing) |
11 | AM_PATH_PYTHON | 37 | AM_PATH_PYTHON |
12 | -if test -f /usr/include/python${am_cv_python_version}/Python.h ; then | 38 | -PYINCLUDEDIR=`python${am_cv_python_version} -c "from distutils import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'))"` |
39 | -if test -f ${PYINCLUDEDIR}/Python.h ; then | ||
13 | - python_found="yes" | 40 | - python_found="yes" |
41 | - AC_SUBST(PYINCLUDEDIR) | ||
14 | - AC_MSG_NOTICE(Python bindings will be built) | 42 | - AC_MSG_NOTICE(Python bindings will be built) |
15 | -else | 43 | -else |
16 | - python_found="no" | 44 | - python_found="no" |
@@ -25,15 +53,6 @@ Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | |||
25 | fi | 53 | fi |
26 | AM_CONDITIONAL(HAVE_PYTHON, test ${python_found} = "yes") | 54 | AM_CONDITIONAL(HAVE_PYTHON, test ${python_found} = "yes") |
27 | 55 | ||
28 | --- libcap-ng-0.6.5/bindings/python/Makefile.am.orig 2010-11-03 12:31:59.000000000 -0500 | 56 | -- |
29 | +++ libcap-ng-0.6.5/bindings/python/Makefile.am 2012-01-17 14:05:50.199834467 -0600 | 57 | 1.8.4.2 |
30 | @@ -24,7 +24,8 @@ | 58 | |
31 | CONFIG_CLEAN_FILES = *.loT *.rej *.orig | ||
32 | AM_CFLAGS = -fPIC -DPIC | ||
33 | PYLIBVER ?= python$(PYTHON_VERSION) | ||
34 | -INCLUDES = -I. -I$(top_builddir) -I/usr/include/$(PYLIBVER) | ||
35 | +PYINC ?= /usr/include/$(PYLIBVER) | ||
36 | +INCLUDES = -I. -I$(top_builddir) -I$(PYINC) | ||
37 | LIBS = $(top_builddir)/src/libcap-ng.la | ||
38 | pyexec_PYTHON = capng.py | ||
39 | pyexec_LTLIBRARIES = _capng.la | ||
diff --git a/meta-oe/recipes-support/libcap-ng/libcap-ng_0.7.4.bb b/meta-oe/recipes-support/libcap-ng/libcap-ng_0.7.7.bb index 8823dad390..a31d5dc437 100644 --- a/meta-oe/recipes-support/libcap-ng/libcap-ng_0.7.4.bb +++ b/meta-oe/recipes-support/libcap-ng/libcap-ng_0.7.7.bb | |||
@@ -8,15 +8,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | |||
8 | file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" | 8 | file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" |
9 | 9 | ||
10 | SRC_URI = "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \ | 10 | SRC_URI = "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \ |
11 | file://python.patch" | 11 | file://python.patch" |
12 | 12 | ||
13 | inherit lib_package autotools pythonnative | 13 | inherit lib_package autotools pythonnative |
14 | 14 | ||
15 | SRC_URI[md5sum] = "55c57c0673b944ea1a755bcb2636dabd" | 15 | SRC_URI[md5sum] = "3d7d126b29e2869a0257c17c8b0d9b2e" |
16 | SRC_URI[sha256sum] = "48a2083276f9820cb92dcb05d001b30733bcbf48c14c230303cac3cd08b45b6b" | 16 | SRC_URI[sha256sum] = "615549ce39b333f6b78baee0c0b4ef18bc726c6bf1cca123dfd89dd963f6d06b" |
17 | 17 | ||
18 | DEPENDS += "swig-native python" | 18 | DEPENDS += "swig-native python" |
19 | 19 | ||
20 | EXTRA_OECONF += "--without-python3" | ||
21 | |||
20 | EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}' PYINC='${STAGING_INCDIR}/${PYLIBVER}'" | 22 | EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}' PYINC='${STAGING_INCDIR}/${PYLIBVER}'" |
21 | 23 | ||
22 | PACKAGES += "${PN}-python" | 24 | PACKAGES += "${PN}-python" |