Re: git: 429cf37e1a46 - main - devel/kf6-kconfig: Add CPE information

From: Mathieu Arnold <mat_at_freebsd.org>
Date: Wed, 17 Jun 2026 05:19:20 UTC
On Wed, Jun 17, 2026 at 07:12:35AM +0200, Mathieu Arnold wrote:
> On Wed, Jun 17, 2026 at 12:21:28AM +0300, Max Brazhnikov wrote:
> > On Tue, 16 Jun 2026 22:17:07 +0200 decke@freebsd.org wrote:
> > > From: Max Brazhnikov <makc@freebsd.org>
> > > To: <ports-committers@freebsd.org>, <dev-commits-ports-all@freebsd.org>, <dev-commits-ports-main@freebsd.org>, <ports-committers@freebsd.org>
> > > Cc: "Bernhard Froehlich"<decke@freebsd.org>
> > > Date: Tue, 16 Jun 2026 21:58:13 +0200
> > > Subject: Re: git: 429cf37e1a46 - main - devel/kf6-kconfig: Add CPE information
> > > 
> > >  > Hi Bernhard,
> > >  > 
> > >  > > URL: https://cgit.FreeBSD.org/ports/commit/?id=429cf37e1a46522f8189c027e55f2a03310d9e3a
> > >  > > 
> > >  > > commit 429cf37e1a46522f8189c027e55f2a03310d9e3a
> > >  > > Author:     Bernhard Froehlich <decke@FreeBSD.org>
> > >  > > AuthorDate: 2026-06-16 19:14:22 +0000
> > >  > > Commit:     Bernhard Froehlich <decke@FreeBSD.org>
> > >  > > CommitDate: 2026-06-16 19:14:22 +0000
> > >  > > 
> > >  > >     devel/kf6-kconfig: Add CPE information
> > >  > > ---
> > >  > >  devel/kf6-kconfig/Makefile | 3 ++-
> > >  > >  1 file changed, 2 insertions(+), 1 deletion(-)
> > >  > > 
> > >  > > diff --git a/devel/kf6-kconfig/Makefile b/devel/kf6-kconfig/Makefile
> > >  > > index fc58ea47934f..904007c3bf1b 100644
> > >  > > --- a/devel/kf6-kconfig/Makefile
> > >  > > +++ b/devel/kf6-kconfig/Makefile
> > >  > > @@ -5,7 +5,8 @@ CATEGORIES=     devel kde kde-frameworks
> > >  > >  MAINTAINER=    kde@FreeBSD.org
> > >  > >  COMMENT=       Persistent platform-independent application settings
> > >  > >  
> > >  > > -USES=          cmake gl kde:6 qt:6 tar:xz
> > >  > > +USES=          cmake cpe gl kde:6 qt:6 tar:xz
> > >  > > +CPE_VENDOR=    kde
> > >  > 
> > >  > Not needed, USES=kde already implies CPE_VENDOR.
> > >  > 
> > >  > Cheers,
> > >  > Max
> > > 
> > > Hi Max,
> > > 
> > > without CPE_VENDOR=kde I get kconfig:kconfig which is incorrect.
> > > 
> > > decke@dev:~/dev/freebsd-ports/devel/kf6-kconfig % make -V CPE_STR
> > > cpe:2.3:a:kconfig:kconfig:6.26.0:::::freebsd15:x64
> > > 
> > > So it seems to be needed.
> > 
> > Indeed, kde.mk sets CPE_VENDOR only if cpe.mk included after kde.mk.
> > 
> > Does USES has to be sorted?
> 
> It does not, but it is considered "best" practice by many, I think some
> tooling does this. In the end, the order of USES should not matter. It
> is probably simpler to set CPE_VENDOR in ports.

Or you could add a cpe argument to USES=kde for ports that are part of
kde, so that it sets CPE_VENDOR accordingly.

-- 
Mathieu Arnold