summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/npth
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/npth')
-rw-r--r--meta/recipes-support/npth/npth/musl-fix.patch37
-rw-r--r--meta/recipes-support/npth/npth/pkgconfig.patch59
-rw-r--r--meta/recipes-support/npth/npth_1.7.bb25
-rw-r--r--meta/recipes-support/npth/npth_1.8.bb19
4 files changed, 19 insertions, 121 deletions
diff --git a/meta/recipes-support/npth/npth/musl-fix.patch b/meta/recipes-support/npth/npth/musl-fix.patch
deleted file mode 100644
index fabe78b14c..0000000000
--- a/meta/recipes-support/npth/npth/musl-fix.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From 417abd56fd7bf45cd4948414050615cb1ad59134 Mon Sep 17 00:00:00 2001
2From: NIIBE Yutaka <gniibe@fsij.org>
3Date: Fri, 1 Mar 2024 13:53:52 +0900
4Subject: [PATCH] Fix INSERT_EXPOSE_RWLOCK_API for musl C library.
5
6* configure.ac: Add a case for musl system.
7
8Upstream-Status: Backport [https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git;a=commit;h=417abd56fd7bf45cd4948414050615cb1ad59134]
9Signed-off-by: Alexander Kanavin <alex@linutronix.de>
10--
11
12GnuPG-bug-id: 5664
13Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
14---
15 configure.ac | 5 ++++-
16 1 file changed, 4 insertions(+), 1 deletion(-)
17
18diff --git a/configure.ac b/configure.ac
19index c1091b1..576a26e 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -381,7 +381,10 @@ fi
23 AC_SUBST(INSERT_NO_RWLOCK)
24
25 case "${host}" in
26- *-*-linux*|*-*-gnu*)
27+ *-*-linux-musl*)
28+ INSERT_EXPOSE_RWLOCK_API="1"
29+ ;;
30+ *-*-linux-gnu*|*-*-gnu*)
31 INSERT_EXPOSE_RWLOCK_API="defined(__USE_UNIX98) || defined(__USE_XOPEN2K)"
32 ;;
33 *)
34--
352.30.2
36
37
diff --git a/meta/recipes-support/npth/npth/pkgconfig.patch b/meta/recipes-support/npth/npth/pkgconfig.patch
deleted file mode 100644
index e736921b43..0000000000
--- a/meta/recipes-support/npth/npth/pkgconfig.patch
+++ /dev/null
@@ -1,59 +0,0 @@
1From ff19a9648f1c7d93087e2c33ca64bb881d53ea5a Mon Sep 17 00:00:00 2001
2From: Saul Wold <sgw@linux.intel.com>
3Date: Mon, 10 Nov 2014 13:59:03 -0800
4Subject: [PATCH] Added npth pkgconfig file
5
6Upstream-Status: Pending
7
8Signed-off-by: Saul Wold <sgw@linux.intel.com>
9---
10 configure.ac | 1 +
11 src/Makefile.am | 4 +++-
12 src/npth.pc.in | 10 ++++++++++
13 3 files changed, 14 insertions(+), 1 deletion(-)
14 create mode 100644 src/npth.pc.in
15
16diff --git a/configure.ac b/configure.ac
17index 10f3629..65b76a1 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -476,6 +476,7 @@ src/Makefile
21 w32/Makefile
22 tests/Makefile])
23 AC_CONFIG_FILES(npth-config, chmod +x npth-config)
24+AC_CONFIG_FILES([src/npth.pc])
25 AC_OUTPUT
26
27 echo "
28diff --git a/src/Makefile.am b/src/Makefile.am
29index 7070118..6f01c64 100644
30--- a/src/Makefile.am
31+++ b/src/Makefile.am
32@@ -17,8 +17,10 @@
33 # License along with this program; if not, see <http://www.gnu.org/licenses/>.
34
35 ## Process this file with automake to produce Makefile.in
36+pkgconfigdir = $(libdir)/pkgconfig
37+pkgconfig_DATA = npth.pc
38
39-EXTRA_DIST = libnpth.vers
40+EXTRA_DIST = libnpth.vers npth.pc
41 # versioninfo.rc.in
42 nodist_include_HEADERS = npth.h
43
44diff --git a/src/npth.pc.in b/src/npth.pc.in
45new file mode 100644
46index 0000000..db091e8
47--- /dev/null
48+++ b/src/npth.pc.in
49@@ -0,0 +1,10 @@
50+prefix=@prefix@
51+exec_prefix=@exec_prefix@
52+libdir=@libdir@
53+includedir=@includedir@
54+
55+Name: npth
56+Description: a new portable posix threading library
57+Version: @VERSION@
58+Libs: -L${libdir} -lnpth -lpthread
59+Cflags: -I${includedir}
diff --git a/meta/recipes-support/npth/npth_1.7.bb b/meta/recipes-support/npth/npth_1.7.bb
deleted file mode 100644
index f02a731f85..0000000000
--- a/meta/recipes-support/npth/npth_1.7.bb
+++ /dev/null
@@ -1,25 +0,0 @@
1SUMMARY = "New GNU Portable Threads library"
2DESCRIPTION = "nPth is a library to provide the GNU Pth API and thus a non-preemptive threads implementation. "
3HOMEPAGE = "https://www.gnu.org/software/pth/"
4SECTION = "libs"
5LICENSE = "LGPL-2.0-or-later"
6LIC_FILES_CHKSUM = "\
7 file://COPYING.LIB;md5=2caced0b25dfefd4c601d92bd15116de\
8 "
9UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
10SRC_URI = "${GNUPG_MIRROR}/npth/npth-${PV}.tar.bz2 \
11 file://pkgconfig.patch \
12 file://musl-fix.patch \
13 "
14
15SRC_URI[sha256sum] = "8589f56937b75ce33b28d312fccbf302b3b71ec3f3945fde6aaa74027914ad05"
16
17inherit autotools binconfig-disabled multilib_header
18
19FILES:${PN} = "${libdir}/libnpth.so.*"
20
21do_install:append() {
22 oe_multilib_header npth.h
23}
24
25BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-support/npth/npth_1.8.bb b/meta/recipes-support/npth/npth_1.8.bb
new file mode 100644
index 0000000000..a354af2a7c
--- /dev/null
+++ b/meta/recipes-support/npth/npth_1.8.bb
@@ -0,0 +1,19 @@
1SUMMARY = "New GNU Portable Threads library"
2DESCRIPTION = "nPth is a library to provide the GNU Pth API and thus a non-preemptive threads implementation. "
3HOMEPAGE = "https://gnupg.org/software/npth/"
4SECTION = "libs"
5LICENSE = "LGPL-2.0-or-later"
6LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2caced0b25dfefd4c601d92bd15116de"
7UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
8
9SRC_URI = "${GNUPG_MIRROR}/npth/npth-${PV}.tar.bz2"
10
11SRC_URI[sha256sum] = "8bd24b4f23a3065d6e5b26e98aba9ce783ea4fd781069c1b35d149694e90ca3e"
12
13inherit autotools multilib_header
14
15do_install:append() {
16 oe_multilib_header npth.h
17}
18
19BBCLASSEXTEND = "native nativesdk"