Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2002 10:56:16 -0700
From:      Nate Williams <nate@yogotech.com>
To:        Josef Karthauser <joe@tao.org.uk>
Cc:        Nate Williams <nate@yogotech.com>, Sheldon Hearn <sheldonh@starjuice.net>, Terry Lambert <tlambert2@mindspring.com>, arch@FreeBSD.ORG
Subject:   Re: Adding support for a global src tree serial number
Message-ID:  <15449.34112.10169.928474@caddis.yogotech.com>
In-Reply-To: <20020131175001.K77899@genius.tao.org.uk>
References:  <3C5944A4.4927F812@mindspring.com> <80628.1012484102@axl.seasidesoftware.co.za> <15449.30438.698921.182380@caddis.yogotech.com> <20020131173702.J77899@genius.tao.org.uk> <15449.33154.45261.703514@caddis.yogotech.com> <20020131175001.K77899@genius.tao.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
> > > > FWIW, this has been gone over many times in the past.  We even had a
> > > > workable solution, but unfortunately Richard W. (the originator of said
> > > > feature request) refused to acknowledge the issues and propose a
> > > > solution that would satisfy all problems.
> > > 
> > > This is mad! :)
> > > 
> > > The easiest solution is the one that I proposed in the PR, which is to
> > > use the effective date of the latest date in the $FreeBSD$ files.
> > 
> > Won't work.
> 
> Does work.  There is always a latest commit in the source tree.
>  
> > > Of course this means going through each source file, but that's only
> > > time.
> > 
> > Time is a precious commodity, especially when you talk the entire tree.
> > Plus, each user may have a different subset of the tree (some wouldn't
> > have kerberos, some wouldn't have doc, some wouldn't have release,
> > etc...)
> > 
> > No standard.
> 
> There is a standard src tree though.

I disagree.  See above.

> > > Doing anything with CVSROOT/ and cvsup, etc, is complexity that
> > > isn't needed.
> > > 
> > >     l=`find /usr/src/sys | xargs grep '\$FreeBSD:.*$' | sed \
> > > 	's/.*\$FreeBSD://' | awk '{ print $3 "-" $4 }' | sort -n | tail -1`
> > > 
> > > Kind of thing.
> > 
> > Way too much overhead and you wouldn't get a consistent answer.  Kind of
> > like going to buying a hardware store just to hammer in a nail. :)
> 
> Why wouldn't you get a consistent answer.  A source tree is a source
> tree isn't it?

Nope. I don't have alpha/pc98/sparc/ia64 bits in my x86 tree.  I don't
have any need for them, so why have them fill up my tree.  On my alpha,
I don't have the non-relevant bits as well.

In short, unless you *define* a standard ahead of time, you can't
guarantee a consistent answer.

And, it still takes *way* too long to calculate.



Nate

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15449.34112.10169.928474>