Attached is an update for net/transmission from 4.0.2 to 4.0.3.

4.0.3 is a minor bugfix release.

This diff includes a new patch from upstream for their PR #5424
to fix a problem reported to ports@ by Raf Czlonka yesterday:

     https://marc.info/?t=168198985400002&r=1&w=2

The patch has been tested by both Raf and by me.
diff --git a/net/transmission/Makefile b/net/transmission/Makefile
index 6cd2ce7db45..a90da8abdc3 100644
--- a/net/transmission/Makefile
+++ b/net/transmission/Makefile
@@ -2,7 +2,7 @@ COMMENT-main=   BitTorrent command line and daemon client
 COMMENT-gtk=   BitTorrent client with GTK+ interface
 COMMENT-qt=    BitTorrent client with Qt interface
 
-VER=           4.0.2
+VER=           4.0.3
 DISTNAME=      transmission-${VER}
 PKGNAME-main=  transmission-${VER}
 PKGNAME-gtk=   transmission-gtk-${VER}
diff --git a/net/transmission/distinfo b/net/transmission/distinfo
index ec566e87c0f..438c9be7cc0 100644
--- a/net/transmission/distinfo
+++ b/net/transmission/distinfo
@@ -1,2 +1,2 @@
-SHA256 (transmission-4.0.2.tar.xz) = 
Ob96EEpyKAWp3Aic2q/+M7+QuCIwp+p/NAyuWfAKLug=
-SIZE (transmission-4.0.2.tar.xz) = 10055708
+SHA256 (transmission-4.0.3.tar.xz) = 
trAf1Y5CuxT3q6AlPbkyztBQ/NK7pdn4Rp133ditVFo=
+SIZE (transmission-4.0.3.tar.xz) = 10062044
diff --git a/net/transmission/patches/patch-cli_cli_cc 
b/net/transmission/patches/patch-cli_cli_cc
new file mode 100644
index 00000000000..dd129a87d74
--- /dev/null
+++ b/net/transmission/patches/patch-cli_cli_cc
@@ -0,0 +1,14 @@
+PR 5424 - fix from upstream
+Index: cli/cli.cc
+--- cli/cli.cc.orig
++++ cli/cli.cc
+@@ -257,7 +257,8 @@ int tr_main(int argc, char* argv[])
+ 
+     tr_ctorSetPaused(ctor, TR_FORCE, false);
+ 
+-    if (tr_ctorSetMetainfoFromFile(ctor, torrentPath, nullptr) || 
tr_ctorSetMetainfoFromMagnetLink(ctor, torrentPath, nullptr))
++    if (tr_sys_path_exists(torrentPath) ? tr_ctorSetMetainfoFromFile(ctor, 
torrentPath, nullptr) :
++                                          
tr_ctorSetMetainfoFromMagnetLink(ctor, torrentPath, nullptr))
+     {
+         // all good
+     }
diff --git a/net/transmission/pkg/PLIST-main b/net/transmission/pkg/PLIST-main
index 383529f755a..29e2f7d32e0 100644
--- a/net/transmission/pkg/PLIST-main
+++ b/net/transmission/pkg/PLIST-main
@@ -58,6 +58,7 @@ share/doc/transmission/news/news-4.0.0-beta-3.md
 share/doc/transmission/news/news-4.0.0.md
 share/doc/transmission/news/news-4.0.1.md
 share/doc/transmission/news/news-4.0.2.md
+share/doc/transmission/news/news-4.0.3.md
 share/doc/transmission/rpc-spec.md
 share/doc/transmission/send-email-when-torrent-done.sh
 @comment XXX update-plist(1) really wants this here, but -main is CLI only

Reply via email to