[Bug 278901] irc/znc: include pkgconfig at runtime for module compiling

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 10 May 2024 20:34:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278901

            Bug ID: 278901
           Summary: irc/znc: include pkgconfig at runtime for module
                    compiling
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: dbaio@freebsd.org
          Reporter: dvl@FreeBSD.org
          Assignee: dbaio@freebsd.org
             Flags: maintainer-feedback?(dbaio@freebsd.org)

Created attachment 250573
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=250573&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.