Re: git: 2b9b771202b2 - main - www/luakit-devel: update to 2.3.1-6

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 16 Oct 2022 01:09:00 UTC
Nuno Teixeira <eduardo@freebsd.org> writes:

> Hello,
>
> Yes, you are right
> pkg version -t 2.3.1.6,1 2.3.26,1 == <
>
> -DISTVERSION= 2.3-26
> +DISTVERSION= 2.3.1-6
>
> This will cause problems in the future and we cannot bump PORTEPOCH for
> this reason.
>
> I can't think for a diferent solution for suffix -xy.
>
> Any hint to avoid portepoch bumping?

Re-calculate version offset via "git rev-list --count 2.3.1..". When fetching
a distfile in <tag>-<offset>-g<hash> format Git discards everything before -g.
Try it yourself e.g.,

  $ git archive blah-1234-g2b9b771202b2 | tar xOf - --include www/luakit-devel/Makefile | head
  PORTNAME=       luakit
  DISTVERSION=    2.3.1-6
  DISTVERSIONSUFFIX=      -ge9c7693