diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-01-25 14:33:01 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-01-25 14:33:01 +0000 |
commit | d39c96b4fe86c8333255b69ede80884977e7fff5 (patch) | |
tree | c605477840e96e3b5006096c57f44bd551e8ae4c /net-p2p/transmission/files | |
parent | Spidermonkey-1.8.5 respect arm cflags, bug #400727 (diff) | |
download | gentoo-2-d39c96b4fe86c8333255b69ede80884977e7fff5.tar.gz gentoo-2-d39c96b4fe86c8333255b69ede80884977e7fff5.tar.bz2 gentoo-2-d39c96b4fe86c8333255b69ede80884977e7fff5.zip |
Initial commit of 2.42. Fixes bugs #389167 and #376647.
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'net-p2p/transmission/files')
5 files changed, 526 insertions, 0 deletions
diff --git a/net-p2p/transmission/files/transmission-2.42-0001-configure.ac.patch b/net-p2p/transmission/files/transmission-2.42-0001-configure.ac.patch new file mode 100644 index 000000000000..57d0649fdeac --- /dev/null +++ b/net-p2p/transmission/files/transmission-2.42-0001-configure.ac.patch @@ -0,0 +1,33 @@ +--- configure.ac.old 2011-11-01 12:26:58.384182367 +0100 ++++ configure.ac 2011-11-01 12:31:59.779150140 +0100 +@@ -209,26 +209,18 @@ + + AC_MSG_CHECKING([µTP]) + build_utp="no" +-if test "x$HAVE_CXX" = "xyes" ; then +- have_utp="yes" +-else +- have_utp="no" +-fi + AC_ARG_ENABLE([utp], + AS_HELP_STRING([--enable-utp],[build µTP support]), + [want_utp=${enableval}], +- [want_utp=${have_utp}]) ++ [want_utp="yes"]) + if test "x$want_utp" = "xyes" ; then +- if test "x$have_utp" = "xyes"; then ++ if test "x$HAVE_CXX" = "xyes"; then + LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/" +- LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a" +- if test "x$libutp_extra_libs" != "x" ; then +- LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs" +- fi ++ LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a $libutp_extra_libs" + AC_DEFINE([WITH_UTP],[1]) + build_utp="yes" + else +- AC_MSG_ERROR("Unable to build uTP support -- C++ compiler not found") ++ AC_MSG_ERROR("Unable to build uTP support -- C++ compiler not found; consider --disable-utp") + fi + fi + AC_SUBST(LIBUTP_CFLAGS) diff --git a/net-p2p/transmission/files/transmission-2.42-0003-system-miniupnpc.patch b/net-p2p/transmission/files/transmission-2.42-0003-system-miniupnpc.patch new file mode 100644 index 000000000000..501ca8ec8949 --- /dev/null +++ b/net-p2p/transmission/files/transmission-2.42-0003-system-miniupnpc.patch @@ -0,0 +1,208 @@ +From: Leo 'costela' Antunes <costela@debian.org> +Date: Sat, 12 Jun 2011 23:24:11 +0200 +Subject: use system libminiupnpc and libnatpmp + +TODO: make this optional before forwarding upstream + +Forwarded: no + +Index: repo/configure.ac +=================================================================== +--- repo.orig/configure.ac 2011-11-05 00:55:07.000000000 +0100 ++++ repo/configure.ac 2011-11-05 00:55:24.000000000 +0100 +@@ -18,7 +18,7 @@ + + dnl AM_CONFIG_HEADER(config.h) + AC_CONFIG_SRCDIR(libtransmission/transmission.h) +-AM_INIT_AUTOMAKE([1.9 tar-pax]) ++AM_INIT_AUTOMAKE([1.9 tar-pax nostdinc]) + AC_PROG_LIBTOOL + + if test m4_substr(peer_id_prefix,6,1) = "0"; then +@@ -197,6 +197,20 @@ + AC_SUBST(DHT_CFLAGS) + AC_SUBST(DHT_LIBS) + ++dnl ---------------------------------------------------------------------------- ++dnl ++dnl miniupnp ++ ++MINIUPNPC_LIBS="-lminiupnpc" ++AC_SUBST(MINIUPNPC_LIBS) ++ ++dnl ---------------------------------------------------------------------------- ++dnl ++dnl natpmp ++ ++NATPMP_LIBS="-lnatpmp" ++AC_SUBST(NATPMP_LIBS) ++ + + dnl ---------------------------------------------------------------------------- + dnl +@@ -416,8 +430,6 @@ + libtransmission/Makefile + utils/Makefile + third-party/Makefile +- third-party/miniupnp/Makefile +- third-party/libnatpmp/Makefile + third-party/libutp/Makefile + third-party/dht/Makefile + macosx/Makefile +Index: repo/libtransmission/Makefile.am +=================================================================== +--- repo.orig/libtransmission/Makefile.am 2011-11-05 00:55:07.000000000 +0100 ++++ repo/libtransmission/Makefile.am 2011-11-05 00:55:24.000000000 +0100 +@@ -1,7 +1,5 @@ + AM_CPPFLAGS = \ +- -I. \ + -I$(top_srcdir) \ +- -I$(top_srcdir)/third-party/ \ + -D__TRANSMISSION__ \ + -DPACKAGE_DATA_DIR=\""$(datadir)"\" + +@@ -68,6 +66,8 @@ + webseed.c \ + wildmat.c + ++libtransmission_a_LDFLAGS = @MINIUPNPC_LIBS@ @NATPMP_LIBS@ ++ + noinst_HEADERS = \ + announcer.h \ + announcer-common.h \ +@@ -139,8 +139,8 @@ + + apps_ldadd = \ + ./libtransmission.a \ +- $(top_builddir)/third-party/miniupnp/libminiupnp.a \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ ++ @MINIUPNPC_LIBS@ \ ++ @NATPMP_LIBS@ \ + @INTLLIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ +Index: repo/third-party/Makefile.am +=================================================================== +--- repo.orig/third-party/Makefile.am 2011-11-05 00:55:07.000000000 +0100 ++++ repo/third-party/Makefile.am 2011-11-05 00:55:24.000000000 +0100 +@@ -4,8 +4,6 @@ + + SUBDIRS = \ + dht \ +- libnatpmp \ +- miniupnp \ + $(UTP_DIR) + + EXTRA_DIST = \ +Index: repo/utils/Makefile.am +=================================================================== +--- repo.orig/utils/Makefile.am 2011-11-05 00:55:07.000000000 +0100 ++++ repo/utils/Makefile.am 2011-11-05 00:55:24.000000000 +0100 +@@ -26,8 +26,8 @@ + + transmission_create_LDADD = \ + $(top_builddir)/libtransmission/libtransmission.a \ +- $(top_builddir)/third-party/miniupnp/libminiupnp.a \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ ++ @MINIUPNPC_LIBS@ \ ++ @NATPMP_LIBS@ \ + @INTLLIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ +Index: repo/daemon/Makefile.am +=================================================================== +--- repo.orig/daemon/Makefile.am 2011-11-05 00:55:07.000000000 +0100 ++++ repo/daemon/Makefile.am 2011-11-05 00:55:24.000000000 +0100 +@@ -20,8 +20,8 @@ + + LDADD = \ + $(top_builddir)/libtransmission/libtransmission.a \ +- $(top_builddir)/third-party/miniupnp/libminiupnp.a \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ ++ @MINIUPNPC_LIBS@ \ ++ @NATPMP_LIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ + @LIBEVENT_LIBS@ \ +Index: repo/gtk/Makefile.am +=================================================================== +--- repo.orig/gtk/Makefile.am 2011-11-05 00:55:07.000000000 +0100 ++++ repo/gtk/Makefile.am 2011-11-05 00:55:24.000000000 +0100 +@@ -84,8 +84,8 @@ + + transmission_gtk_LDADD = \ + $(top_builddir)/libtransmission/libtransmission.a \ +- $(top_builddir)/third-party/miniupnp/libminiupnp.a \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ ++ @MINIUPNPC_LIBS@ \ ++ @NATPMP_LIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ + @GTK_LIBS@ \ +Index: repo/qt/qtr.pro +=================================================================== +--- repo.orig/qt/qtr.pro 2011-11-05 00:55:07.000000000 +0100 ++++ repo/qt/qtr.pro 2011-11-05 00:55:24.000000000 +0100 +@@ -23,8 +23,7 @@ + LIBS += $${TRANSMISSION_TOP}/third-party/libutp/libutp.a + } + LIBS += $${TRANSMISSION_TOP}/third-party/dht/libdht.a +-LIBS += $${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a +-LIBS += $${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a ++LIBS += -lminiupnpc -lnatpmp + unix: LIBS += -L$${EVENT_TOP}/lib -lz -lrt + win32:DEFINES += QT_DBUS + win32:LIBS += -levent-2.0 -lws2_32 -lintl +Index: repo/cli/Makefile.am +=================================================================== +--- repo.orig/cli/Makefile.am 2011-11-05 00:55:07.000000000 +0100 ++++ repo/cli/Makefile.am 2011-11-05 00:55:24.000000000 +0100 +@@ -18,8 +18,8 @@ + + transmission_cli_LDADD = \ + $(top_builddir)/libtransmission/libtransmission.a \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ +- $(top_builddir)/third-party/miniupnp/libminiupnp.a \ ++ @NATPMP_LIBS@ \ ++ @MINIUPNPC_LIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ + @LIBEVENT_LIBS@ \ +Index: repo/libtransmission/upnp.c +=================================================================== +--- repo.orig/libtransmission/upnp.c 2011-11-05 00:55:07.000000000 +0100 ++++ repo/libtransmission/upnp.c 2011-11-05 00:55:24.000000000 +0100 +@@ -13,8 +13,8 @@ + #include <assert.h> + #include <errno.h> + +-#include <miniupnp/miniupnpc.h> +-#include <miniupnp/upnpcommands.h> ++#include <miniupnpc/miniupnpc.h> ++#include <miniupnpc/upnpcommands.h> + + #include "transmission.h" + #include "port-forwarding.h" +Index: repo/libtransmission/natpmp.c +=================================================================== +--- repo.orig/libtransmission/natpmp.c 2011-11-05 00:55:07.000000000 +0100 ++++ repo/libtransmission/natpmp.c 2011-11-05 00:55:24.000000000 +0100 +@@ -17,7 +17,7 @@ + #include <event2/util.h> /* evutil_inet_ntop() */ + + #define ENABLE_STRNATPMPERR +-#include <libnatpmp/natpmp.h> ++#include <natpmp.h> + + #include "transmission.h" + #include "natpmp.h" +Index: repo/third-party/libutp/utp.cpp +=================================================================== +--- repo.orig/third-party/libutp/utp.cpp 2011-11-05 00:55:07.000000000 +0100 ++++ repo/third-party/libutp/utp.cpp 2011-11-05 00:55:24.000000000 +0100 +@@ -1,4 +1,4 @@ +-#include <StdAfx.h> ++#include "StdAfx.h" + + #include "utp.h" + #include "templates.h" diff --git a/net-p2p/transmission/files/transmission-2.42-0005-build-with-natpmp1.patch b/net-p2p/transmission/files/transmission-2.42-0005-build-with-natpmp1.patch new file mode 100644 index 000000000000..87071762f54c --- /dev/null +++ b/net-p2p/transmission/files/transmission-2.42-0005-build-with-natpmp1.patch @@ -0,0 +1,13 @@ +Index: repo/libtransmission/natpmp.c +=================================================================== +--- repo.orig/libtransmission/natpmp.c 2011-08-22 14:08:37.000000000 +0200 ++++ repo/libtransmission/natpmp.c 2011-08-22 14:14:39.000000000 +0200 +@@ -120,7 +120,7 @@ + + if( is_enabled && ( nat->state == TR_NATPMP_DISCOVER ) ) + { +- int val = initnatpmp( &nat->natpmp ); ++ int val = initnatpmp( &nat->natpmp, 0, NULL ); + logVal( "initnatpmp", val ); + val = sendpublicaddressrequest( &nat->natpmp ); + logVal( "sendpublicaddressrequest", val ); diff --git a/net-p2p/transmission/files/transmission-2.42-natpmp-system.patch b/net-p2p/transmission/files/transmission-2.42-natpmp-system.patch new file mode 100644 index 000000000000..cdf1872d7131 --- /dev/null +++ b/net-p2p/transmission/files/transmission-2.42-natpmp-system.patch @@ -0,0 +1,260 @@ +diff -urN transmission-2.42.old/cli/Makefile.am transmission-2.42/cli/Makefile.am +--- transmission-2.42.old/cli/Makefile.am 2012-01-25 12:30:32.737406480 +0100 ++++ transmission-2.42/cli/Makefile.am 2012-01-25 15:25:14.903209957 +0100 +@@ -19,7 +19,7 @@ + transmission_cli_LDADD = \ + $(top_builddir)/libtransmission/libtransmission.a \ + @LIBUPNP_LIBS@ \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ ++ @LIBNATPMP_LIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ + @LIBEVENT_LIBS@ \ +diff -urN transmission-2.42.old/configure.ac transmission-2.42/configure.ac +--- transmission-2.42.old/configure.ac 2012-01-25 12:30:32.742406446 +0100 ++++ transmission-2.42/configure.ac 2012-01-25 14:45:14.264515474 +0100 +@@ -302,6 +302,29 @@ + AC_SUBST(LIBUPNP_CFLAGS) + AC_SUBST(LIBUPNP_LIBS) + AC_SUBST(LIBUPNP_LIBS_QT) ++ ++dnl ---------------------------------------------------------------------------- ++dnl ++dnl Allow usage of system natpmp library ++LIBNATPMP_CFLAGS="-I\$(top_srcdir)/third-party/libnatpmp/" ++LIBNATPMP_LIBS="\$(top_builddir)/third-party/natpmp/libnatpmp.a" ++LIBNATPMP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/natpmp/libnatpmp.a" ++build_bundled_natpmp="yes" ++AC_ARG_ENABLE([external-natpmp], ++ AS_HELP_STRING([--enable-external-natpmp],[Use system external-natpmp]), ++ [want_external_natpmp=${enableval}], ++ [want_external_natpmp=no]) ++if test "x$want_external_natpmp" != "xno" ; then ++ dnl Would be lovely if it had pkgconfig ++ LIBNATPMP_CFLAGS="" ++ LIBNATPMP_LIBS="-lnatpmp" ++ LIBNATPMP_LIBS_QT="-lnatpmp" ++ build_bundled_natpmp="no" ++fi ++AM_CONDITIONAL([BUILD_NATPMP],[test "x$build_bundled_natpmp" = "xyes"]) ++AC_SUBST(LIBNATPMP_CFLAGS) ++AC_SUBST(LIBNATPMP_LIBS) ++AC_SUBST(LIBNATPMP_LIBS_QT) + dnl ---------------------------------------------------------------------------- + dnl + dnl detection for the GTK+ client +diff -urN transmission-2.42.old/daemon/Makefile.am transmission-2.42/daemon/Makefile.am +--- transmission-2.42.old/daemon/Makefile.am 2012-01-25 12:30:32.742406446 +0100 ++++ transmission-2.42/daemon/Makefile.am 2012-01-25 12:48:10.476222152 +0100 +@@ -21,7 +21,7 @@ + LDADD = \ + $(top_builddir)/libtransmission/libtransmission.a \ + @LIBUPNP_LIBS@ \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ ++ @LIBNATPMP_LIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ + @LIBEVENT_LIBS@ \ +diff -urN transmission-2.42.old/gtk/Makefile.am transmission-2.42/gtk/Makefile.am +--- transmission-2.42.old/gtk/Makefile.am 2012-01-25 12:30:32.742406446 +0100 ++++ transmission-2.42/gtk/Makefile.am 2012-01-25 14:46:46.797886956 +0100 +@@ -85,7 +85,7 @@ + transmission_gtk_LDADD = \ + $(top_builddir)/libtransmission/libtransmission.a \ + @LIBUPNP_LIBS@ \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ ++ @LIBNATPMP_LIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ + @GTK_LIBS@ \ +diff -urN transmission-2.42.old/libtransmission/Makefile.am transmission-2.42/libtransmission/Makefile.am +--- transmission-2.42.old/libtransmission/Makefile.am 2012-01-25 12:30:32.739406466 +0100 ++++ transmission-2.42/libtransmission/Makefile.am 2012-01-25 15:10:54.507053909 +0100 +@@ -1,7 +1,5 @@ + AM_CPPFLAGS = \ +- -I. \ + -I$(top_srcdir) \ +- -I$(top_srcdir)/third-party/ \ + -D__TRANSMISSION__ \ + -DPACKAGE_DATA_DIR=\""$(datadir)"\" + +@@ -9,6 +7,7 @@ + @DHT_CFLAGS@ \ + @LIBUTP_CFLAGS@ \ + @LIBUPNP_CFLAGS@ \ ++ @LIBNATPMP_CFLAGS@ \ + @LIBEVENT_CFLAGS@ \ + @LIBCURL_CFLAGS@ \ + @OPENSSL_CFLAGS@ \ +@@ -91,7 +90,7 @@ + magnet.h \ + makemeta.h \ + metainfo.h \ +- natpmp.h \ ++ natpmp_local.h \ + net.h \ + peer-common.h \ + peer-io.h \ +@@ -141,7 +140,7 @@ + apps_ldadd = \ + ./libtransmission.a \ + @LIBUPNP_LIBS@ \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ ++ @LIBNATPMP_LIBS@ \ + @INTLLIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ +diff -urN transmission-2.42.old/libtransmission/natpmp.c transmission-2.42/libtransmission/natpmp.c +--- transmission-2.42.old/libtransmission/natpmp.c 2012-01-25 12:30:32.739406466 +0100 ++++ transmission-2.42/libtransmission/natpmp.c 2012-01-25 15:11:10.186947403 +0100 +@@ -17,10 +17,10 @@ + #include <event2/util.h> /* evutil_inet_ntop() */ + + #define ENABLE_STRNATPMPERR +-#include <libnatpmp/natpmp.h> ++#include "natpmp.h" + + #include "transmission.h" +-#include "natpmp.h" ++#include "natpmp_local.h" + #include "net.h" /* tr_netCloseSocket */ + #include "port-forwarding.h" + #include "utils.h" +diff -urN transmission-2.42.old/libtransmission/natpmp.h transmission-2.42/libtransmission/natpmp.h +--- transmission-2.42.old/libtransmission/natpmp.h 2012-01-25 12:30:32.739406466 +0100 ++++ transmission-2.42/libtransmission/natpmp.h 1970-01-01 01:00:00.000000000 +0100 +@@ -1,34 +0,0 @@ +-/* +- * This file Copyright (C) Mnemosyne LLC +- * +- * This file is licensed by the GPL version 2. Works owned by the +- * Transmission project are granted a special exemption to clause 2(b) +- * so that the bulk of its code can remain under the MIT license. +- * This exemption does not extend to derived works not owned by +- * the Transmission project. +- * +- * $Id: natpmp.h 12204 2011-03-22 15:19:54Z jordan $ +- */ +- +-#ifndef __TRANSMISSION__ +-#error only libtransmission should #include this header. +-#endif +- +-#ifndef TR_NATPMP_H +-#define TR_NATPMP_H 1 +- +-/** +- * @addtogroup port_forwarding Port Forwarding +- * @{ +- */ +- +-typedef struct tr_natpmp tr_natpmp; +- +-tr_natpmp * tr_natpmpInit( void ); +- +-void tr_natpmpClose( tr_natpmp * ); +- +-int tr_natpmpPulse( tr_natpmp *, tr_port port, bool isEnabled, tr_port * public_port ); +- +-/* @} */ +-#endif +diff -urN transmission-2.42.old/libtransmission/natpmp_local.h transmission-2.42/libtransmission/natpmp_local.h +--- transmission-2.42.old/libtransmission/natpmp_local.h 1970-01-01 01:00:00.000000000 +0100 ++++ transmission-2.42/libtransmission/natpmp_local.h 2012-01-25 12:27:55.513474369 +0100 +@@ -0,0 +1,34 @@ ++/* ++ * This file Copyright (C) Mnemosyne LLC ++ * ++ * This file is licensed by the GPL version 2. Works owned by the ++ * Transmission project are granted a special exemption to clause 2(b) ++ * so that the bulk of its code can remain under the MIT license. ++ * This exemption does not extend to derived works not owned by ++ * the Transmission project. ++ * ++ * $Id: natpmp.h 12204 2011-03-22 15:19:54Z jordan $ ++ */ ++ ++#ifndef __TRANSMISSION__ ++#error only libtransmission should #include this header. ++#endif ++ ++#ifndef TR_NATPMP_H ++#define TR_NATPMP_H 1 ++ ++/** ++ * @addtogroup port_forwarding Port Forwarding ++ * @{ ++ */ ++ ++typedef struct tr_natpmp tr_natpmp; ++ ++tr_natpmp * tr_natpmpInit( void ); ++ ++void tr_natpmpClose( tr_natpmp * ); ++ ++int tr_natpmpPulse( tr_natpmp *, tr_port port, bool isEnabled, tr_port * public_port ); ++ ++/* @} */ ++#endif +diff -urN transmission-2.42.old/libtransmission/port-forwarding.c transmission-2.42/libtransmission/port-forwarding.c +--- transmission-2.42.old/libtransmission/port-forwarding.c 2012-01-25 12:30:32.739406466 +0100 ++++ transmission-2.42/libtransmission/port-forwarding.c 2012-01-25 15:19:34.684520801 +0100 +@@ -18,7 +18,7 @@ + #include <event2/event.h> + + #include "transmission.h" +-#include "natpmp.h" ++#include "natpmp_local.h" + #include "net.h" + #include "peer-mgr.h" + #include "port-forwarding.h" +diff -urN transmission-2.42.old/qt/config.in transmission-2.42/qt/config.in +--- transmission-2.42.old/qt/config.in 2012-01-25 12:30:32.741406452 +0100 ++++ transmission-2.42/qt/config.in 2012-01-25 14:47:43.390502589 +0100 +@@ -1,3 +1,4 @@ + LIBUTP_LIBS = @LIBUTP_LIBS_QT@ + MINIUPNP_LIBS = @LIBUPNP_LIBS_QT@ ++NATPNP_LIBS = @LIBNATPNP_LIBS_QT@ + +diff -urN transmission-2.42.old/qt/qtr.pro transmission-2.42/qt/qtr.pro +--- transmission-2.42.old/qt/qtr.pro 2012-01-25 12:30:32.742406446 +0100 ++++ transmission-2.42/qt/qtr.pro 2012-01-25 14:47:32.270578114 +0100 +@@ -24,7 +24,7 @@ + LIBS += $${LIBUTP_LIBS} + LIBS += $${TRANSMISSION_TOP}/third-party/dht/libdht.a + LIBS += $${MINIUPNP_LIBS} +-LIBS += $${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a ++LIBS += $${NATPNP_LIBS} + unix: LIBS += -L$${EVENT_TOP}/lib -lz -lrt + win32:DEFINES += QT_DBUS + win32:LIBS += -levent-2.0 -lws2_32 -lintl +diff -urN transmission-2.42.old/third-party/Makefile.am transmission-2.42/third-party/Makefile.am +--- transmission-2.42.old/third-party/Makefile.am 2012-01-25 12:30:32.702406719 +0100 ++++ transmission-2.42/third-party/Makefile.am 2012-01-25 14:45:04.312583068 +0100 +@@ -4,10 +4,13 @@ + if BUILD_MINIUPNP + MINIUPNP_DIR = miniupnp + endif ++if BUILD_NATPMP ++ NATPMP_DIR = libnatpmp ++endif + + SUBDIRS = \ + dht \ +- libnatpmp \ ++ $(NATPMP_DIR) \ + $(MINIUPNP_DIR) \ + $(UTP_DIR) + +diff -urN transmission-2.42.old/utils/Makefile.am transmission-2.42/utils/Makefile.am +--- transmission-2.42.old/utils/Makefile.am 2012-01-25 12:30:32.744406434 +0100 ++++ transmission-2.42/utils/Makefile.am 2012-01-25 12:48:14.787192871 +0100 +@@ -27,7 +27,7 @@ + transmission_create_LDADD = \ + $(top_builddir)/libtransmission/libtransmission.a \ + @LIBUPNP_LIBS@ \ +- $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ ++ @LIBNATPMP_LIBS@ \ + @INTLLIBS@ \ + @DHT_LIBS@ \ + @LIBUTP_LIBS@ \ diff --git a/net-p2p/transmission/files/transmission-2.42-respect-cflags.patch b/net-p2p/transmission/files/transmission-2.42-respect-cflags.patch new file mode 100644 index 000000000000..bbd0678cf30b --- /dev/null +++ b/net-p2p/transmission/files/transmission-2.42-respect-cflags.patch @@ -0,0 +1,12 @@ +diff -urN transmission-2.42.old/configure.ac transmission-2.42/configure.ac +--- transmission-2.42.old/configure.ac 2011-10-20 03:57:56.703752495 +0200 ++++ transmission-2.42/configure.ac 2012-01-25 12:03:05.754593046 +0100 +@@ -77,7 +77,7 @@ + AC_C_INLINE + if test "x$GCC" = "xyes" ; then + +- CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal" ++ CFLAGS="$CFLAGS -std=gnu99 -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal" + + dnl figure out gcc version + AC_MSG_CHECKING([gcc version]) |