From owner-freebsd-arch Thu Jan 31 10:42:39 2002 Delivered-To: freebsd-arch@freebsd.org Received: from tao.org.uk (genius.tao.org.uk [212.135.162.51]) by hub.freebsd.org (Postfix) with ESMTP id 6511737B419 for ; Thu, 31 Jan 2002 10:42:31 -0800 (PST) Received: by tao.org.uk (Postfix, from userid 100) id 6289632B; Thu, 31 Jan 2002 18:42:30 +0000 (GMT) Date: Thu, 31 Jan 2002 18:42:30 +0000 From: Josef Karthauser To: Josef Karthauser , Nate Williams , Sheldon Hearn , Terry Lambert , arch@FreeBSD.ORG Subject: Re: Adding support for a global src tree serial number Message-ID: <20020131184230.D84715@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> <20020131183321.GA59544@gattaca.yadt.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="hxkXGo8AKqTJ+9QI" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020131183321.GA59544@gattaca.yadt.co.uk>; from davidt@yadt.co.uk on Thu, Jan 31, 2002 at 06:33:21PM +0000 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 --hxkXGo8AKqTJ+9QI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. 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. > I also added the serialnum to the commit mail. >=20 > > l=3D`find /usr/src/sys | xargs grep '\$FreeBSD:.*$' | sed \ > > 's/.*\$FreeBSD://' | awk '{ print $3 "-" $4 }' | sort -n | tail -1` >=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 can > be included with PRs, and stored inside the kernel or whatever. 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. Also, it doesn't take "ages". It takes a little while, but not ages. Joe --hxkXGo8AKqTJ+9QI 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 iEYEARECAAYFAjxZkBUACgkQXVIcjOaxUBaINQCg4FHth7kxM7C+SzYTnnOUSXMa U70An0zrhVqiSFC9Ol4LVLqVB/3YOSKQ =jou+ -----END PGP SIGNATURE----- --hxkXGo8AKqTJ+9QI-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message