summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2022-08-25 16:21:34 +0200
committerKhem Raj <raj.khem@gmail.com>2022-08-25 23:08:11 -0700
commitd83086a2e42854f5ce6ca9fed9568d85a1a8a3e4 (patch)
tree4f8d68668076d71502c11418b953ed5ac2fec172
parentb2c878e3064514a05c79e177b5b8c915e0a38f23 (diff)
downloadmeta-openembedded-d83086a2e42854f5ce6ca9fed9568d85a1a8a3e4.tar.gz
gensio: upgrade 2.3.1 -> 2.5.2
Version 2.5.2 contains an include sys/unistd.h, which is not available with musl, so fix the include path. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-connectivity/gensio/files/0001-tools-gensiot-Fix-build-with-musl.patch29
-rw-r--r--meta-oe/recipes-connectivity/gensio/gensio_2.5.2.bb (renamed from meta-oe/recipes-connectivity/gensio/gensio_2.3.1.bb)6
2 files changed, 33 insertions, 2 deletions
diff --git a/meta-oe/recipes-connectivity/gensio/files/0001-tools-gensiot-Fix-build-with-musl.patch b/meta-oe/recipes-connectivity/gensio/files/0001-tools-gensiot-Fix-build-with-musl.patch
new file mode 100644
index 0000000000..93831c380f
--- /dev/null
+++ b/meta-oe/recipes-connectivity/gensio/files/0001-tools-gensiot-Fix-build-with-musl.patch
@@ -0,0 +1,29 @@
1From 823b6754a4d7655480b6e8576a9d0037f842d653 Mon Sep 17 00:00:00 2001
2From: Jan Luebbe <jlu@pengutronix.de>
3Date: Thu, 25 Aug 2022 12:19:16 +0200
4Subject: [PATCH] tools:gensiot: Fix build with musl
5
6According to POSIX getpid() is available in unistd.h, not sys/unistd.h.
7
8Upstream-Status: Submitted [https://github.com/cminyard/gensio/pull/47]
9Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
10---
11 tools/gensiotool.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/tools/gensiotool.c b/tools/gensiotool.c
15index cac531bb4b74..ab0bb9583f9f 100644
16--- a/tools/gensiotool.c
17+++ b/tools/gensiotool.c
18@@ -44,7 +44,7 @@
19 #include <signal.h>
20 #include <errno.h>
21 #include <sys/types.h>
22-#include <sys/unistd.h>
23+#include <unistd.h>
24 #include <syslog.h>
25 #endif
26
27--
282.30.2
29
diff --git a/meta-oe/recipes-connectivity/gensio/gensio_2.3.1.bb b/meta-oe/recipes-connectivity/gensio/gensio_2.5.2.bb
index a6e0075538..9de21209ca 100644
--- a/meta-oe/recipes-connectivity/gensio/gensio_2.3.1.bb
+++ b/meta-oe/recipes-connectivity/gensio/gensio_2.5.2.bb
@@ -5,9 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a0fd36908af843bcee10cb6dfc47fa67 \
5 file://COPYING;md5=bae3019b4c6dc4138c217864bd04331f \ 5 file://COPYING;md5=bae3019b4c6dc4138c217864bd04331f \
6 " 6 "
7 7
8SRCREV = "c500d8705c517f96e591c060105a789f053d2b7a" 8SRCREV = "b6cd354afe6d5f63bc859c94fd3a455a3cdf0449"
9 9
10SRC_URI = "git://github.com/cminyard/gensio;protocol=https;branch=master" 10SRC_URI = "git://github.com/cminyard/gensio;protocol=https;branch=master \
11 file://0001-tools-gensiot-Fix-build-with-musl.patch \
12"
11 13
12S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
13 15