diff options
Diffstat (limited to 'meta/recipes-core/ell')
-rw-r--r-- | meta/recipes-core/ell/ell/0001-pem.c-do-not-use-rawmemchr.patch | 27 | ||||
-rw-r--r-- | meta/recipes-core/ell/ell_0.65.bb (renamed from meta/recipes-core/ell/ell_0.38.bb) | 12 |
2 files changed, 3 insertions, 36 deletions
diff --git a/meta/recipes-core/ell/ell/0001-pem.c-do-not-use-rawmemchr.patch b/meta/recipes-core/ell/ell/0001-pem.c-do-not-use-rawmemchr.patch deleted file mode 100644 index f0ce6f1364..0000000000 --- a/meta/recipes-core/ell/ell/0001-pem.c-do-not-use-rawmemchr.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | From 277e1eca67fcc23cb31be7b826d83a19d9b89bd2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 22 Dec 2020 10:30:54 +0000 | ||
4 | Subject: [PATCH] pem.c: do not use rawmemchr() | ||
5 | |||
6 | This is a glibc-only function, and causes build failures with | ||
7 | alternative libc implementations such as musl. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | ell/pem.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/ell/pem.c b/ell/pem.c | ||
16 | index 790f2c2..237ae02 100644 | ||
17 | --- a/ell/pem.c | ||
18 | +++ b/ell/pem.c | ||
19 | @@ -224,7 +224,7 @@ static uint8_t *pem_load_buffer(const void *buf, size_t buf_len, | ||
20 | |||
21 | /* Check that each header line has a key and a colon */ | ||
22 | while (start < end) { | ||
23 | - const char *lf = rawmemchr(start, '\n'); | ||
24 | + const char *lf = memchr(start, '\n', end - start); | ||
25 | const char *colon = memchr(start, ':', lf - start); | ||
26 | |||
27 | if (!colon) | ||
diff --git a/meta/recipes-core/ell/ell_0.38.bb b/meta/recipes-core/ell/ell_0.65.bb index 7d3a339978..9b559caf8a 100644 --- a/meta/recipes-core/ell/ell_0.38.bb +++ b/meta/recipes-core/ell/ell_0.65.bb | |||
@@ -7,18 +7,12 @@ libdl (for dynamic linking). While ELL is designed to be efficient \ | |||
7 | and compact enough for use on embedded Linux platforms, it is not \ | 7 | and compact enough for use on embedded Linux platforms, it is not \ |
8 | limited to resource-constrained systems." | 8 | limited to resource-constrained systems." |
9 | SECTION = "libs" | 9 | SECTION = "libs" |
10 | LICENSE = "LGPLv2.1" | 10 | LICENSE = "LGPL-2.1-only" |
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" |
12 | 12 | ||
13 | DEPENDS = "dbus" | 13 | DEPENDS = "dbus" |
14 | 14 | ||
15 | inherit autotools pkgconfig | 15 | inherit autotools pkgconfig |
16 | 16 | ||
17 | SRC_URI = "https://mirrors.edge.kernel.org/pub/linux/libs/${BPN}/${BPN}-${PV}.tar.xz \ | 17 | SRC_URI = "https://mirrors.edge.kernel.org/pub/linux/libs/${BPN}/${BPN}-${PV}.tar.xz" |
18 | file://0001-pem.c-do-not-use-rawmemchr.patch \ | 18 | SRC_URI[sha256sum] = "9ee7ac57b188d391cead705d3596a6d3240341786475149db297782a52269aa5" |
19 | " | ||
20 | SRC_URI[sha256sum] = "c1b7ae5676eec310f08757b3d8652b8e818776be1897fb5deb59e55f02a012a7" | ||
21 | |||
22 | do_configure_prepend () { | ||
23 | mkdir -p ${S}/build-aux | ||
24 | } | ||