python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / transmission / 0004-fix-utp-include.patch
blobdb8b5ab39b3cfc178b7ff6bdc003b8b5d9a3bb24
1 Fix compilation when using system libminiupnpc with libutp disabled
3 If transmission uses its own copy of libminiupnpc in third-party/ then
4 the configure script adds that path to CFLAGS:
5 https://trac.transmissionbt.com/browser/trunk/configure.ac#L455
7 This path is also added if transmission uses its own copy of libutp:
8 https://trac.transmissionbt.com/browser/trunk/configure.ac#L349
10 But if a system-provided libminiupnpc is used and utp-support is
11 disabled using --disable-utp the result is a build error, detected by
12 buildroot autobuilders:
13 http://autobuild.buildroot.net/results/b79/b79e51140cb0320554a58ce59dcb33f53cd9211a/build-end.log
15 net.c:40:24: fatal error: libutp/utp.h: No such file or directory
17 Patch proposed by Yann E. MORIN:
18 http://lists.busybox.net/pipermail/buildroot/2016-July/167896.html
20 Patch sent upstream: https://trac.transmissionbt.com/ticket/6163
22 Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
24 diff -uNr transmission-2.92.org/configure.ac transmission-2.92/configure.ac
25 --- transmission-2.92.org/configure.ac 2016-03-06 21:23:45.336198393 +0100
26 +++ transmission-2.92/configure.ac 2016-07-31 12:13:40.921660078 +0200
27 @@ -358,6 +358,10 @@
28 else
29 AC_MSG_ERROR("Unable to build uTP support -- C++ compiler not found")
31 +else
32 + # For the system libminiupnpc with UTC disabled,
33 + # point to our bundled UTP headers
34 + LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
36 AC_SUBST(LIBUTP_CFLAGS)
37 AC_SUBST(LIBUTP_LIBS)
38 @@ -457,7 +461,7 @@
39 LIBUPNP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a"
40 else
41 AC_DEFINE([SYSTEM_MINIUPNP])
42 - LIBUPNP_CFLAGS=""
43 + LIBUPNP_CFLAGS="${LIBUTP_CFLAGS}"
44 LIBUPNP_LIBS="-lminiupnpc"
45 LIBUPNP_LIBS_QT="-lminiupnpc"