Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 May 2006 09:25:21 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        "Andrew Pantyukhin" <infofarmer@gmail.com>
Cc:        FreeBSD Ports <ports@freebsd.org>, Kirill Ponomarew <krion@voodoo.bawue.com>
Subject:   Re: portversion and distversion - why not?
Message-ID:  <m3aca06g7y.fsf@merlin.emma.line.org>
In-Reply-To: <cb5206420605011306l6f16510dr7181e01f28499939@mail.gmail.com> (Andrew Pantyukhin's message of "Tue, 2 May 2006 00:06:54 %2B0400")
References:  <cb5206420605011232j5cff24c4hea0e41e3a7493bef@mail.gmail.com> <20060501193851.GA54315@voodoo.bawue.com> <cb5206420605011306l6f16510dr7181e01f28499939@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Andrew Pantyukhin" <infofarmer@gmail.com> writes:

> To quote bpm:
> PORTVERSION   - Version of software.  Mandatory when no DISTVERSION is given.
> DISTVERSION   - Vendor version of the distribution.
>
> Now what's so hard to understand here? Portversion is nice
> and legal, it tries to increase from version to version, it
> follows a number of guidelines imposed by FreeBSD. Now
> distversion - is something from vendor's imagination. It can
> contain a multitude of not very nice characters, long strings,
> bad syntax; it can stay the same across releases (e.g. when
> subdir is changing), it can go back and forth...
>
> Portversion is the version that users and the system see
> Distversion is actually _just_ for the purpose of downloading
> and building the software
>
> Conversions between them (both directions are defined in
> bpm) are only to ease our live, they do not happen if both
> *versions are defined.
>
> What's so fatal if we use both, huh?

Adding confusion. However, in situations where I had itched to set both
PORT- and DISTVERSION, I have often gotten away by setting PORTVERSION
(for the FreeBSD site) and DISTNAME (which has the nasty characters the
vendor inserted) and perhaps telling the bsd.port.mk where the file
actually unpacked.

Check the default for DISTNAME from ports/Mk/bsd.port.mk and put a
modified copy (with = rather than ?=) into your port's Makefile.

-- 
Matthias Andree



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