Re: CVS commit: src/usr.bin/make

2009-03-29 Thread Perry E. Metzger

Alistair Crooks a...@pkgsrc.org writes:
 This is veering off topic, I fear, but a datapoint:

 We used a mmdd-based time value for version numbering of the
 pkg_install tools, derived from embedded RCS Ids, for years (to check
 tools had sufficient features for what they were going to be asked to
 do).  This was across NetBSD and pkgsrc branches.

That's fine, but those are

a) essentially monotonic because of your management practices
b) not based on build time (which is my main complaint about things like
   the old make(1) version stamp.

Also, the pkg tools are under quite active development and have
substantial interface shifts with time, and you need to automatically
decide when to rebuild them so you *need* a version.

Perry


Re: CVS commit: src

2009-03-29 Thread Perry E. Metzger

Martin Husemann mar...@duskware.de writes:
 On Sun, Mar 29, 2009 at 02:59:59PM +, Christos Zoulas wrote:
 Or add some syntax to the file for optional assignments, like:
 
 ddb.onpanic?=1
 or
 ddb.onpanic?ddb.onpanic=1

 I like those two variants (not sure which one better).

The second reminds me too much of the C ternary operator. The first
seems better for that reason.

Perry


Re: CVS commit: src

2009-03-29 Thread Christos Zoulas
On Mar 29,  8:23pm, pe...@piermont.com (Perry E. Metzger) wrote:
-- Subject: Re: CVS commit: src

| 
| Martin Husemann mar...@duskware.de writes:
|  On Sun, Mar 29, 2009 at 02:59:59PM +, Christos Zoulas wrote:
|  Or add some syntax to the file for optional assignments, like:
|  
|  ddb.onpanic?=1
|  or
|  ddb.onpanic?ddb.onpanic=1
| 
|  I like those two variants (not sure which one better).
| 
| The second reminds me too much of the C ternary operator. The first
| seems better for that reason.

or

defined(ddb.onpanic)  ddb.onpanic=1

christos