* [Buildroot] [PATCH 1/1] package/transmission: fix musl build
@ 2016-01-24 12:50 Bernd Kuhls
2016-01-25 22:31 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2016-01-24 12:50 UTC (permalink / raw)
To: buildroot
The autobuilders did not catch the error yet because they failed
earlier with other packages, but I am continuing the build based
on the defconfig from:
http://autobuild.buildroot.net/results/6cc/6cc0f8c067e07deea688b9b97284601a596b898c/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
| 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/transmission/0002-musl-missing-header.patch
--git a/package/transmission/0002-musl-missing-header.patch b/package/transmission/0002-musl-missing-header.patch
new file mode 100644
index 0000000..ebb74cb
--- /dev/null
+++ b/package/transmission/0002-musl-missing-header.patch
@@ -0,0 +1,36 @@
+Fix musl build
+
+Downloaded from
+https://cgit.gentoo.org/proj/musl.git/tree/net-p2p/transmission/files/transmission-2.84-musl-missing-header.patch
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+
+libtransmission/transmission.h: add missing <sys/types.h>
+
+transmission.h and several files including it, like bitfield.c and fdlimits.h
+make reference to ssize_t, off_t and other types defined in <sys/types.h> but
+never include the header. By including <sys/types.h> in transmission.h, the
+required type definitions are propagated to all files that need them.
+
+Not including <sys/types.h> on glibc and uClibc systems does not pose a problem
+because of the way the headers stack in those C Standard Libraries, but on musl
+excluding <sys/types.h> leads to compile time failure.
+
+For the POSIX specs, see
+
+http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
+
+Signed-of-by: Anthony G. Basile <blueness@gentoo.org>
+
+diff -Naur transmission-2.84.orig/libtransmission/transmission.h transmission-2.84/libtransmission/transmission.h
+--- transmission-2.84.orig/libtransmission/transmission.h 2014-07-01 13:09:01.682910744 -0400
++++ transmission-2.84/libtransmission/transmission.h 2015-07-19 03:11:07.379219181 -0400
+@@ -28,6 +28,7 @@
+
+ #include <inttypes.h> /* uintN_t */
+ #include <time.h> /* time_t */
++#include <sys/types.h>
+
+ #ifdef WIN32
+ #define __USE_MINGW_ANSI_STDIO 1
--
2.7.0.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/transmission: fix musl build
2016-01-24 12:50 [Buildroot] [PATCH 1/1] package/transmission: fix musl build Bernd Kuhls
@ 2016-01-25 22:31 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-01-25 22:31 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Sun, 24 Jan 2016 13:50:13 +0100, Bernd Kuhls wrote:
> The autobuilders did not catch the error yet because they failed
> earlier with other packages, but I am continuing the build based
> on the defconfig from:
> http://autobuild.buildroot.net/results/6cc/6cc0f8c067e07deea688b9b97284601a596b898c/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> .../transmission/0002-musl-missing-header.patch | 36 ++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/transmission/0002-musl-missing-header.patch
Applied, thanks. Please don't forget to submit the patch upstream.
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-01-25 22:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-24 12:50 [Buildroot] [PATCH 1/1] package/transmission: fix musl build Bernd Kuhls
2016-01-25 22:31 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox