From owner-freebsd-questions@FreeBSD.ORG Fri Jan 4 17:45:31 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9C695424 for ; Fri, 4 Jan 2013 17:45:31 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) by mx1.freebsd.org (Postfix) with ESMTP id E89F4F28 for ; Fri, 4 Jan 2013 17:45:30 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.5/8.14.5) with ESMTP id r04HjPAT070055 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Jan 2013 18:45:25 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.5/8.14.5/Submit) with ESMTP id r04HjPop070052; Fri, 4 Jan 2013 18:45:25 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Fri, 4 Jan 2013 18:45:25 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Helmut Schneider Subject: Re: Trying to update from 9.0 to 9.1 via svn In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2055831798-209584057-1357321525=:41917" X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 17:45:31 -0000 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 > > > > 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--