Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2017 10:07:09 +0100
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        Yuri <yuri@freebsd.org>, ports@freebsd.org
Subject:   Re: Can PORTVERSION be gYYYYMMDD ?
Message-ID:  <1511860029.1168937.1186548888.3AA9A35D@webmail.messagingengine.com>
In-Reply-To: <e71788d7-25bc-17d0-160e-ccec2bc1ff8c@freebsd.org>
References:  <e71788d7-25bc-17d0-160e-ccec2bc1ff8c@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1511860029.1168937.1186548888.3AA9A35D>