Bug 294986 - audio/libdiscid: Backport upstream fix and some improvements to port
Summary: audio/libdiscid: Backport upstream fix and some improvements to port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jason E. Hale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-05-03 17:54 UTC by Daniel Engberg
Modified: 2026-06-18 18:24 UTC (History)
0 users

See Also:
jhale: maintainer-feedback+


Attachments
Patch for libdiscid (1.59 KB, patch)
2026-05-31 21:11 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 Daniel Engberg freebsd_committer freebsd_triage 2026-05-03 17:54:57 UTC
* Backport upstream commit d9e81a9a8af7679733907418a340c50e9fec8023
* Remove dead mirror site
* Add USES= pathfix

Reference:
https://github.com/metabrainz/libdiscid/commit/d9e81a9a8af7679733907418a340c50e9fec8023
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2026-05-31 21:11:48 UTC
Created attachment 271383 [details]
Patch for libdiscid
Comment 2 Jason E. Hale freebsd_committer freebsd_triage 2026-06-02 09:03:00 UTC
Why add pathfix back in? I thought that was deprecated and handled automatically now.
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2026-06-02 16:22:04 UTC
(In reply to Jason E. Hale from comment #2)
Once again a mat and bapt does something and later refuses to answer.
https://cgit.freebsd.org/ports/commit/Mk/bsd.port.mk?id=42c7fa35dcb9fd63e338ef6ac1a7e8b5fe4ca173

https://lists.freebsd.org/archives/dev-commits-ports-main/2025-September/162646.html

I (among others) want a build log that's accurate
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-06-15 22:36:34 UTC
A commit in branch main references this bug:

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

commit d5569f488c5eccfb28651f00a7dd73f51035e563
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2026-06-15 17:23:58 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2026-06-15 17:39:46 +0000

    audio/libdiscid: Use HTTPS for MusicBrainz URLs

    Add upstream commit to use HTTPS for MusicBrainz URLs to prevent
    redirects and potential man-in-the-middle (MITM) attacks.

    Update MASTER_SITES.

    Co-authored-by: Jason E. Hale <jhale@FreeBSD.org>

    PR:             294986

 audio/libdiscid/Makefile | 11 +++++++----
 audio/libdiscid/distinfo |  4 +++-
 2 files changed, 10 insertions(+), 5 deletions(-)
Comment 5 Jason E. Hale freebsd_committer freebsd_triage 2026-06-15 22:37:51 UTC
Committed with minor changes, thanks!
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2026-06-16 00:53:18 UTC
Thanks,
There's no need to add += to PATCHFILES btw
Comment 7 Jason E. Hale freebsd_committer freebsd_triage 2026-06-18 17:23:33 UTC
(In reply to Daniel Engberg from comment #6)
If there’s another patch that needs to be added, using += creates less churn and allows for a brief inline comment as to what the patch does.
Comment 8 Daniel Engberg freebsd_committer freebsd_triage 2026-06-18 17:38:42 UTC
(In reply to Jason E. Hale from comment #7)
Add it in commit message instead of cluttering the Makefile? Fwiw, it's also the syntax PH suggests.
https://docs.freebsd.org/en/books/porters-handbook/book/#porting-patchfiles
Comment 9 Jason E. Hale freebsd_committer freebsd_triage 2026-06-18 18:24:30 UTC
(In reply to Daniel Engberg from comment #8)
A brief comment in the Makefile saves me having to do research months or years later. The PHB shows two patches on the same line which is not great for readability, but I imagine it was done this way to simplify the example.