Re: git: a90e961f4d19 - main - */*: Avoid extra CPE_VENDOR=kde by properly sorting USES

From: Bernhard_Fröhlich <decke_at_freebsd.org>
Date: Mon, 11 Oct 2021 19:43:51 UTC
On Monday, October 11, 2021, Max Brazhnikov <makc@freebsd.org> wrote:

> On Mon, 11 Oct 2021 14:58:04 GMT Bernhard Froehlich wrote:
> > The branch main has been updated by decke:
> >
> > URL: https://cgit.FreeBSD.org/ports/commit/?id=
> a90e961f4d19d53621612d1257a77a5635906ee0
> >
> > commit a90e961f4d19d53621612d1257a77a5635906ee0
> > Author:     Bernhard Froehlich <decke@FreeBSD.org>
> > AuthorDate: 2021-10-11 14:53:15 +0000
> > Commit:     Bernhard Froehlich <decke@FreeBSD.org>
> > CommitDate: 2021-10-11 14:57:51 +0000
> >
> >     */*: Avoid extra CPE_VENDOR=kde by properly sorting USES
> >
> >     CPE_VENDOR=kde is already set in Uses/kde.mk so adding cpe after
> >     kde in our USES line makes sure that it's picked up properly.
>
> I believe you shouldn't rely on USES order, it will be broken sooner or
> later.
>

Doesn't matter much since CPE data is a moving target anyway. To handle
that I created chkcpe [1] which automatically analyzes the portstree once a
day and verifies the CPE data it finds.

In this particular case it will detect a invalid CPE vendor/product and
will list the port under "invalid". There are similar cases like port
rename, " repocopy" etc. which can also easily lead to invalid CPE data.

 [1] https://github.com/decke/chkcpe




-- 
Bernhard Froehlich
http://www.bluelife.at/