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