diff options
author | Ross Burton <ross.burton@arm.com> | 2024-07-23 17:03:46 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-26 12:28:42 +0100 |
commit | 402e36fc2ddfd3508cc7abda47cad51b23f2c442 (patch) | |
tree | 5594a61172a29ee87eca948c60cfe6ed34462027 | |
parent | 50e95b7138b17f7bb5b7a21e800fd193d56b3434 (diff) | |
download | poky-402e36fc2ddfd3508cc7abda47cad51b23f2c442.tar.gz |
libcap-ng: clean up recipe
This package is split into two recipes, one of the actual C library and
one for the Python bindings.
- Move common inherits into the common .inc.
- Clean up install in the python recipe
- Remove obsolete setuptools dependency
- Remove obsolete explicit .debug packaging
- Update homepage as freecode.com redirects to the top of SourceForge
(From OE-Core rev: 0ccd7429aabfe5c1c9246477acf1af84a147715c)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng-python_0.8.5.bb | 18 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng.inc | 4 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng_0.8.5.bb | 2 |
3 files changed, 7 insertions, 17 deletions
diff --git a/meta/recipes-support/libcap-ng/libcap-ng-python_0.8.5.bb b/meta/recipes-support/libcap-ng/libcap-ng-python_0.8.5.bb index 4790134ae9..f8a6b2c317 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng-python_0.8.5.bb +++ b/meta/recipes-support/libcap-ng/libcap-ng-python_0.8.5.bb | |||
@@ -4,26 +4,16 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/libcap-ng:" | |||
4 | 4 | ||
5 | SUMMARY .= " - python" | 5 | SUMMARY .= " - python" |
6 | 6 | ||
7 | inherit lib_package autotools python3targetconfig | 7 | inherit python3targetconfig |
8 | 8 | ||
9 | # drop setuptools when version > 0.8.3 is released; it's needed only for distutils | 9 | DEPENDS += "libcap-ng python3 swig-native" |
10 | DEPENDS += "libcap-ng python3 swig-native python3-setuptools-native" | ||
11 | 10 | ||
12 | S = "${WORKDIR}/libcap-ng-${PV}" | 11 | S = "${WORKDIR}/libcap-ng-${PV}" |
13 | 12 | ||
14 | EXTRA_OECONF += "--with-python3" | 13 | EXTRA_OECONF += "--with-python3" |
15 | 14 | ||
16 | do_install:append() { | 15 | do_install() { |
17 | rm -rf ${D}${bindir} | 16 | oe_runmake 'DESTDIR=${D}' install -C ${B}/bindings/python3 |
18 | rm -rf ${D}${libdir}/.debug | ||
19 | rm -f ${D}${libdir}/lib* | ||
20 | rm -rf ${D}${libdir}/pkgconfig | ||
21 | rm -rf ${D}${datadir} | ||
22 | rm -rf ${D}${includedir} | ||
23 | } | 17 | } |
24 | 18 | ||
25 | # PACKAGES = "${PN}" | ||
26 | |||
27 | FILES:${PN} = "${libdir}/python${PYTHON_BASEVERSION}" | 19 | FILES:${PN} = "${libdir}/python${PYTHON_BASEVERSION}" |
28 | FILES:${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so" | ||
29 | |||
diff --git a/meta/recipes-support/libcap-ng/libcap-ng.inc b/meta/recipes-support/libcap-ng/libcap-ng.inc index 12b4002d11..85b51c4dc6 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng.inc +++ b/meta/recipes-support/libcap-ng/libcap-ng.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | SUMMARY = "An alternate posix capabilities library" | 1 | SUMMARY = "An alternate posix capabilities library" |
2 | DESCRIPTION = "The libcap-ng library is intended to make programming \ | 2 | DESCRIPTION = "The libcap-ng library is intended to make programming \ |
3 | with POSIX capabilities much easier than the traditional libcap library." | 3 | with POSIX capabilities much easier than the traditional libcap library." |
4 | HOMEPAGE = "http://freecode.com/projects/libcap-ng" | 4 | HOMEPAGE = "https://github.com/stevegrubb/libcap-ng" |
5 | SECTION = "base" | 5 | SECTION = "base" |
6 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" | 6 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
@@ -13,6 +13,8 @@ SRC_URI = "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \ | |||
13 | 13 | ||
14 | SRC_URI[sha256sum] = "3ba5294d1cbdfa98afaacfbc00b6af9ed2b83e8a21817185dfd844cc8c7ac6ff" | 14 | SRC_URI[sha256sum] = "3ba5294d1cbdfa98afaacfbc00b6af9ed2b83e8a21817185dfd844cc8c7ac6ff" |
15 | 15 | ||
16 | inherit lib_package autotools | ||
17 | |||
16 | EXTRA_OECONF:append:class-target = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h" | 18 | EXTRA_OECONF:append:class-target = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h" |
17 | EXTRA_OECONF:append:class-nativesdk = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h" | 19 | EXTRA_OECONF:append:class-nativesdk = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h" |
18 | 20 | ||
diff --git a/meta/recipes-support/libcap-ng/libcap-ng_0.8.5.bb b/meta/recipes-support/libcap-ng/libcap-ng_0.8.5.bb index 3dbe3e2ffd..b482368a41 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng_0.8.5.bb +++ b/meta/recipes-support/libcap-ng/libcap-ng_0.8.5.bb | |||
@@ -1,7 +1,5 @@ | |||
1 | require libcap-ng.inc | 1 | require libcap-ng.inc |
2 | 2 | ||
3 | inherit lib_package autotools | ||
4 | |||
5 | EXTRA_OECONF += "--without-python3" | 3 | EXTRA_OECONF += "--without-python3" |
6 | 4 | ||
7 | BBCLASSEXTEND = "native nativesdk" | 5 | BBCLASSEXTEND = "native nativesdk" |