Bug 278901

Summary: irc/znc: include pkgconfig at runtime for module compiling
Product: Ports & Packages Reporter: Dan Langille <dvl>
Component: Individual Port(s)Assignee: Dan Langille <dvl>
Status: Closed FIXED    
Severity: Affects Only Me CC: dbaio
Priority: --- Flags: dbaio: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
alters USES=pkgconfig to USES=pkgconfig:both dbaio: maintainer-approval+

Description Dan Langille freebsd_committer freebsd_triage 2024-05-10 20:34:38 UTC
Created attachment 250573 [details]
alters USES=pkgconfig to USES=pkgconfig:both

After updating to 1.9.0, I needed to recompile some modules:

Checking for list of available modules... 
Opening config [/usr/home/dvl/.znc/configs/znc.conf]... 
Found old config from ZNC 1.8.2. Saving a backup of it.
Creating a config backup... /usr/home/dvl/.znc/configs/znc.conf.pre-1.9.0
Loading global module [webadmin]... 
Loading global module [adminlog]... 
Loading global module [playback]... [ Version mismatch for module playback: core is 1.9.0, module is built for 1.8.2. Recompile this module. ]
Unrecoverable config error.

Attempts to recompile resulted in:

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

The attached patch fixed that for me
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-05-10 21:14:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=182dd49cd63d8cad14e7625db663d61d864a1c7c

commit 182dd49cd63d8cad14e7625db663d61d864a1c7c
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2024-05-10 21:10:34 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2024-05-10 21:13:31 +0000

    irc/znc: add pkgconfig at runtime

    Include pkgconfig at runtime for module compiling

    PR:             278901

 irc/znc/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 2 Dan Langille freebsd_committer freebsd_triage 2024-05-10 21:15:05 UTC
Thank you.