diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-04-27 10:40:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-28 11:51:42 +0100 |
commit | 0284c59c41053de2ebca1c1de9ea6f1a2767115f (patch) | |
tree | cf74e8720e2cb8dadaef518797441a7c916bca28 /meta/recipes-support/libcap-ng | |
parent | d88d5c978d5b0d293dd879ee59a17524c68f5966 (diff) | |
download | poky-0284c59c41053de2ebca1c1de9ea6f1a2767115f.tar.gz |
libcap-ng: update 0.8.2 -> 0.8.3
Remove upstreamed patch.
(From OE-Core rev: c96a3f3269ecadbb88011acca61902bbdc76522b)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libcap-ng')
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng-python_0.8.3.bb (renamed from meta/recipes-support/libcap-ng/libcap-ng-python_0.8.2.bb) | 0 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng.inc | 6 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng/determinism.patch | 59 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng_0.8.3.bb (renamed from meta/recipes-support/libcap-ng/libcap-ng_0.8.2.bb) | 0 |
4 files changed, 2 insertions, 63 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.3.bb index 1240589d00..1240589d00 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.3.bb | |||
diff --git a/meta/recipes-support/libcap-ng/libcap-ng.inc b/meta/recipes-support/libcap-ng/libcap-ng.inc index 57fcd50d9f..55e3287396 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng.inc +++ b/meta/recipes-support/libcap-ng/libcap-ng.inc | |||
@@ -7,11 +7,9 @@ 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 \ |
8 | file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" | 8 | file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" |
9 | 9 | ||
10 | SRC_URI = "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \ | 10 | SRC_URI = "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz" |
11 | file://determinism.patch \ | ||
12 | " | ||
13 | 11 | ||
14 | SRC_URI[sha256sum] = "52c083b77c2b0d8449dee141f9c3eba76e6d4c5ad44ef05df25891126cb85ae9" | 12 | SRC_URI[sha256sum] = "bed6f6848e22bb2f83b5f764b2aef0ed393054e803a8e3a8711cb2a39e6b492d" |
15 | 13 | ||
16 | EXTRA_OECONF:append:class-target = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h" | 14 | 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" | 15 | EXTRA_OECONF:append:class-nativesdk = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h" |
diff --git a/meta/recipes-support/libcap-ng/libcap-ng/determinism.patch b/meta/recipes-support/libcap-ng/libcap-ng/determinism.patch deleted file mode 100644 index fbb7380f56..0000000000 --- a/meta/recipes-support/libcap-ng/libcap-ng/determinism.patch +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | [PATCH] bindings/python: Allow hardcoded path to capability.h to be overridden | ||
2 | |||
3 | Currently the path to capability.h is hardcoded. When cross compiling | ||
4 | the host capabiity.h may be different to the target copy, leading | ||
5 | to different options being encoded in the python bindings than | ||
6 | expected. This causes a reproducibility issue amongst other potential | ||
7 | problems. | ||
8 | |||
9 | Add a configure option to optionally specify the right path to the | ||
10 | correct header as its probably safer/more reliable than trying to | ||
11 | query the compiler to get the header path. | ||
12 | |||
13 | Signed-off-by: Richard Purdie richard.purdie@linuxfoundation.org | ||
14 | Upstream-Status: Submitted [https://github.com/stevegrubb/libcap-ng/pull/30] | ||
15 | |||
16 | Index: libcap-ng-0.8.2/configure.ac | ||
17 | =================================================================== | ||
18 | --- libcap-ng-0.8.2.orig/configure.ac | ||
19 | +++ libcap-ng-0.8.2/configure.ac | ||
20 | @@ -63,6 +63,13 @@ AC_CHECK_HEADERS(sys/vfs.h, [ | ||
21 | AC_CHECK_HEADERS(linux/magic.h, [] [AC_MSG_WARN(linux/magic.h is required in order to verify procfs.)]) | ||
22 | ], [AC_MSG_WARN(sys/vfs.h is required in order to verify procfs.)]) | ||
23 | |||
24 | + | ||
25 | +AC_ARG_WITH([capability_header], | ||
26 | + [AS_HELP_STRING([--with-capability_header=path : path to cpapbility.h])], | ||
27 | + [CAPABILITY_HEADER=$withval], | ||
28 | + [CAPABILITY_HEADER=/usr/include/linux/capability.h]) | ||
29 | +AC_SUBST(CAPABILITY_HEADER) | ||
30 | + | ||
31 | AC_C_CONST | ||
32 | AC_C_INLINE | ||
33 | AM_PROG_CC_C_O | ||
34 | Index: libcap-ng-0.8.2/bindings/python3/Makefile.am | ||
35 | =================================================================== | ||
36 | --- libcap-ng-0.8.2.orig/bindings/python3/Makefile.am | ||
37 | +++ libcap-ng-0.8.2/bindings/python3/Makefile.am | ||
38 | @@ -41,7 +41,7 @@ nodist__capng_la_SOURCES = capng_wrap.c | ||
39 | capng.py capng_wrap.c: ${srcdir}/../src/capng_swig.i caps.h capng.h | ||
40 | swig -o capng_wrap.c ${SWIG_FLAGS} ${SWIG_INCLUDES} ${srcdir}/../src/capng_swig.i | ||
41 | caps.h: | ||
42 | - cat /usr/include/linux/capability.h | grep '^#define CAP' | grep -v '[()]' > caps.h | ||
43 | + cat $(CAPABILITY_HEADER) | grep '^#define CAP' | grep -v '[()]' > caps.h | ||
44 | capng.h: | ||
45 | cat ${top_srcdir}/src/cap-ng.h | grep -v '_state' > capng.h | ||
46 | |||
47 | Index: libcap-ng-0.8.2/bindings/python/Makefile.am | ||
48 | =================================================================== | ||
49 | --- libcap-ng-0.8.2.orig/bindings/python/Makefile.am | ||
50 | +++ libcap-ng-0.8.2/bindings/python/Makefile.am | ||
51 | @@ -38,7 +38,7 @@ nodist__capng_la_SOURCES = capng_wrap.c | ||
52 | capng.py capng_wrap.c: ${srcdir}/../src/capng_swig.i caps.h capng.h | ||
53 | swig -o capng_wrap.c ${SWIG_FLAGS} ${SWIG_INCLUDES} ${srcdir}/../src/capng_swig.i | ||
54 | caps.h: | ||
55 | - cat /usr/include/linux/capability.h | grep '^#define CAP' | grep -v '[()]' > caps.h | ||
56 | + cat $(CAPABILITY_HEADER) | grep '^#define CAP' | grep -v '[()]' > caps.h | ||
57 | capng.h: | ||
58 | cat ${top_srcdir}/src/cap-ng.h | grep -v '_state' > capng.h | ||
59 | |||
diff --git a/meta/recipes-support/libcap-ng/libcap-ng_0.8.2.bb b/meta/recipes-support/libcap-ng/libcap-ng_0.8.3.bb index 6e16e886b9..6e16e886b9 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng_0.8.2.bb +++ b/meta/recipes-support/libcap-ng/libcap-ng_0.8.3.bb | |||