Re: git: a3cefe7f2b4d - main - Add 'contrib/pkgconf/' from commit '6294b6ab217a2d5f1d2bc23a64505a228294c508'

From: Cy Schubert <Cy.Schubert_at_cschubert.com>
Date: Fri, 24 Apr 2026 03:56:54 UTC
On Fri, 24 Apr 2026 03:27:06 +0200
Pierre Pronchery <khorben@defora.org> wrote:

> 			Hi Cy, (all)
> 
> > On 24 Apr 2026, at 02:57, Cy Schubert <Cy.Schubert@cschubert.com> wrote:
> > 
> > In message <69e8d0f5.21991.2317e6c2@gitrepo.freebsd.org>, Pierre Pronchery 
> > writ
> > es:  
> >> The branch main has been updated by khorben:
> >> 
> >> URL: https://cgit.FreeBSD.org/src/commit/?id=a3cefe7f2b4df0f70ff92d4570ce18e5
> >> 17af43ec
> >> 
> >> commit a3cefe7f2b4df0f70ff92d4570ce18e517af43ec
> >> Merge: 45827f9ad2e3 6294b6ab217a
> >> Author:     Pierre Pronchery <khorben@FreeBSD.org>
> >> AuthorDate: 2026-04-22 13:13:42 +0000
> >> Commit:     Pierre Pronchery <khorben@FreeBSD.org>
> >> CommitDate: 2026-04-22 13:13:42 +0000
> >> 
> >>    Add 'contrib/pkgconf/' from commit '6294b6ab217a2d5f1d2bc23a64505a228294c
> >> 508'
> >> 
> >>    git-subtree-dir: contrib/pkgconf
> >>    git-subtree-mainline: 45827f9ad2e32ec8e4cdde62cbf722a48fb1b396
> >>    git-subtree-split: 6294b6ab217a2d5f1d2bc23a64505a228294c508
> >>   
> > 
> > This commit breaks the x11-toolkits/gtk20 build. It tries pkg-config 
> > --exists cairo-xlib, receiving a return code indicating graphics/cairo does 
> > not have X11 support. To fix this we may need to update ports to use 
> > pkg-config in $LOCALBASE or the base pkg-config should also search for .pc 
> > files in $LOCALBASE/share/pkgconf, in addition to where base .pc files will 
> > be stored. Disabling PKGCONF in base circumvents the problem but it is not 
> > the solution. (Poudriere is yet another matter.)
> > 
> > Thoughts?  
> 
> First: sorry for the breakage.

It's nobody's fault.

> 
> I am a bit confused, because on my system, with gtk2 installed:
> 
> - there is no /usr/local/share/pkgconf folder
> - cairo-xlib.pc and x11.pc are both in /usr/local/libdata/pkgconfig
> - pkg-config in base is already built with PKG_DEFAULT_PATH including
>   /usr/local/libdata/pkgconfig
> 
> Am I missing something?

Setting PKG_CONFIG_PATH has resolved the issue.

PKG_CONFIG_PATH=/usr/libd ata/pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig pkg-config --exists cairo-xlib; echo $?
0
stinky# 

Yes, both $LOCALBASE/libdata/pkgconfig and $LOCALBASE/shre/pkgconfig
exist, each with .pc files installed by different ports. This is best
discussed in a different thread on a different ML.

Would adding an entry to UPDATING be of some value?

> 
> Cheers & HTH,



-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e**(i*pi)+1=0