* [Buildroot] [PATCH 1/1] package/gensio: fix musl build
@ 2022-09-11 20:52 Fabrice Fontaine
2022-09-17 9:08 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-09-11 20:52 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fabrice Fontaine
Fix the following musl build failure raised since bump to version 2.5.2
in commit 5bb747f0b783a0d3f1712350ca3277263045b299:
gensiotool.c:47:10: fatal error: sys/unistd.h: No such file or directory
47 | #include <sys/unistd.h>
| ^~~~~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/99a60831da94f94fdf798c1c30cc09f0e51416c7
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...01-tools-gensiot-Fix-build-with-musl.patch | 29 +++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 package/gensio/0001-tools-gensiot-Fix-build-with-musl.patch
diff --git a/package/gensio/0001-tools-gensiot-Fix-build-with-musl.patch b/package/gensio/0001-tools-gensiot-Fix-build-with-musl.patch
new file mode 100644
index 0000000000..7cda950c9e
--- /dev/null
+++ b/package/gensio/0001-tools-gensiot-Fix-build-with-musl.patch
@@ -0,0 +1,29 @@
+From 64f8f754447572a6b7bed4038a9a29a12b448479 Mon Sep 17 00:00:00 2001
+From: Jan Luebbe <jlu@pengutronix.de>
+Date: Thu, 25 Aug 2022 12:19:16 +0200
+Subject: [PATCH] tools:gensiot: Fix build with musl
+
+According to POSIX getpid() is available in unistd.h, not sys/unistd.h.
+
+Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
+
+[Retrieved from:
+https://github.com/cminyard/gensio/commit/64f8f754447572a6b7bed4038a9a29a12b448479]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ tools/gensiotool.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/gensiotool.c b/tools/gensiotool.c
+index cac531bb..ab0bb958 100644
+--- a/tools/gensiotool.c
++++ b/tools/gensiotool.c
+@@ -44,7 +44,7 @@
+ #include <signal.h>
+ #include <errno.h>
+ #include <sys/types.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+ #include <syslog.h>
+ #endif
+
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/gensio: fix musl build
2022-09-11 20:52 [Buildroot] [PATCH 1/1] package/gensio: fix musl build Fabrice Fontaine
@ 2022-09-17 9:08 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-09-17 9:08 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: James Hilliard, buildroot
On Sun, 11 Sep 2022 22:52:03 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following musl build failure raised since bump to version 2.5.2
> in commit 5bb747f0b783a0d3f1712350ca3277263045b299:
>
> gensiotool.c:47:10: fatal error: sys/unistd.h: No such file or directory
> 47 | #include <sys/unistd.h>
> | ^~~~~~~~~~~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/99a60831da94f94fdf798c1c30cc09f0e51416c7
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...01-tools-gensiot-Fix-build-with-musl.patch | 29 +++++++++++++++++++
> 1 file changed, 29 insertions(+)
> create mode 100644 package/gensio/0001-tools-gensiot-Fix-build-with-musl.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-17 9:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-11 20:52 [Buildroot] [PATCH 1/1] package/gensio: fix musl build Fabrice Fontaine
2022-09-17 9:08 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.