summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-20 15:08:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-23 22:35:01 +0000
commitb567f5f59ec6b52b5aed5b6e74d10313e9c2ec2f (patch)
tree1ae060fbcb75b1ff8ca81849658edcae9865bf89 /meta/recipes-support
parente1767e1287ffcd207bb20b526d3673d0bde70e83 (diff)
downloadpoky-b567f5f59ec6b52b5aed5b6e74d10313e9c2ec2f.tar.gz
libcap-ng: Replace python patch with a better fix
By using the python3targetconfig class we can drop the existing python patch and the extra make parameters. (From OE-Core rev: 3bbebc39235f50af4d66e3284b67c1491d2c93f2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/libcap-ng/libcap-ng-python_0.8.2.bb3
-rw-r--r--meta/recipes-support/libcap-ng/libcap-ng.inc1
-rw-r--r--meta/recipes-support/libcap-ng/libcap-ng/python.patch58
3 files changed, 1 insertions, 61 deletions
diff --git a/meta/recipes-support/libcap-ng/libcap-ng-python_0.8.2.bb b/meta/recipes-support/libcap-ng/libcap-ng-python_0.8.2.bb
index 43f76dc561..6cea422d11 100644
--- a/meta/recipes-support/libcap-ng/libcap-ng-python_0.8.2.bb
+++ b/meta/recipes-support/libcap-ng/libcap-ng-python_0.8.2.bb
@@ -4,14 +4,13 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/libcap-ng:"
4 4
5SUMMARY .= " - python" 5SUMMARY .= " - python"
6 6
7inherit lib_package autotools python3native 7inherit lib_package autotools python3targetconfig
8 8
9DEPENDS += "libcap-ng python3 swig-native" 9DEPENDS += "libcap-ng python3 swig-native"
10 10
11S = "${WORKDIR}/libcap-ng-${PV}" 11S = "${WORKDIR}/libcap-ng-${PV}"
12 12
13EXTRA_OECONF += "--with-python --with-python3" 13EXTRA_OECONF += "--with-python --with-python3"
14EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' PYINC='${STAGING_INCDIR}/${PYLIBVER}'"
15 14
16do_install_append() { 15do_install_append() {
17 rm -rf ${D}${bindir} 16 rm -rf ${D}${bindir}
diff --git a/meta/recipes-support/libcap-ng/libcap-ng.inc b/meta/recipes-support/libcap-ng/libcap-ng.inc
index 016d8e5174..64bc62de24 100644
--- a/meta/recipes-support/libcap-ng/libcap-ng.inc
+++ b/meta/recipes-support/libcap-ng/libcap-ng.inc
@@ -9,7 +9,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
9 9
10SRC_URI = "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \ 10SRC_URI = "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \
11 file://determinism.patch \ 11 file://determinism.patch \
12 file://python.patch \
13" 12"
14 13
15SRC_URI[sha256sum] = "52c083b77c2b0d8449dee141f9c3eba76e6d4c5ad44ef05df25891126cb85ae9" 14SRC_URI[sha256sum] = "52c083b77c2b0d8449dee141f9c3eba76e6d4c5ad44ef05df25891126cb85ae9"
diff --git a/meta/recipes-support/libcap-ng/libcap-ng/python.patch b/meta/recipes-support/libcap-ng/libcap-ng/python.patch
deleted file mode 100644
index 8db03ca31f..0000000000
--- a/meta/recipes-support/libcap-ng/libcap-ng/python.patch
+++ /dev/null
@@ -1,58 +0,0 @@
1Subject: [PATCH] configure.ac - Avoid an incorrect check for python.
2 Makefile.am - avoid hard coded host include paths.
3
4Upstream-Status: pending
5
6Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
7Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
8Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
9Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
10
11---
12 bindings/python/Makefile.am | 4 +++-
13 configure.ac | 17 ++---------------
14 2 files changed, 5 insertions(+), 16 deletions(-)
15
16Index: libcap-ng-0.8.2/bindings/python/Makefile.am
17===================================================================
18--- libcap-ng-0.8.2.orig/bindings/python/Makefile.am
19+++ libcap-ng-0.8.2/bindings/python/Makefile.am
20@@ -23,7 +23,9 @@
21 SUBDIRS = test
22 CONFIG_CLEAN_FILES = *.loT *.rej *.orig
23 AM_CFLAGS = -fPIC -DPIC
24-AM_CPPFLAGS = -I. -I$(top_builddir) -I@PYINCLUDEDIR@
25+PYLIBVER ?= python$(PYTHON_VERSION)
26+PYINC ?= /usr/include/$(PYLIBVER)
27+AM_CPPFLAGS = -I. -I$(top_builddir) -I$(PYINC)
28 SWIG_FLAGS = -python
29 SWIG_INCLUDES = ${AM_CPPFLAGS}
30 pyexec_PYTHON = capng.py
31Index: libcap-ng-0.8.2/configure.ac
32===================================================================
33--- libcap-ng-0.8.2.orig/configure.ac
34+++ libcap-ng-0.8.2/configure.ac
35@@ -169,21 +169,8 @@ fi
36
37 # Setup Python2 with the interpreter found previously.
38 AM_PATH_PYTHON
39-PYINCLUDEDIR=`python${am_cv_python_version} -c "from distutils import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'))"`
40-if test -f ${PYINCLUDEDIR}/Python.h ; then
41- python_found="yes"
42- AC_SUBST(PYINCLUDEDIR)
43- pybind_dir="python"
44- AC_SUBST(pybind_dir)
45- AC_MSG_NOTICE(Python bindings will be built)
46-else
47- python_found="no"
48- if test "x$use_python" = xyes ; then
49- AC_MSG_ERROR([Python explicitly requested and python headers were not found])
50- else
51- AC_MSG_WARN("Python headers not found - python bindings will not be made")
52- fi
53-fi
54+python_found="yes"
55+AC_MSG_NOTICE(Python bindings will be built)
56 fi
57 AM_CONDITIONAL(HAVE_PYTHON, test ${python_found} = "yes")
58