From owner-freebsd-questions@FreeBSD.ORG Thu Jan 12 14:37:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F41ED16A41F for ; Thu, 12 Jan 2006 14:37:31 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-3-1-cust208.cdif.cable.ntl.com [82.31.78.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5459643D45 for ; Thu, 12 Jan 2006 14:37:31 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1Ex3Zy-000MMb-7B; Thu, 12 Jan 2006 14:37:30 +0000 Date: Thu, 12 Jan 2006 14:37:30 +0000 From: Ceri Davies To: Roberto Nunnari Message-ID: <20060112143730.GJ28781@submonkey.net> Mail-Followup-To: Ceri Davies , Roberto Nunnari , "'freebsd-questions@freebsd.org'" References: <43C64C52.9020209@supsi.ch> <8E000CF1-7D7E-4E63-8EE5-BB87BF9C44E8@submonkey.net> <43C6670E.5000500@supsi.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVh9lyqKgK19OcEf" Content-Disposition: inline In-Reply-To: <43C6670E.5000500@supsi.ch> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.11 Sender: Ceri Davies Cc: "'freebsd-questions@freebsd.org'" Subject: Re: patches and uname -a X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2006 14:37:32 -0000 --EVh9lyqKgK19OcEf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 12, 2006 at 03:26:22PM +0100, Roberto Nunnari wrote: >=20 > Ceri Davies wrote: > > > >On 12 Jan 2006, at 12:32, Roberto Nunnari wrote: > > > >>Hello. > >> > >>Please also answer to my mailbox as I'm not on the list. > >> > >>After upgrading by sources and build world, uname correctly > >>reports the current version of the system > >> > >>Today for the first time I applied all the relevant patches > >>instead and all went well. The box was 5.3-RELEASE-p23. > >> > >>The applied patches should correspond to 5.3-RELEASE-p24, but: > >> > >># uname -r > >>5.3-RELEASE-p23 > >> > >>and: > >> > >># sysctl kern.version > >>kern.version: FreeBSD 5.3-RELEASE-p23 #0: Tue Jan 3 15:40:08 CET 2006 > >>... > >> > >>I'd like to be able to see the correct version using > >>'uname -r'.. > >> > >>Does anybody know how can you make uname report the > >>real version? What if you recompile the kernel after > >>patching the system? Would that do the trick? > > > > > >Recompiling the kernel is the correct way to change the output of =20 > >uname(1), but before you do so, you should be aware that that patch =20 > >number is taken from the BRANCH variable in src/sys/conf/newvers.sh. = =20 > >Check that it says "5.3-RELEASE-p24" before you waste time recompiling= =20 > >the kernel. > > > >Ceri > > Thank you Ceri and Jaap for your time. >=20 > Ceri, edit src/sys/conf/newvers.sh and replace >=20 > BRANCH=3D"RELEASE-p23" > with > BRANCH=3D"RELEASE-p24" >=20 > would be enough?? That would work, but if you don't already have that string then there is a possibility that you don't have all the patches, so please only change it if you are %100 sure that you have. I cannot stress that enough. Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --EVh9lyqKgK19OcEf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDxmmqocfcwTS3JF8RAiC8AJ9WdpL+XN0zWWL604LlyA+v5HwJ5ACgxIMy x2vdJbUQlnwGKRk6zOLSFBM= =L92b -----END PGP SIGNATURE----- --EVh9lyqKgK19OcEf--