Re: git: bb8dbe1580ae - main - sysutils/lnav: Fix distinfo

From: Mathieu Arnold <mat_at_freebsd.org>
Date: Wed, 17 Nov 2021 18:51:28 UTC
On Wed, Nov 17, 2021 at 03:58:30AM +0000, Alexey Dokuchaev wrote:
> On Wed, Nov 17, 2021 at 12:44:52PM +0900, Yasuhiro Kimura wrote:
> > ...
> > PORTVERSION is the version used for the FreeBSD package. It will be
> > automatically derived from DISTVERSION to be compatible with
> > FreeBSD's package versioning scheme.
> 
> To elaborate: right, so you set DISTVERSION when it's incompatible
> with FreeBSD's package versioning scheme.  Most of the time it is
> compatible, so PORTVERSION should be used instead.  I don't know
> why this passage had been added to the PHB, I've asked a few times
> but never got any meaningful answer.  It looks totally backwards
> to me, and it causes lots of needless churn on the ports repo. :(

I have explained many times, but, I will again.

The rule is:

1) use DISTVERSION unless it does not work
2) use PORTVERSION, and maybe set DISTNAME directly

What you are saying is:

1) use PORTVERSION unless it does not work
2) use DISTVERSION unless it does not work
3) use PORTVERSION, and set DISTNAME directly

The first one is simpler, you don't go back and forth between knobs, you
try DISTVERSION, and if it does not produce the correct version, you
switch to PORTVERSION.

-- 
Mathieu Arnold