portversion and distversion - why not?

Matthias Andree matthias.andree at gmx.de
Tue May 2 07:25:29 UTC 2006

"Andrew Pantyukhin" <infofarmer at 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

More information about the freebsd-ports mailing list