Bug 290936 - devel/openfec: Fix and improve port
Summary: devel/openfec: Fix and improve 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: Mark Felder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-10 21:09 UTC by Daniel Engberg
Modified: 2025-11-11 20:09 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (feld)


Attachments
Patch for openfec (3.00 KB, patch)
2025-11-10 21:09 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 2025-11-10 21:09:23 UTC
Created attachment 265315 [details]
Patch for openfec

* Use variables (DISTVERSIONPREFIX and DISTVERSION) as instructed by Porters Handbook [1]
* Remove incorrect depdenencies
* Remove USES= tar:tgz (unnecessary and incorrect GitHub uses tar.gz)
* Add USES= pathfix to fix install location for .pc file and keep build log consistent
* Respect (C)FLAGS and framework overall [2]
* Add "make test" target

1: https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_sites-github (see example 14)
2: https://docs.freebsd.org/en/books/porters-handbook/book/#dads-cflags
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2025-11-10 21:10:06 UTC
Compile and runtime tested on FreeBSD 14.3-RELEASE (amd64) (make, make check-plist, make test)

Poudriere testport OK 13.5-RELEASE (amd64)
Poudriere testport OK 13.5-RELEASE (i386)
Poudriere testport OK 14.3-RELEASE (amd64)

Please test ports at least with DEVELOPER=yes enabled to catch (in many cases) incorrect dependency definitions. Poudriere testport is also very useful and bulk -t
Comment 2 Mark Felder freebsd_committer freebsd_triage 2025-11-11 20:05:53 UTC
Thanks! Sorry about that tar:tgz thing, that was because I started porting the original software not the fork that they specifically released as a .tgz and I forgot to remove this. The original upstream also had a really broken cmake setup -- it didn't even have an install target.

Upstream has been trying to get this software working on FreeBSD, so they will really appreciate this.
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-11-11 20:08:43 UTC
A commit in branch main references this bug:

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

commit 181fe3f6dcf173e152c32a5f88c18725104cd13e
Author:     Mark Felder <feld@FreeBSD.org>
AuthorDate: 2025-11-11 20:06:55 +0000
Commit:     Mark Felder <feld@FreeBSD.org>
CommitDate: 2025-11-11 20:08:11 +0000

    devel/openfec: Port improvements

    PR:     290936

 devel/openfec/Makefile                         | 17 ++++----
 devel/openfec/files/patch-CMakeLists.txt (new) | 55 ++++++++++++++++++++++++++
 2 files changed, 64 insertions(+), 8 deletions(-)