Can PORTVERSION be gYYYYMMDD ?
Tobias Kortkamp
tobik at FreeBSD.org
Tue Nov 28 09:07:11 UTC 2017
On Tue, Nov 28, 2017, at 09:36, Yuri wrote:
> The port audio/ir-lv2 was committed with PORTVERSION=g20130909.
>
>
> make in another port with this instruction:
>
> > RUN_DEPENDS=ir-lv2>0:audio/ir-lv2
> doesn't check the version of ir properly, and always tries to rebuild it.
>
> Is PORTVERSION=gYYYYMMDD actually allowed?
>
> The handbook doesn't mention such format. Section Example 5.9 here
> https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-distname-ex1
> offers PORTVERSION=20160710 as an example.
Look further down. It's mentioned in example 5.13 [1]. It also
explains what's going wrong. A PORTVERSION=gYYYYMMDD is always < 0.
So you might want to use
RUN_DEPENDS=ir-lv2>=g20130909:audio/ir-lv2
or depend on a specific file instead.
[1]
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github-ex4
More information about the freebsd-ports
mailing list