Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2013 18:45:25 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Helmut Schneider <jumper99@gmx.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Trying to update from 9.0 to 9.1 via svn
Message-ID:  <alpine.BSF.2.00.1301041832250.41917@mail.fig.ol.no>
In-Reply-To: <xn0icoj6a76zg61001@news.gmane.org>
References:  <xn0icodv56zqdi6000@news.gmane.org> <CA%2B8gk98KGax4XzJe=0xVyCd4GRL2e%2BdpihLDu7J4NXrXKANxNg@mail.gmail.com> <xn0icoi9p75th99000@news.gmane.org> <alpine.BSF.2.00.1301041654170.41917@mail.fig.ol.no> <xn0icoj6a76zg61001@news.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--2055831798-209584057-1357321525=:41917
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT

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@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@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@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.      |
+-------------------------------+------------------------------------+
--2055831798-209584057-1357321525=:41917--



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