Trying to update from 9.0 to 9.1 via svn

Trond Endrestøl Trond.Endrestol at fagskolen.gjovik.no
Fri Jan 4 17:45:31 UTC 2013


On Fri, 4 Jan 2013 16:24-0000, Helmut Schneider wrote:

> Trond Endrestøl wrote:
> 
> > On Fri, 4 Jan 2013 15:51-0000, Helmut Schneider wrote:
> > 
> > > Alexandre wrote:
> > > 
> > > > On Fri, Jan 4, 2013 at 2:01 PM, Helmut Schneider <jumper99 at gmx.de>
> > > > wrote:
> > > > > 
> > > > > I fetched sources via
> > > > > 
> > > > > $ sudo svn co svn://svn.freebsd.org/base/releng/9.1 /usr/src/
> > > > > Checked out revision 244992.
> > > > > $
> > > > > 
> > > > > I then recompiled and installed the kernel according to
> > > > > 
> > > > > 
> > > > > 
> > >
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
> > > > > 
> > > > > $ ls -la /boot/kernel/kernel
> > > > > -r-xr-xr-x  1 root  wheel  15622342 Jan  3 19:57
> > > > > /boot/kernel/kernel $
> > > > > 
> > > > > But after reboot uname prints
> > > > > 
> > > > > FreeBSD BSDHelmut964 9.0-RELEASE-p5 FreeBSD 9.0-RELEASE-p5 #9
> > > > > r244992M:  Thu Jan  3 19:57:37 CET 2013
> > > > > root at BSDHelmut964:/usr/obj/usr/src/sys/GENERIC  amd64
> > > > > 
> > > > > Why?
> > > > > 
> > > > > Thanks, Helmut
> > > > 
> > > > Have you rebuilt world before compile and install your new 9.1
> > > > kernel ?
> > > 
> > > Yes.
> > 
> > I have a question:
> > 
> > Was /usr/src populated with 9.0 sources prior to the svn operation?
> > 
> > If you have the time and bandwidth, I would delete everything inside 
> > /usr/src, e.g.
> > 
> >   rm -Rf /usr/src/* /usr/src/.??*
> > 
> > and retry the checkout, i.e.
> > 
> > sudo svn co svn://svn.freebsd.org/base/releng/9.1 /usr/src
> 
> Did so, too. It's so frustrating, I mean, I compile kernel and world
> since 6.0 and never had similar issues. What makes me a bit nervous is
> that this happens on two different machines. And why is the revision
> (r244992) of the kernel ident higher than the release revision
> (r243710[1])?

Let me use the output of svn info from stable/9 as an example:

root at enterprise:/usr/src # svn info
Path: .
Working Copy Root Path: /usr/src
URL: svn://svn.ximalas.info/freebsd/base/stable/9
Repository Root: svn://svn.ximalas.info/freebsd/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 245035
Node Kind: directory
Schedule: normal
Last Changed Author: pfg
Last Changed Rev: 245025
Last Changed Date: 2013-01-04 05:03:21 +0100 (Fri, 04 Jan 2013)

The uname string of the kernel includes the revision number contained 
in the Revision line as shown above. svn keeps global revision numbers 
unlike cvs which uses revision number per each file.

All of FreeBSD base source code resides in one giant repository. Thus 
changes made in, say, /base/head, i.e. -CURRENT, affects other 
"branches", say, /base/releng/9.1.

It would make more sense if the uname string referred to the Last 
Changed Rev line.

(Yes, I run my own svn mirror. It saves bandwidth when I issue 
svn log -v to look at the recent commit logs.)

BTW, do you nuke the contents of /usr/obj prior to recompiling the 
system? The command rm -Rf /usr/obj/* should accomplish this rather 
well.

Out of old habit I like keep everything clean before I issue 
buildworld + buildkernel with -DNO_CLEAN.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+


More information about the freebsd-questions mailing list