Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2002 18:51:00 +0000
From:      David Taylor <davidt@yadt.co.uk>
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:  <20020131185100.GA61302@gattaca.yadt.co.uk>
In-Reply-To: <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> <20020131184230.D84715@genius.tao.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




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