Re: git: b8352da33f34 - main - pkgconf: import into the base system
Date: Sat, 25 Apr 2026 19:49:23 UTC
On Sat, Apr 25, 2026 at 6:53 PM Antoine Brodin <antoine@freebsd.org> wrote:
> On Sat, Apr 25, 2026 at 3:05 PM Pierre Pronchery <khorben@freebsd.org> wrote:
> >
> > Hi Antoine, (all)
> >
> > > On 25 Apr 2026, at 14:57, Antoine Brodin <antoine@freebsd.org> wrote:
> > >
> > > On Wed, Apr 22, 2026 at 3:45 PM Pierre Pronchery <khorben@freebsd.org> wrote:
> > >>
> > >> The branch main has been updated by khorben:
> > >>
> > >> URL: https://cgit.FreeBSD.org/src/commit/?id=b8352da33f3434f0ba6093df361261d1b1f973a1
> > >>
> > >> commit b8352da33f3434f0ba6093df361261d1b1f973a1
> > >> Author: Pierre Pronchery <khorben@FreeBSD.org>
> > >> AuthorDate: 2026-04-08 16:52:29 +0000
> > >> Commit: Pierre Pronchery <khorben@FreeBSD.org>
> > >> CommitDate: 2026-04-22 13:42:56 +0000
> > >>
> > >> pkgconf: import into the base system
> > >>
> > >> This introduces the following option:
> > >>
> > >> * MK_PKGCONF: determines if pkgconf and bomtool should be built
> > >>
> > >> The objective is to allow the creation of SBOM information while
> > >> building FreeBSD's src tree. The build system cannot rely on the
> > >> presence of bomtool (and eventually also spdxtool) in the build
> > >> environment, except for having it as part of the src tree directly.
> > >>
> > >> The framework implementing the generation of SBOM files is under review
> > >> in D56474.
> > >>
> > >> This will also help simplifying the build, with the introduction of
> > >> another framework relying on the availability of pkgconf.
> > >>
> > >> Sponsored by: Alpha-Omega, The FreeBSD Foundation
> > >> Reviewed by: bapt, philip
> > >> Approved by: philip (mentor)
> > >> Differential Revision: https://reviews.freebsd.org/D56404
> > >
> > > Does this version behave the same as the version from ports? Spoiler:
> > > it does not
> >
> > The objective is that it does behave the same way as the version from
> > ports. I am sorry that it doesn’t, and I am trying to understand how and
> > why.
> >
> > > It breaks some ports:
> > > https://pkg-status.freebsd.org/beefy24/data/main-amd64-default/pa52afc55257c_s0f7b8f79f6/logs/errors/rubygem-nokogiri-1.19.1_1.log
> > > https://pkg-status.freebsd.org/beefy24/data/main-amd64-default/pa52afc55257c_s0f7b8f79f6/logs/errors/gtk2-2.24.33_1.log
> > > https://pkg-status.freebsd.org/beefy24/data/main-amd64-default/pa52afc55257c_s0f7b8f79f6/logs/errors/gtk-layer-shell-0.10.1.log
> > > and probably a lot more
>
> The one from the ports tree has:
> PKG_DEFAULT_PATH =
> /usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig:/usr/local/share/pkgconfig
> SYSTEM_INCLUDEDIR = /usr/include
> SYSTEM_LIBDIR = /usr/lib
I think you have to switch from ${LOCALBASE:U} to
${LOCALBASE:U/usr/local} in the Makefile
Antoine