Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 2009 14:03:52 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-current@freebsd.org
Subject:   kernel && SVN rev. number in 'uname -a'
Message-ID:  <20091012120352.GA3722@current.Sisis.de>

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

Hello,

I've build a kernel based on SVN checkout of head and compiled/installed
the kernel with:

# cd /usr
# rm -rf src
# svn co svn://....
# cd /usr/src
# make buildkernel KERNCONF=GENERIC
# make installkernel KERNCONF=GENERIC
# shutdown -r now

the booting kernel says:

$ uname -a
FreeBSD vm-azul.Sisis.de 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r197801: Mon
Oct 12 13:33:32 CEST 2009 guru@vm-azul.Sisis.de:/usr/obj/usr/src/sys/GENERIC  i386

i.e. does contain the SVN rev. number r197801, so far so good: when I
now move the /usr/src to some other machine with:

# cd /usr
# tar cf src.tar src
...
# cd /usr
# rm -rf src
# tar --unlink -xpf src.tar

and build the kernel there exact the same way as on the originating
machine, the output of 'uname -a' does not contain the SVN revision
number. Any idea why is that? Thanks

	matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru@unixarea.de> - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu



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