Bug 282972 - sysutils/fastfetch: Rework port
Summary: sysutils/fastfetch: Rework port
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Bugmeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-25 20:24 UTC by Daniel Engberg
Modified: 2026-07-08 02:52 UTC (History)
0 users

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


Attachments
Patch for fastfetch (4.07 KB, patch)
2024-11-25 20:24 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 2024-11-25 20:24:24 UTC
Created attachment 255452 [details]
Patch for fastfetch

* Link libs instead of relying on dlopen
* Disable LTO (increases binary size)
* Use helpers when possible
* Sort menu items in Makefile
* Add IMPLIES for a few options where they pull in matching deps

Poudriere testport OK, 13.4-RELEASE (amd64), 14.1-RELEASE (amd64)
Comment 1 Piotr Kubaj freebsd_committer freebsd_triage 2024-11-29 12:44:00 UTC
Do not add all the dependencies to LIB_DEPENDS. This will bring a lot of library dependencies to users. Project's intention is to use dlopen and let users install whatever they want. This is why all the dependencies are only build-time. Adding -lelf to LDFLAGS is ok, since it's in base.
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2024-11-30 12:35:48 UTC
We don't track build deps which may result in (silent) breakage due to library API/ABI mismatches and that also seem to be of concern in some other repos. A tradeoff would be using flavours such as lite/light and full.

Best regards,
Daniel
Comment 3 Piotr Kubaj freebsd_committer freebsd_triage 2024-12-01 11:44:23 UTC
In that case, PORTREVISION should be bumped, when libraries are upgraded. Adding all the libraries to LIB_DEPENDS is not a valid solution, it will bring a lot of unnecessary dependencies. Just recently, I found an old PR (still open), that I closed, where a user reported he was running a headless system and didn't want graphics dependencies.

Another thing, fastfetch is has new versions quite often and in case there are some breakages due to upgraded libraries, new version will be rebuilt with the current libraries anyway.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2026-07-08 02:52:05 UTC
^Triage: in the past 18 months, the ports tree has changed enough where
these patches no longer apply.

As bugmeister, I am going to declare this as OBE because the maintainer
is not interested in changing the port in this way.