Bug 275613 - net-p2p/transmission Update 4.0.5
Summary: net-p2p/transmission Update 4.0.5
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-07 18:40 UTC by Matt
Modified: 2023-12-17 19:12 UTC (History)
4 users (show)

See Also:
mondo.debater_0q: maintainer-feedback+


Attachments
Patch (2.24 KB, patch)
2023-12-07 18:40 UTC, Matt
no flags Details | Diff
Patch to 4.0.5 (2.34 KB, patch)
2023-12-07 18:50 UTC, Matt
no flags Details | Diff
Patch to 4.0.5 (2.82 KB, patch)
2023-12-07 18:56 UTC, Matt
no flags Details | Diff
patch-transmission_4.0.5 (6.65 KB, patch)
2023-12-11 21:40 UTC, Rafe
mondo.debater_0q: maintainer-approval+
Details | Diff
patch-transmission_4.0.5_2 (8.21 KB, patch)
2023-12-15 17:28 UTC, Rafe
mondo.debater_0q: maintainer-approval+
Details | Diff
Patch for transmission (8.15 KB, patch)
2023-12-16 10:56 UTC, Daniel Engberg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt 2023-12-07 18:40:03 UTC
Created attachment 246879 [details]
Patch

From Release: https://github.com/transmission/transmission/releases/tag/4.0.5

Transmission 4.0.5
This is a bugfix-only release. Everyone's feedback on 4.0.x has been very helpful -- thanks for all the suggestions, bug reports, and pull requests!

What's New in 4.0.5
Highlights
Fixed 4.0.0 bug where the IP address field in UDP announces were not encoded in network byte order. [BEP-15].
Fixed a bug that incorrectly escaped JSON strings in some locales.
Fixed 4.0.4 decreased download speeds for people who set a low upload bandwidth limit.

All Platforms
Fixed bug that prevented editing trackers on magnet links.
Fixed HTTP tracker announces and scrapes sometimes failing after adding a torrent file by HTTPS URL.
In RPC responses, change the default sort order of torrents to match Transmission 3.00.
Fixed tr_sys_path_copy() behavior on some Synology Devices.

Qt Client
Fix: only append .added suffix to watchdir files.

GTK Client
Fixed crash when opening torrent file from "Recently used" section in GTK 4.
Comment 1 Matt 2023-12-07 18:42:28 UTC
Looks like it breaks the web UI. Nevermind probably needs some new dependency.
Comment 2 Matt 2023-12-07 18:50:50 UTC
Created attachment 246881 [details]
Patch to 4.0.5

Yep forgot a new file
Comment 3 Matt 2023-12-07 18:56:59 UTC
Created attachment 246882 [details]
Patch to 4.0.5
Comment 4 Rafe 2023-12-07 20:55:59 UTC
(In reply to Matt from comment #3)
Thanks. Please write a commit message and upload a new patch created from git format-patch origin/main. 

For committer: The submitted patch builds cleanly for all flavors when built on FreeBSD 14 amd64 using poudriere.
Comment 5 Daniel Engberg freebsd_committer freebsd_triage 2023-12-08 00:12:01 UTC
Any reason to why we're not using upstreams release archive?
https://github.com/transmission/transmission/releases/download/4.0.5/transmission-4.0.5.tar.xz

Best regards,
Daniel
Comment 6 Rafe 2023-12-08 00:21:36 UTC
(In reply to Daniel Engberg from comment #5)
It was structured this way when I took over the port earlier this year. I didn't realize that pulling directly from Github was disfavored.

In any event, Transmission bundles many third party dependencies in their release archives that we address separately through the Makefile. I imagine the original porter did it this way to avoid having to deal with that.
Comment 7 Daniel Engberg freebsd_committer freebsd_triage 2023-12-11 20:22:33 UTC
I have a ~90% complete patch, I'll try to fix the rest during this week.
Comment 8 Rafe 2023-12-11 21:40:41 UTC
Created attachment 246993 [details]
patch-transmission_4.0.5

Please see a completed and tested patch attached. 

Your response did not make clear that the use of git was holding up this update. I wish it had as I would have posted this earlier. I had already revised the port to address your comment, but I didn't think this needed to go in this time around.
Comment 9 Anton Saietskii 2023-12-13 11:38:01 UTC
(In reply to Daniel Engberg from comment #5)

I guess reason is that review D37929 not landed yet.
Comment 10 Daniel Engberg freebsd_committer freebsd_triage 2023-12-14 05:55:10 UTC
Hi,

I'll have a look at this during the weekend

Best regards,
Daniel
Comment 11 Rafe 2023-12-15 17:28:37 UTC
Created attachment 247070 [details]
patch-transmission_4.0.5_2

The patch I uploaded no longer compiles due to the update to utf8cpp. I see a bunch of stuff is going on over there. The *.cmake files were dropped from the port and the install location was changed.

I have inelegantly worked around this in the attached by patching the location of utf8.h. Why is this necessary is beyond me as I thought the port compiled using a location of the relevant files that was within ${WRKSRC}. In fact, the port builds fine even if I don't provide ${WRKSRC} locations for utf8cpp, fmt, and fast_float—-so long as those directories exist (as they must be found by cmake).

Daniel, I see you are involved in the update to utf8cpp. Please don't let me get in the way if you have a preferred way to address this (and perhaps the other dependencies mentioned above). 

Thank you
Comment 12 Daniel Engberg freebsd_committer freebsd_triage 2023-12-16 10:56:42 UTC
Created attachment 247080 [details]
Patch for transmission

Hi,

This cleans up our hacking in transmission-components's Makefile, corrects a few dependencies and some other minor things. I didn't unbundle googletests as that needs more work and I don't have the motivation to do that right now.

Builds on 14.0-CURRENT and 13.2-RELEASE using Poudriere.

Best regards,
Daniel
Comment 13 Rafe 2023-12-16 21:01:55 UTC
Comment on attachment 247080 [details]
Patch for transmission

Please commit at your convenience. Thank you!
Comment 14 commit-hook freebsd_committer freebsd_triage 2023-12-17 19:05:47 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d6b1eec0f0d51e4ef3e420cd091505c9beb00e2a

commit d6b1eec0f0d51e4ef3e420cd091505c9beb00e2a
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-12-17 08:21:54 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-12-17 19:04:30 +0000

    net-p2p/transmission*: Update to 4.0.5

    * Use upstream release archive
    * Unbundle more 3rd party code and reduce i/o during extraction

    Changelog:
    https://github.com/transmission/transmission/releases/tag/4.0.5

    PR:             275613
    Reviewed by:    Rafe <mondo.debater_0q@icloud.com> (maintainer)

 net-p2p/transmission-components/Makefile           | 38 ++++++++++++----------
 net-p2p/transmission-components/distinfo           | 14 ++------
 .../files/patch-cmake_FindFastFloat.cmake (new)    |  8 +++++
 .../files/patch-cmake_FindFmt.cmake (new)          | 11 +++++++
 .../files/patch-cmake_FindUtfCpp.cmake (new)       |  8 +++++
 net-p2p/transmission-components/pkg-plist.daemon   |  3 +-
 net-p2p/transmission-components/pkg-plist.docs     |  1 +
 net-p2p/transmission/Makefile                      |  3 +-
 8 files changed, 54 insertions(+), 32 deletions(-)
Comment 15 Daniel Engberg freebsd_committer freebsd_triage 2023-12-17 19:12:14 UTC
Committed with some minor text cleanups
Thanks!