From owner-freebsd-arch Thu Jan 31 10:51:40 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mail.yadt.co.uk (yadt.demon.co.uk [158.152.4.134]) by hub.freebsd.org (Postfix) with SMTP id 253EE37B402 for ; Thu, 31 Jan 2002 10:51:16 -0800 (PST) Received: (qmail 49732 invoked from network); 31 Jan 2002 18:51:01 -0000 Received: from unknown (HELO mail.gattaca.yadt.co.uk) (qmailr@10.0.0.2) by yadt.demon.co.uk with SMTP; 31 Jan 2002 18:51:01 -0000 Received: (qmail 61749 invoked by uid 1000); 31 Jan 2002 18:51:00 -0000 Date: Thu, 31 Jan 2002 18:51:00 +0000 From: David Taylor To: Josef Karthauser Cc: Nate Williams , Sheldon Hearn , Terry Lambert , arch@FreeBSD.ORG Subject: Re: Adding support for a global src tree serial number Message-ID: <20020131185100.GA61302@gattaca.yadt.co.uk> Mail-Followup-To: Josef Karthauser , Nate Williams , Sheldon Hearn , Terry Lambert , arch@FreeBSD.ORG References: <3C5944A4.4927F812@mindspring.com> <80628.1012484102@axl.seasidesoftware.co.za> <15449.30438.698921.182380@caddis.yogotech.com> <20020131173702.J77899@genius.tao.org.uk> <20020131183321.GA59544@gattaca.yadt.co.uk> <20020131184230.D84715@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <20020131184230.D84715@genius.tao.org.uk> User-Agent: Mutt/1.3.25i 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 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 31 Jan 2002, Josef Karthauser wrote: > On Thu, Jan 31, 2002 at 06:33:21PM +0000, David Taylor wrote: > >=20 > > #define SERIALNUM "20020122_1" > >=20 > > So the file is just #include'd where needed. >=20 > The problem is where to put the serial number, and how to distribute it. > It needs to be maintained in a ,v file for cvs to be able to check it > out. That adds additional complexity. As I said above in the part you snipped, I added a PRELOG_SUB which I used to call 'co -l serno.h', modify serno.h, then call 'ci -mautomated_serno serno.h'. Alternatively, you could make the script alter the ,v file directly and just call 'co' to try to keep the number of useless diffs down. I'm not sure if cvs likes just having one revision of a file at revision 1.9999999 in a ,v file, though. =20 > > That can take ages, and isn't necesarily correct if parts of src/ aren't > > present. I thought the idea was for a quickly obtainable number that c= an > > be included with PRs, and stored inside the kernel or whatever. >=20 > It's correct enough to give a the "effect latest source" date for > a particular kernel build irrespective of what parts of the tree > are there. It doesn't matter if alpha/ has been committed to more > recently if that source isn't being used in this kernel. True. =20 > Also, it doesn't take "ages". It takes a little while, but not ages. Takes ages on my gateway... admittedly a buildworld does too, but I don't want to add a 'find /usr/src' to my PR info-gathering tasks.. --=20 David Taylor davidt@yadt.co.uk "The future just ain't what it used to be" --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8WZIUfIqKXSsJ/xERAs1xAJ9kggX6GMigqStOhqwb+JVJYsAAEACg0pxf +GvjnkwP9awfZWlA8PPlqew= =9jlc -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message