From 257f67186c697fe5bba36bf86cc05a637e558ca4 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 22 May 2020 07:31:12 -0700 Subject: safec: Update to latest on 3.5.1 release tags It build fine on mips now. Musl patch is no longer needed and musl provides memrchr Signed-off-by: Khem Raj --- ...emrchr-Use-_ISOC11_SOURCE-only-with-glibc.patch | 30 ---------------------- meta-oe/recipes-core/safec/safec_3.5.1.bb | 21 +++++++++++++++ meta-oe/recipes-core/safec/safec_3.5.bb | 23 ----------------- 3 files changed, 21 insertions(+), 53 deletions(-) delete mode 100644 meta-oe/recipes-core/safec/safec/0001-memrchr-Use-_ISOC11_SOURCE-only-with-glibc.patch create mode 100644 meta-oe/recipes-core/safec/safec_3.5.1.bb delete mode 100644 meta-oe/recipes-core/safec/safec_3.5.bb diff --git a/meta-oe/recipes-core/safec/safec/0001-memrchr-Use-_ISOC11_SOURCE-only-with-glibc.patch b/meta-oe/recipes-core/safec/safec/0001-memrchr-Use-_ISOC11_SOURCE-only-with-glibc.patch deleted file mode 100644 index 8f18f48720..0000000000 --- a/meta-oe/recipes-core/safec/safec/0001-memrchr-Use-_ISOC11_SOURCE-only-with-glibc.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 57456b5d034c8965b11eceed1bf861c98a18c324 Mon Sep 17 00:00:00 2001 -From: "jenkins@kwaj" -Date: Wed, 11 Sep 2019 13:43:45 -0700 -Subject: [PATCH] memrchr: Use _ISOC11_SOURCE only with glibc - -this is a glibc feature test macro which is not available -on other libraries e.g. musl - -Upstream-Status: Pending -Signed-off-by: Khem Raj ---- - src/extmem/memrchr_s.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/extmem/memrchr_s.c b/src/extmem/memrchr_s.c -index 8d10a7b9..e73d3579 100644 ---- a/src/extmem/memrchr_s.c -+++ b/src/extmem/memrchr_s.c -@@ -36,7 +36,7 @@ - #endif - - #ifdef HAVE_MEMRCHR --#ifndef _ISOC11_SOURCE -+#if defined (__GLIBC__) && !defined(_ISOC11_SOURCE) - extern void *memrchr(const void *, int, size_t); - #endif - #endif --- -2.17.1 - diff --git a/meta-oe/recipes-core/safec/safec_3.5.1.bb b/meta-oe/recipes-core/safec/safec_3.5.1.bb new file mode 100644 index 0000000000..91d8fc65a0 --- /dev/null +++ b/meta-oe/recipes-core/safec/safec_3.5.1.bb @@ -0,0 +1,21 @@ +SUMMARY = "Safe C Library" + +LICENSE = "safec" +LIC_FILES_CHKSUM = "file://COPYING;md5=6d0eb7dfc57806a006fcbc4e389cf164" +SECTION = "lib" + +inherit autotools pkgconfig + +S = "${WORKDIR}/git" +# v08112019 +SRCREV = "ad76c7b1dbd0403b0c9decf54164fcce271c590f" +SRC_URI = "git://github.com/rurban/safeclib.git \ +" + +COMPATIBLE_HOST = '(x86_64|i.86|powerpc|powerpc64|arm|aarch64|mips).*-linux' + +PACKAGES =+ "${PN}-check" + +FILES_${PN}-check += "${bindir}/check_for_unsafe_apis" + +RDEPENDS_${PN}-check += "perl" diff --git a/meta-oe/recipes-core/safec/safec_3.5.bb b/meta-oe/recipes-core/safec/safec_3.5.bb deleted file mode 100644 index 94cdb3a3c3..0000000000 --- a/meta-oe/recipes-core/safec/safec_3.5.bb +++ /dev/null @@ -1,23 +0,0 @@ -SUMMARY = "Safe C Library" - -LICENSE = "safec" -LIC_FILES_CHKSUM = "file://COPYING;md5=6d0eb7dfc57806a006fcbc4e389cf164" -SECTION = "lib" - -inherit autotools pkgconfig - -S = "${WORKDIR}/git" -SRCREV = "a99a052a56da409638c9fe7e096a5ae6661ca7cb" -SRC_URI = "git://github.com/rurban/safeclib.git \ - file://0001-memrchr-Use-_ISOC11_SOURCE-only-with-glibc.patch \ -" - -CPPFLAGS_append_libc-musl = " -D_GNU_SOURCE" - -COMPATIBLE_HOST = '(x86_64|i.86|powerpc|powerpc64|arm|aarch64).*-linux' - -PACKAGES =+ "${PN}-check" - -FILES_${PN}-check += "${bindir}/check_for_unsafe_apis" - -RDEPENDS_${PN}-check += "perl" -- cgit v1.2.3-54-g00ecf