Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2010 23:54:05 +0000
From:      CeDeROM <tomek.cedro@gmail.com>
To:        Dmitry Marakasov <amdmi3@amdmi3.ru>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: RC1 suffix in PORTVERSION
Message-ID:  <3fcfb0ba1002141554t6adaef85y723605bc0b732185@mail.gmail.com>
In-Reply-To: <20100214033627.GI1538@hades.panopticon>
References:  <3fcfb0ba1002131315o504bc12bw83df19461b2abd17@mail.gmail.com> <20100214033627.GI1538@hades.panopticon>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Dimitry!

On Sun, Feb 14, 2010 at 3:36 AM, Dmitry Marakasov <amdmi3@amdmi3.ru> wrote:
> * CeDeROM (tomek.cedro@gmail.com) wrote:
>
>> I am trying to create a helper local port for testing RC1 version of a
>> program that will soon have stable port update. Unfortunately the
>> package is named "openocd-0.4.0-rc1.tar.gz" and I dont know how to
>> construct a variable containing this "-RC1" suffix.
>
> You can use DISTVERSION=3D0.4.0-rc1 instead of PORTVERSION.
>
> + you won't have to redefine DISTNAME, as DISTVERSION is substituded
> =C2=A0there directly
> + legal PORTVERSION will be constructed for you (that'll be 0.4.0.r1),
> =C2=A0and the nicest thing is that 0.4.0.r1 < 0.4.0, thus when you update
> =C2=A0the port to release, you won't need to bump PORTEPOCH.

BINGO! The DISTVERSION=3D0.4.0-rc2 does the job right - download proper
package (openocd-0.4.0-rc2.tar.gz), extracts it and then build from
right place (${WRKDIR}/openocd-0.4.0-rc2/) - no other variables are
necessary :-) Thank you!

However, in that situation, one must remember not to touch $WRKSRC
unnecessairly as it might to point at wrong directory ;P

Best regards,
Tomek Cedro

--=20
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



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