From owner-freebsd-ports@FreeBSD.ORG Tue May 2 07:25:29 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1587916A406 for ; Tue, 2 May 2006 07:25:29 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 3B68143D45 for ; Tue, 2 May 2006 07:25:28 +0000 (GMT) (envelope-from matthias.andree@gmx.de) Received: (qmail invoked by alias); 02 May 2006 07:25:26 -0000 Received: from p50910A5A.dip0.t-ipconnect.de (EHLO m2a2.dyndns.org) [80.145.10.90] by mail.gmx.net (mp022) with SMTP; 02 May 2006 09:25:26 +0200 X-Authenticated: #428038 Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id 6A9DD200522; Tue, 2 May 2006 09:25:22 +0200 (CEST) Received: from m2a2.dyndns.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18012-10; Tue, 2 May 2006 09:25:21 +0200 (CEST) Received: by merlin.emma.line.org (Postfix, from userid 500) id 3B85320080B; Tue, 2 May 2006 09:25:21 +0200 (CEST) From: Matthias Andree To: "Andrew Pantyukhin" In-Reply-To: (Andrew Pantyukhin's message of "Tue, 2 May 2006 00:06:54 +0400") References: <20060501193851.GA54315@voodoo.bawue.com> X-PGP-Key: http://home.pages.de/~mandree/keys/GPGKEY.asc Date: Tue, 02 May 2006 09:25:21 +0200 Message-ID: User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at emma.line.org X-Y-GMX-Trusted: 0 Cc: FreeBSD Ports , Kirill Ponomarew Subject: Re: portversion and distversion - why not? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2006 07:25:29 -0000 "Andrew Pantyukhin" 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