Subject: Re: Please review: nbX => PKGREVISION
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 11/27/2001 13:29:14
Yes, this would be good to have.

I think we should also set out (in Packages.txt) the occasions and
circumstances in which the revision number should be bumped.

Thanks,
Al

On Tue, Nov 27, 2001 at 05:04:45AM +0100, Hubert Feyrer wrote:
> 
> I'd like to commit a patch to bsd.pkg.mk (and a couple of package ;-) that
> gets rid of manually adding "nbX" to PKGNAME when a pkg was changed in
> pkgsrc. Instead, a new variable PKGREVISION is invented that can get
> bumped independent of DISTNAME and PKGNAME.
> 
> Example #1:
> 
> 	DISTNAME=	foo-X.Y
> 	PKGREVISION=	Z
>      =>	PKGNAME=	foo-X.YnbZ
> 
> Example #2:
> 	DISTNAME=	barthing-X.Y
> 	PKGNAME=	bar-X.Y
> 	PKGREVISION=	Z
>      => PKGNAME=	bar=X.YnbZ (!)
> 
> On subsequent changes, only PKGREVISION needs to be bumped, no more risk
> of getting DISTNAME changed accidentally.
> 
> The patch is available at:
> 
> 	http://www.feyrer.de/Misc/pkgrevision.patch
> 
> Comments? Please review, as I'd like to commit this soon. Thanks!
> 
> 
>  - Hubert
> 
> -- 
> Want to get a clue on IPv6 but don't know where to start? Try this:
> * Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
> * Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html 
> Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/