Created attachment 246235 [details] patch
LGTM, but presumably ports@bsdserwis.com needs to approve this. Although it's net-mgmt/collectd5, not net/collectd5
Comment on attachment 246235 [details] patch I've made a bug #274300 2 weeks ago? I don't know why this bug was not "picked up" :-((( On my testing system libpfctl was in base system, so I think it is not needed to install the same lib from ports. But of course I can be wrong.
(In reply to Krzysztof from comment #2) Oh that is unfortunate.. sorry.. I thought I searched bugzilla but apparently I missed it. It needs to be installed from ports since that will have the right code for each version of FreeBSD, i.e. libpfctl missing on older versions. At least that is my understanding, right Kristof?
I am also trying to upstream this change: https://github.com/collectd/collectd/pull/4148
(In reply to Brad Davis from comment #3) > It needs to be installed from ports since that will have the right code for each version of FreeBSD, i.e. libpfctl missing on older versions. Correct. The libpfctl in the base system is a private library. I'm surprised that a port managed to build against it. It shouldn't be able to. It definitely shouldn't try.
Created attachment 246615 [details] patch new patch attached. I tried your idea from the other bug, LIB_DEPENDS for sysutils/nut requires a shared library, i.e. beginning with lib and ending with .so.
Comment on attachment 246615 [details] patch For me it is OK. Thanks a lot
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5b63443a6ea8490165d887f00c250f506f41e0d4 commit 5b63443a6ea8490165d887f00c250f506f41e0d4 Author: Brad Davis <brd@FreeBSD.org> AuthorDate: 2023-11-29 23:52:11 +0000 Commit: Brad Davis <brd@FreeBSD.org> CommitDate: 2023-11-29 23:55:47 +0000 net-mgmt/collectd5: Use libpfctl PR: 275013 Reviewed by: kp Approved by: Krzysztof <ports@bsdserwis.com> (maintainer) Sponsored by: Rubicon Communications, LLC ("Netgate") net-mgmt/collectd5/Makefile | 9 ++- net-mgmt/collectd5/files/patch-src__pf.c (new) | 84 ++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 3 deletions(-)