Bug 276780 - audio/cutmp3: update to 3.0.3
Summary: audio/cutmp3: update to 3.0.3
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: Fernando Apesteguía
URL: https://github.com/tarjanm-movidius/c...
Keywords:
: 276779 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-02 13:28 UTC by Matthew Phillips
Modified: 2024-02-08 16:58 UTC (History)
2 users (show)

See Also:


Attachments
patch to update to 3.0.3 (5.44 KB, patch)
2024-02-02 13:28 UTC, Matthew Phillips
no flags Details | Diff
updates based on review feedback (1.74 KB, patch)
2024-02-04 14:29 UTC, Matthew Phillips
no flags Details | Diff
Full patch for 3.0.3 upgrade to cutmp3 (5.47 KB, patch)
2024-02-04 18:48 UTC, Matthew Phillips
no flags Details | Diff
cutmp3 3.0.3 (5.35 KB, patch)
2024-02-04 19:12 UTC, Matthew Phillips
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Phillips 2024-02-02 13:28:11 UTC
This updates the audio/cutmp3 package to the latest version (3.0.3) and adds me as the maintainer.
Comment 1 Matthew Phillips 2024-02-02 13:28:36 UTC
Created attachment 248137 [details]
patch to update to 3.0.3
Comment 2 Matthew Phillips 2024-02-02 13:53:52 UTC
*** Bug 276779 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2024-02-03 06:58:51 UTC
Please update patch to follow https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_sites-github (first example including ordering)

USES= tar:bzip2
This is incorrect if you're using USE_GITHUB (see section in Porters Handbook)

Can we unbundle (lib)linenoise?
https://docs.freebsd.org/en/books/porters-handbook/book/#bundled-libs-practices

Do not override optimization
https://docs.freebsd.org/en/books/porters-handbook/book/#dads-cflags

Manpage should be installed into share/man

Looks like USES= ncurses should be added too?

Out of curiosity, does this provide any new functionality that ffmpeg dont?
Comment 4 Fernando Apesteguía freebsd_committer freebsd_triage 2024-02-03 12:05:35 UTC
^Triage: If there is a changelog or release notes URL available for this version, please add it to the URL field.

Q/A: PORTREVISION should be removed --> No need to update a new patch for this.


Thanks!
Comment 5 Matthew Phillips 2024-02-03 16:18:38 UTC
Thank you both for your review. This is my first time contributing and I made some mistakes, I'll try and do better. I'll work on a new patch which fixes the problems you both pointed out.

Daniel: I'd be happy to create another port for linenoise if you think that's needed. The previous maintainers of this port did not support it, which is why I did not think to do so. I haven not tried that feature personally, but I can try it out if it's important. Thank you.
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2024-02-04 09:19:28 UTC
If linenoise is optional that fine otherwise please try to use the port instead.
Comment 7 Matthew Phillips 2024-02-04 14:11:54 UTC
Fernando: I don't see a field named URL described in the handbook or bsd.port.mk, do you perhaps mean another field?
Comment 8 Matthew Phillips 2024-02-04 14:29:52 UTC
Created attachment 248185 [details]
updates based on review feedback
Comment 9 Matthew Phillips 2024-02-04 14:32:29 UTC
I've added a patch based on the feedback, which I think addresses most of it:

- Got rid of bzip2
- Uses DISTVERSION instead of PORTVERSION
- Reorders the Makefile. portlint comes out clean now
- Manpage is in the share/man folder now
- CFLAGS is additive
- PORTREVISION is removed

----

About ncurses, it's not actually used in the library. I'm not sure why the makefile mentions it, perhaps an old feature? You can see from the makefile the library is never used.
Comment 10 Fernando Apesteguía freebsd_committer freebsd_triage 2024-02-04 17:40:51 UTC
(In reply to Matthew Phillips from comment #7)
The URL field in this PR, right between "Assignee" and "Keywords" :-)
Comment 11 Fernando Apesteguía freebsd_committer freebsd_triage 2024-02-04 18:36:22 UTC
Hi Mathew,

Can you provide all the changes into one single patch that applies to the ports tree?
Comment 12 Matthew Phillips 2024-02-04 18:48:35 UTC
Created attachment 248187 [details]
Full patch for 3.0.3 upgrade to cutmp3

This is the full patch for cutmp3 3.0.3 with changes requested in review feedback.
Comment 13 Daniel Engberg freebsd_committer freebsd_triage 2024-02-04 18:56:18 UTC
Still applies -O2 unconditionally :/
Comment 14 Matthew Phillips 2024-02-04 19:12:24 UTC
Created attachment 248188 [details]
cutmp3 3.0.3

Full patch, this time removing 02
Comment 15 Fernando Apesteguía freebsd_committer freebsd_triage 2024-02-08 16:58:09 UTC
Committed,

Thanks!
Comment 16 commit-hook freebsd_committer freebsd_triage 2024-02-08 16:58:14 UTC
A commit in branch main references this bug:

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

commit 9250636afac175988c15f82bb09f976ebd17c84b
Author:     Matthew Phillips <matthew@matthewphillips.info>
AuthorDate: 2024-02-07 07:47:49 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2024-02-08 16:57:39 +0000

    audio/cutmp3: update to 3.0.3

    ChangeLog: https://github.com/tarjanm-movidius/cutmp3/releases/tag/v3.0.3

    Submitter becomes maintainer for the first time.

    PR:             276780
    Reported by:    matthew@matthewphillips.info
    Reviewed by:    diizzy@

 audio/cutmp3/Makefile             | 17 ++++++------
 audio/cutmp3/distinfo             |  5 ++--
 audio/cutmp3/files/patch-Makefile | 54 +++++++++++++++++++--------------------
 3 files changed, 38 insertions(+), 38 deletions(-)