diff options
author | zangrc <zangrc.fnst@cn.fujitsu.com> | 2020-08-27 21:16:23 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-27 21:41:57 +0100 |
commit | b2ad2a7a7d445aa3e37eed5e640ce2a865299104 (patch) | |
tree | 413a4f1d02e0785f486714dcf725ee7c4b23196d /meta/recipes-support/libcap-ng | |
parent | 426d5aa8d9856d4a75f018e67a46630fd8285a7b (diff) | |
download | poky-b2ad2a7a7d445aa3e37eed5e640ce2a865299104.tar.gz |
libcap-ng:upgrade 0.7.10 -> 0.7.11
0001-configure.ac-add-library-if-header-found.patch
0002-Wrap-pthread_atfork-usage-in-HAVE_PTHREAD_H.patch
Removed since these are included in 0.7.11
Refresh the following patch:
python.patch
(From OE-Core rev: e883035f13ee86a63eaffe5ac55bf2ce20c5ba10)
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
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.7.11.bb (renamed from meta/recipes-support/libcap-ng/libcap-ng-python_0.7.10.bb) | 0 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng.inc | 6 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng/0001-configure.ac-add-library-if-header-found.patch | 31 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng/0002-Wrap-pthread_atfork-usage-in-HAVE_PTHREAD_H.patch | 25 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng/python.patch | 18 | ||||
-rw-r--r-- | meta/recipes-support/libcap-ng/libcap-ng_0.7.11.bb (renamed from meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb) | 0 |
6 files changed, 10 insertions, 70 deletions
diff --git a/meta/recipes-support/libcap-ng/libcap-ng-python_0.7.10.bb b/meta/recipes-support/libcap-ng/libcap-ng-python_0.7.11.bb index 43f76dc561..43f76dc561 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng-python_0.7.10.bb +++ b/meta/recipes-support/libcap-ng/libcap-ng-python_0.7.11.bb | |||
diff --git a/meta/recipes-support/libcap-ng/libcap-ng.inc b/meta/recipes-support/libcap-ng/libcap-ng.inc index 002915ad48..6d6fa644aa 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng.inc +++ b/meta/recipes-support/libcap-ng/libcap-ng.inc | |||
@@ -9,11 +9,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | |||
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 | file://0001-configure.ac-add-library-if-header-found.patch \ | ||
13 | file://0002-Wrap-pthread_atfork-usage-in-HAVE_PTHREAD_H.patch \ | ||
14 | " | 12 | " |
15 | 13 | ||
16 | SRC_URI[md5sum] = "57dc267e2949cdecb651a929f9206572" | 14 | SRC_URI[md5sum] = "5883ed10b621c87e29a05cff36d2928e" |
17 | SRC_URI[sha256sum] = "a84ca7b4e0444283ed269b7a29f5b6187f647c82e2b876636b49b9a744f0ffbf" | 15 | SRC_URI[sha256sum] = "85815c711862d01a440db471f12fba462c9949e923966f5859607e652d9c0ae9" |
18 | 16 | ||
19 | BBCLASSEXTEND = "native nativesdk" | 17 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-support/libcap-ng/libcap-ng/0001-configure.ac-add-library-if-header-found.patch b/meta/recipes-support/libcap-ng/libcap-ng/0001-configure.ac-add-library-if-header-found.patch deleted file mode 100644 index 6b155ccea8..0000000000 --- a/meta/recipes-support/libcap-ng/libcap-ng/0001-configure.ac-add-library-if-header-found.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 0230e2e374bb71aed0181ccd9ebd13c0c5125a5d Mon Sep 17 00:00:00 2001 | ||
2 | From: Trevor Woerner <twoerner@gmail.com> | ||
3 | Date: Fri, 25 Oct 2019 17:01:20 -0400 | ||
4 | Subject: [PATCH] configure.ac: add library if header found | ||
5 | |||
6 | If the pthread.h header is found, make sure library containing | ||
7 | "pthread_atfork" is added to the list of libraries against which to link. | ||
8 | On some hosts (e.g. openSUSE 15.1) "-lpthread" needs to be explicitly added | ||
9 | in order for the code to compile correctly. | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/stevegrubb/libcap-ng/pull/10] | ||
12 | Signed-off-by: Trevor Woerner <twoerner@gmail.com> | ||
13 | --- | ||
14 | configure.ac | 4 +++- | ||
15 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/configure.ac b/configure.ac | ||
18 | index 63088f4..639b464 100644 | ||
19 | --- a/configure.ac | ||
20 | +++ b/configure.ac | ||
21 | @@ -56,7 +56,9 @@ AC_CHECK_HEADERS(sys/xattr.h, [], [ | ||
22 | AC_CHECK_HEADERS(attr/xattr.h, [], [AC_MSG_WARN(attr/xattr.h not found, disabling file system capabilities.)]) | ||
23 | ]) | ||
24 | AC_CHECK_HEADERS(linux/securebits.h, [], []) | ||
25 | -AC_CHECK_HEADERS(pthread.h, [], [AC_MSG_WARN(pthread.h not found, disabling pthread_atfork.)]) | ||
26 | +AC_CHECK_HEADERS(pthread.h, | ||
27 | + [AC_SEARCH_LIBS(pthread_atfork, pthread)], | ||
28 | + [AC_MSG_WARN(pthread.h not found, disabling pthread_atfork.)]) | ||
29 | |||
30 | AC_C_CONST | ||
31 | AC_C_INLINE | ||
diff --git a/meta/recipes-support/libcap-ng/libcap-ng/0002-Wrap-pthread_atfork-usage-in-HAVE_PTHREAD_H.patch b/meta/recipes-support/libcap-ng/libcap-ng/0002-Wrap-pthread_atfork-usage-in-HAVE_PTHREAD_H.patch deleted file mode 100644 index c68254ff3d..0000000000 --- a/meta/recipes-support/libcap-ng/libcap-ng/0002-Wrap-pthread_atfork-usage-in-HAVE_PTHREAD_H.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | From d95c4018ad57c37f6272dbedfa5217776567c329 Mon Sep 17 00:00:00 2001 | ||
2 | From: Christopher Larson <chris_larson@mentor.com> | ||
3 | Date: Tue, 26 Nov 2019 22:34:34 +0500 | ||
4 | Subject: [PATCH] Wrap pthread_atfork usage in HAVE_PTHREAD_H | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | ||
8 | --- | ||
9 | src/cap-ng.c | 2 ++ | ||
10 | 1 file changed, 2 insertions(+) | ||
11 | |||
12 | diff --git a/src/cap-ng.c b/src/cap-ng.c | ||
13 | index 35fcd7a..97a3dbd 100644 | ||
14 | --- a/src/cap-ng.c | ||
15 | +++ b/src/cap-ng.c | ||
16 | @@ -166,7 +166,9 @@ static void deinit(void) | ||
17 | static void init_lib(void) __attribute__ ((constructor)); | ||
18 | static void init_lib(void) | ||
19 | { | ||
20 | +#ifdef HAVE_PTHREAD_H | ||
21 | pthread_atfork(NULL, NULL, deinit); | ||
22 | +#endif | ||
23 | } | ||
24 | |||
25 | static void init(void) | ||
diff --git a/meta/recipes-support/libcap-ng/libcap-ng/python.patch b/meta/recipes-support/libcap-ng/libcap-ng/python.patch index d60a0a39b6..fcd6f9cd33 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng/python.patch +++ b/meta/recipes-support/libcap-ng/libcap-ng/python.patch | |||
@@ -1,6 +1,3 @@ | |||
1 | From b4a354ae8d4f7c2ec3ec421c7d8a790cc57e77a9 Mon Sep 17 00:00:00 2001 | ||
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. | 1 | Subject: [PATCH] configure.ac - Avoid an incorrect check for python. |
5 | Makefile.am - avoid hard coded host include paths. | 2 | Makefile.am - avoid hard coded host include paths. |
6 | 3 | ||
@@ -9,6 +6,8 @@ Upstream-Status: pending | |||
9 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | 6 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
10 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | 7 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> |
11 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | 8 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
9 | Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | ||
10 | |||
12 | --- | 11 | --- |
13 | bindings/python/Makefile.am | 4 +++- | 12 | bindings/python/Makefile.am | 4 +++- |
14 | configure.ac | 17 ++--------------- | 13 | configure.ac | 17 ++--------------- |
@@ -30,12 +29,12 @@ index 999b184..c8e49db 100644 | |||
30 | SWIG_INCLUDES = ${AM_CPPFLAGS} | 29 | SWIG_INCLUDES = ${AM_CPPFLAGS} |
31 | pyexec_PYTHON = capng.py | 30 | pyexec_PYTHON = capng.py |
32 | diff --git a/configure.ac b/configure.ac | 31 | diff --git a/configure.ac b/configure.ac |
33 | index 7f66179..079d026 100644 | 32 | index 8b46f51..2d7e00c 100644 |
34 | --- a/configure.ac | 33 | --- a/configure.ac |
35 | +++ b/configure.ac | 34 | +++ b/configure.ac |
36 | @@ -123,21 +123,8 @@ if test x$use_python = xno ; then | 35 | @@ -141,21 +141,8 @@ fi |
37 | else | 36 | |
38 | AC_MSG_RESULT(testing) | 37 | # Setup Python2 with the interpreter found previously. |
39 | AM_PATH_PYTHON | 38 | AM_PATH_PYTHON |
40 | -PYINCLUDEDIR=`python${am_cv_python_version} -c "from distutils import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'))"` | 39 | -PYINCLUDEDIR=`python${am_cv_python_version} -c "from distutils import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'))"` |
41 | -if test -f ${PYINCLUDEDIR}/Python.h ; then | 40 | -if test -f ${PYINCLUDEDIR}/Python.h ; then |
@@ -46,7 +45,7 @@ index 7f66179..079d026 100644 | |||
46 | - AC_MSG_NOTICE(Python bindings will be built) | 45 | - AC_MSG_NOTICE(Python bindings will be built) |
47 | -else | 46 | -else |
48 | - python_found="no" | 47 | - python_found="no" |
49 | - if test x$use_python = xyes ; then | 48 | - if test "x$use_python" = xyes ; then |
50 | - AC_MSG_ERROR([Python explicitly requested and python headers were not found]) | 49 | - AC_MSG_ERROR([Python explicitly requested and python headers were not found]) |
51 | - else | 50 | - else |
52 | - AC_MSG_WARN("Python headers not found - python bindings will not be made") | 51 | - AC_MSG_WARN("Python headers not found - python bindings will not be made") |
@@ -58,5 +57,4 @@ index 7f66179..079d026 100644 | |||
58 | AM_CONDITIONAL(HAVE_PYTHON, test ${python_found} = "yes") | 57 | AM_CONDITIONAL(HAVE_PYTHON, test ${python_found} = "yes") |
59 | 58 | ||
60 | -- | 59 | -- |
61 | 2.7.4 | 60 | 2.25.1 |
62 | |||
diff --git a/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb b/meta/recipes-support/libcap-ng/libcap-ng_0.7.11.bb index 6e6de45494..6e6de45494 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb +++ b/meta/recipes-support/libcap-ng/libcap-ng_0.7.11.bb | |||