* [Buildroot] [PATCH 1/1] package/python-spidev: fix musl build
@ 2016-01-31 14:09 Bernd Kuhls
2016-02-01 22:45 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2016-01-31 14:09 UTC (permalink / raw)
To: buildroot
The build error was not yet being found by the autobuilders.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
.../0001-Fix-build-with-musl-libc.patch | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 package/python-spidev/0001-Fix-build-with-musl-libc.patch
diff --git a/package/python-spidev/0001-Fix-build-with-musl-libc.patch b/package/python-spidev/0001-Fix-build-with-musl-libc.patch
new file mode 100644
index 0000000..b22a73a
--- /dev/null
+++ b/package/python-spidev/0001-Fix-build-with-musl-libc.patch
@@ -0,0 +1,43 @@
+From 3d6e59bff088783f249a60a5f1c900c7f99f933b Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Sun, 31 Jan 2016 15:03:50 +0100
+Subject: [PATCH 1/1] Fix build with musl libc
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Include missing header to prevent build error:
+
+spidev_module.c: In function ?SpiDev_xfer?:
+spidev_module.c:330:27: error: ?_IOC_SIZEBITS? undeclared (first use in this function)
+ status = ioctl(self->fd, SPI_IOC_MESSAGE(1), &xfer);
+ ^
+spidev_module.c:330:27: note: each undeclared identifier is reported only once for each function it appears in
+spidev_module.c: In function ?SpiDev_xfer2?:
+spidev_module.c:421:27: error: ?_IOC_SIZEBITS? undeclared (first use in this function)
+ status = ioctl(self->fd, SPI_IOC_MESSAGE(1), &xfer);
+ ^
+
+Signed-off-by: Bernd Kuhls bernd.kuhls at t-online.de
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+Patch sent upstream: https://github.com/doceme/py-spidev/pull/39
+
+ spidev_module.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/spidev_module.c b/spidev_module.c
+index d58ef07..bccaacf 100644
+--- a/spidev_module.c
++++ b/spidev_module.c
+@@ -25,6 +25,7 @@
+ #include <linux/spi/spidev.h>
+ #include <linux/types.h>
+ #include <sys/ioctl.h>
++#include <linux/ioctl.h>
+
+ #define SPIDEV_MAXPATH 4096
+
+--
+2.7.0
+
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/python-spidev: fix musl build
2016-01-31 14:09 [Buildroot] [PATCH 1/1] package/python-spidev: fix musl build Bernd Kuhls
@ 2016-02-01 22:45 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-02-01 22:45 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Sun, 31 Jan 2016 15:09:38 +0100, Bernd Kuhls wrote:
> The build error was not yet being found by the autobuilders.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> .../0001-Fix-build-with-musl-libc.patch | 43 ++++++++++++++++++++++
> 1 file changed, 43 insertions(+)
> create mode 100644 package/python-spidev/0001-Fix-build-with-musl-libc.patch
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-01 22:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-31 14:09 [Buildroot] [PATCH 1/1] package/python-spidev: fix musl build Bernd Kuhls
2016-02-01 22:45 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox