mraa: Update to latest tip of trunk
PATCH 1/1 mraa: Update to latest tip of trunk
Drop already applied patch.
Fix build with latest musl while here.
Signed-off-by Khem Raj <[email protected]>
--- ...lar-expression-to-match-x86-architec.patch | 2 +- ...de-Declare-gVERSION-global-as-extern.patch | 31 ------------- .../mraa/0001-mraa-Use-posix-basename.patch | 46 +++++++++++++++++++ ...2-gpio-Include-limits.h-for-PATH_MAX.patch | 30 ++++++++++++ meta-oe/recipes-extended/mraa/mraa_git.bb | 5 +- 5 files changed, 80 insertions(+), 34 deletions(-) delete mode 100644 meta-oe/recipes-extended/mraa/mraa/0001-include-Declare-gVERSION-global-as-extern.patch create mode 100644 meta-oe/recipes-extended/mraa/mraa/0001-mraa-Use-posix-basename.patch create mode 100644 meta-oe/recipes-extended/mraa/mraa/0002-gpio-Include-limits.h-for-PATH_MAX.patch
meta-oe/recipes-extended/mraa/mraa/0001-cmake-Use-a-regular-expression-to-match-x86-architec.patch +1 -1
@@ -13,7 +13,7 @@ So using a wildcard helps in using any x86 arch Signed-off-by: Khem Raj <[email protected]> --- -Upstream-Status: Pending +Upstream-Status: Submitted [https://github.com/eclipse/mraa/pull/1125] CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-extended/mraa/mraa/0001-include-Declare-gVERSION-global-as-extern.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From dbb5961f106ec42cd70689d933674c9c37aedfe1 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <[email protected]> -Date: Mon, 13 Apr 2020 20:12:11 +0200 -Subject: include: Declare gVERSION global as 'extern'. - -Fixes build with '-fno-common'. - -Upstream-Status: Submitted [https://github.com/eclipse/mraa/pull/1012] -Signed-off-by: Adrian Bunk <[email protected]> ---- - include/version.h | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/include/version.h b/include/version.h -index 47366ef..3a567a1 100644 ---- a/include/version.h -+++ b/include/version.h -@@ -11,8 +11,8 @@ - extern "C" { - #endif - --const char* gVERSION; --const char* gVERSION_SHORT; -+extern const char* gVERSION; -+extern const char* gVERSION_SHORT; - - #ifdef __cplusplus - } --- -2.17.1 -
meta-oe/recipes-extended/mraa/mraa/0001-mraa-Use-posix-basename.patch new file +46 -0
46 lines not on this page · raw message
meta-oe/recipes-extended/mraa/mraa/0002-gpio-Include-limits.h-for-PATH_MAX.patch new file +30 -0
@@ -0,0 +1,30 @@ +From ffa6f1254066b1d5d99192002043be945ff64297 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sun, 31 Dec 2023 19:18:42 -0800 +Subject: [PATCH 2/2] gpio: Include limits.h for PATH_MAX + +Musl exposes this problem where PATH_MAX is used but limits.h is not +included, it works with glibc perhaps due to limits.h being indirectly +included by another system header. + +Signed-off-by: Khem Raj <[email protected]> +--- +Upstream-Status: Submitted [https://github.com/eclipse/mraa/pull/1125] + src/gpio/gpio_chardev.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/gpio/gpio_chardev.c b/src/gpio/gpio_chardev.c +index 2cd15968..9f727de7 100644 +--- a/src/gpio/gpio_chardev.c ++++ b/src/gpio/gpio_chardev.c +@@ -12,6 +12,7 @@ + #include <dirent.h> + #include <errno.h> + #include <fcntl.h> ++#include <limits.h> + #include <poll.h> + #include <pthread.h> + #include <signal.h> +-- +2.43.0 +
meta-oe/recipes-extended/mraa/mraa_git.bb +3 -2
@@ -5,12 +5,13 @@ SECTION = "libs" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=91e7de50a8d3cf01057f318d72460acd" -SRCREV = "7786c7ded5c9ce7773890d0e3dc27632898fc6b1" +SRCREV = "3c288a09109969eef9c2da7d92d3c62f92a015cc" PV = "2.2.0+git${SRCPV}" SRC_URI = "git://github.com/eclipse/${BPN}.git;protocol=https;branch=master \ file://0001-cmake-Use-a-regular-expression-to-match-x86-architec.patch \ - file://0001-include-Declare-gVERSION-global-as-extern.patch \ + file://0001-mraa-Use-posix-basename.patch \ + file://0002-gpio-Include-limits.h-for-PATH_MAX.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
2.43.0