summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-05-12 22:04:53 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-14 07:57:27 +0100
commitfd9ae730cf7b2fc4c5db0c5d0219a60afd23e173 (patch)
treebf892b5f796e5dc966de63206acd87529dbd1fe3
parentb9f5a890a534afb2157ac6894b7d85554a32d35b (diff)
downloadpoky-fd9ae730cf7b2fc4c5db0c5d0219a60afd23e173.tar.gz
npth: Check for pthread_create for including lpthread
pthread_detach() is moved into libc which means this test will fail so check for pthead_create again [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=df65f897e9501aa5b64a5cbcb101301715f2ec2f (From OE-Core rev: e82742849e6228f892a489bfbd02c365c4a8607e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/npth/npth/0001-Revert-Fix-problem-with-regression-tests-on-recent-g.patch43
-rw-r--r--meta/recipes-support/npth/npth_1.6.bb1
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-support/npth/npth/0001-Revert-Fix-problem-with-regression-tests-on-recent-g.patch b/meta/recipes-support/npth/npth/0001-Revert-Fix-problem-with-regression-tests-on-recent-g.patch
new file mode 100644
index 0000000000..47c426b4a5
--- /dev/null
+++ b/meta/recipes-support/npth/npth/0001-Revert-Fix-problem-with-regression-tests-on-recent-g.patch
@@ -0,0 +1,43 @@
1From e43524868bb4901703d63876f9d49f73ca75b3ab Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 12 May 2021 20:27:52 -0700
4Subject: [PATCH] Revert "Fix problem with regression tests on recent glibc."
5
6This reverts commit 3a9d32eb59194b989656548755066ccd9feb36ac.
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 configure.ac | 8 +++-----
12 1 file changed, 3 insertions(+), 5 deletions(-)
13
14diff --git a/configure.ac b/configure.ac
15index 8a9373c..8cda28d 100644
16--- a/configure.ac
17+++ b/configure.ac
18@@ -284,11 +284,9 @@ AC_TYPE_SSIZE_T
19 #
20 # Checks for libraries and functions.
21 #
22-# We test for pthread_detach because glibc 2.22 includes
23-# pthread_create but not pthread_detach.
24 if test "$have_w32_system" = no; then
25- AC_SEARCH_LIBS([pthread_detach],[pthread])
26- case "x$ac_cv_search_pthread_detach" in
27+ AC_SEARCH_LIBS([pthread_create],[pthread])
28+ case "x$ac_cv_search_pthread_create" in
29 xno)
30 have_pthread=no
31 ;;
32@@ -297,7 +295,7 @@ if test "$have_w32_system" = no; then
33 ;;
34 *)
35 have_pthread=yes
36- config_libs="$config_libs $ac_cv_search_pthread_detach"
37+ config_libs="$config_libs $ac_cv_search_pthread_create"
38 ;;
39 esac
40 if test "$have_pthread" != no; then
41--
422.31.1
43
diff --git a/meta/recipes-support/npth/npth_1.6.bb b/meta/recipes-support/npth/npth_1.6.bb
index 94a3f00eac..d5a149e041 100644
--- a/meta/recipes-support/npth/npth_1.6.bb
+++ b/meta/recipes-support/npth/npth_1.6.bb
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "\
9UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" 9UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
10SRC_URI = "${GNUPG_MIRROR}/npth/npth-${PV}.tar.bz2 \ 10SRC_URI = "${GNUPG_MIRROR}/npth/npth-${PV}.tar.bz2 \
11 file://pkgconfig.patch \ 11 file://pkgconfig.patch \
12 file://0001-Revert-Fix-problem-with-regression-tests-on-recent-g.patch \
12 " 13 "
13 14
14SRC_URI[md5sum] = "375d1a15ad969f32d25f1a7630929854" 15SRC_URI[md5sum] = "375d1a15ad969f32d25f1a7630929854"