Bug 284970 - devel/libnvme: Fix port
Summary: devel/libnvme: Fix 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: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-22 21:00 UTC by Daniel Engberg
Modified: 2025-02-23 21:21 UTC (History)
1 user (show)

See Also:
imp: maintainer-feedback+


Attachments
Patch for libnvme (2.31 KB, patch)
2025-02-22 21:00 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-02-22 21:00:14 UTC
Created attachment 257749 [details]
Patch for libnvme

* Use DISTVERSION (and consistent)
https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_sites-github
* Fix COMMENT
* Define LICENSE_FILE
https://docs.freebsd.org/en/books/porters-handbook/book/#licenses-license
* Remove CXXFLAGS, project uses C
* Simplify MAJORVER definition
* Adjust pkg-descr
* Rearrange Makefile so it follows Porters Handbook more close

Poudriere testport OK 14.2-RELEASE and 13.4-RELEASE
Comment 1 Warner Losh freebsd_committer freebsd_triage 2025-02-22 22:26:45 UTC
Please leave the CXX flags. This project does use C++ for the tests. I have the tests disabled at the moment, but for ease of use, etc, please leave them here.

Otherwise the changes look good and can proceed.
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2025-02-22 23:34:27 UTC
Another note, there's something wonky going on with upstream Meson build as it tried to run unit tests despite being disabled (make test).
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-02-23 16:12:22 UTC
A commit in branch main references this bug:

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

commit 3e5eab32850a99e051264ab160a0ee16c6f51abc
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-02-23 16:02:14 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-02-23 16:11:02 +0000

    devel/libnvme: Fix port

    * Use DISTVERSION (and consistent)
    * Fix COMMENT
    * Define LICENSE_FILE
    * Remove CXXFLAGS, project uses C
    * Simplify MAJORVER definition
    * Adjust pkg-descr
    * Rearrange Makefile so it follows Porters Handbook more closely

    Poudriere testport OK 14.2-RELEASE and 13.4-RELEASE

    PR: 284970
    Reviewed by: imp

 devel/libnvme/Makefile  | 26 ++++++++++++++++----------
 devel/libnvme/pkg-descr |  2 +-
 devel/libnvme/pkg-plist |  4 ++--
 3 files changed, 19 insertions(+), 13 deletions(-)