Hello community, here is the log from the commit of package transmission for openSUSE:Factory checked in at 2015-12-03 13:27:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/transmission (Old) and /work/SRC/openSUSE:Factory/.transmission.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "transmission" Changes: -------- --- /work/SRC/openSUSE:Factory/transmission/transmission.changes 2014-07-26 12:19:39.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.transmission.new/transmission.changes 2015-12-03 13:27:15.000000000 +0100 @@ -1,0 +2,6 @@ +Mon Nov 30 17:37:42 UTC 2015 - [email protected] + +- Add transmission-miniupnp14.patch to fix compilation with + miniupnpc API level 14 + +------------------------------------------------------------------- New: ---- transmission-miniupnp14.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ transmission.spec ++++++ --- /var/tmp/diff_new_pack.57FKVt/_old 2015-12-03 13:27:16.000000000 +0100 +++ /var/tmp/diff_new_pack.57FKVt/_new 2015-12-03 13:27:16.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package transmission # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,8 @@ Url: http://www.transmissionbt.com/ Source0: http://download.m0k.org/transmission/files/%{name}-%{version}.tar.xz Source1: transmission-qt.desktop +# PATCH-FIX-UPSTREAM transmission-miniupnp14.patch [email protected] -- Fix build with miniupnpc api level 14 +Patch1: transmission-miniupnp14.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: intltool @@ -128,6 +130,7 @@ %lang_package -n %{name}-qt %prep %setup -q +%patch1 cp %{S:3} . %build ++++++ transmission-miniupnp14.patch ++++++ libtransmission: Build fix for miniupnp API version 14 Patch by Sander Sweers <[email protected]> Bug: https://bugs.gentoo.org/562020 Index: libtransmission/upnp.c =================================================================== --- libtransmission/upnp.c (revision 14564) +++ libtransmission/upnp.c (working copy) @@ -86,8 +86,12 @@ struct UPNPDev * ret; bool have_err; -#if (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */ +#if (MINIUPNPC_API_VERSION >= 14) /* adds ttl */ int err = UPNPDISCOVER_SUCCESS; + ret = upnpDiscover (msec, NULL, NULL, 0, 0, 2, &err); + have_err = err != UPNPDISCOVER_SUCCESS; +#elif (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */ + int err = UPNPDISCOVER_SUCCESS; ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err); have_err = err != UPNPDISCOVER_SUCCESS; #else
