Subject: Re: PKGREVISION
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.org>
From: Geert Hendrickx <ghen@telenet.be>
List: tech-pkg
Date: 10/28/2005 20:34:38
On Fri, Oct 28, 2005 at 02:05:56PM -0400, Greg A. Woods wrote:
> At Thu, 27 Oct 2005 11:04:09 -0400,
> Johnny C. Lam wrote:
> >
> > >> [...] It is now an error if PKGREVISION appears outside a package
> > >> Makefile.
> > >
> > >
> > > Does anyone have a problem with this change? Or with my decision of
> > > making it an error instead of a warning? After all, this variable is
> > > meant to be set per individual package, isn't it?
> >
> > This one is absolutely correct.  I had swept pkgsrc many months ago to
> > fix this at the time, but this error continue to crop up again and
> > again.
> 
> That should be a very strong hint to everyone that there's something
> fundamentally wrong with the idea of forcing all the users of a shared
> Makefile.common to have their own unique PKGREVISION setting.
> 
> For example sometimes, maybe even very often, the need to bump the
> revision is due to a change that's common to (i.e. affects) all those
> packages which share a Makefile.common and now with this nonsensical rule
> they _all_ _MUST_ have their PKGREVISION values updated simultaneously,
> which is more work, more error prone, and all really for no good reason.

I'm in between both camps here...  Maybe we should be able to do something
like PKGREVISION++, both in the local Makefile as in the shared
Makefile.common, as appropriate?  

	Geert