Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] transmission: Fix build error "conflicting types for 'UTP_Write'" after version bump
@ 2014-01-03 19:18 Bernd Kuhls
  2014-01-03 19:42 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2014-01-03 19:18 UTC (permalink / raw)
  To: buildroot

fix taken from
http://www.adminsehow.com/2012/10/how-to-install-transmission-2-71-on-debian-6-0-squeeze/

compile tested on arch sh4, fixes
http://autobuild.buildroot.org/results/638/63884de929fb7339ebf44b08cb5d1ab30010666a/

should also fix powerpc
http://autobuild.buildroot.org/results/eb4/eb486228a11a9602d4bf40e771744d2b2b40508f/

Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
---
Changes v1 -> v2:
- add a description + Signed-off-by inside the patch (Thomas)

 .../transmission/transmission-01-fix-utypes.patch  |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/transmission/transmission-01-fix-utypes.patch

diff --git a/package/transmission/transmission-01-fix-utypes.patch b/package/transmission/transmission-01-fix-utypes.patch
new file mode 100644
index 0000000..26e3e04
--- /dev/null
+++ b/package/transmission/transmission-01-fix-utypes.patch
@@ -0,0 +1,30 @@
+Fix build error "conflicting types for 'UTP_Write'"
+
+Fetch from: http://www.adminsehow.com/2012/10/how-to-install-transmission-2-71-on-debian-6-0-squeeze/
+
+The corresponding upstream bug report (unfixed) can be found here:
+https://trac.transmissionbt.com/ticket/5232
+
+Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
+
+--- transmission-2.82.org/third-party/libutp/utypes.h	2013-08-09 04:47:43.000000000 +0200
++++ transmission-2.82/third-party/libutp/utypes.h	2014-01-02 20:17:18.000000000 +0100
+@@ -35,8 +35,15 @@
+ typedef const char * cstr;
+ typedef char * str;
+ 
+-#ifndef __cplusplus
+-typedef uint8 bool;
+-#endif
++//#ifndef __cplusplus
++//typedef uint8 bool;
++//#endif
++#ifndef __cplusplus
++#ifdef HAVE_STDBOOL_H
++#include <stdbool.h>
++#else
++typedef uint8 bool;
++#endif
++#endif
+ 
+ #endif //__UTYPES_H__
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v2 1/1] transmission: Fix build error "conflicting types for 'UTP_Write'" after version bump
  2014-01-03 19:18 [Buildroot] [PATCH v2 1/1] transmission: Fix build error "conflicting types for 'UTP_Write'" after version bump Bernd Kuhls
@ 2014-01-03 19:42 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-01-03 19:42 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Fri, 3 Jan 2014 20:18:21 +0100, Bernd Kuhls wrote:
> fix taken from
> http://www.adminsehow.com/2012/10/how-to-install-transmission-2-71-on-debian-6-0-squeeze/
> 
> compile tested on arch sh4, fixes
> http://autobuild.buildroot.org/results/638/63884de929fb7339ebf44b08cb5d1ab30010666a/
> 
> should also fix powerpc
> http://autobuild.buildroot.org/results/eb4/eb486228a11a9602d4bf40e771744d2b2b40508f/
> 
> Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>

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:[~2014-01-03 19:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-03 19:18 [Buildroot] [PATCH v2 1/1] transmission: Fix build error "conflicting types for 'UTP_Write'" after version bump Bernd Kuhls
2014-01-03 19:42 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox