From owner-freebsd-arch Thu Jan 31 9:56:54 2002 Delivered-To: freebsd-arch@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 1D19537B419 for ; Thu, 31 Jan 2002 09:56:30 -0800 (PST) Received: from caddis.yogotech.com (caddis.yogotech.com [206.127.123.130]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id KAA19578; Thu, 31 Jan 2002 10:56:20 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g0VHuGC15093; Thu, 31 Jan 2002 10:56:16 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15449.34112.10169.928474@caddis.yogotech.com> Date: Thu, 31 Jan 2002 10:56:16 -0700 To: Josef Karthauser Cc: Nate Williams , Sheldon Hearn , Terry Lambert , arch@FreeBSD.ORG Subject: Re: Adding support for a global src tree serial number 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> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > > > 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