Date: Thu, 12 Jan 2006 21:19:33 +0100 From: Roberto Nunnari <roberto.nunnari@supsi.ch> To: "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org> Subject: Re: {Spam?} Re: patches and uname -a Message-ID: <43C6B9D5.9020102@supsi.ch> In-Reply-To: <20060112143730.GJ28781@submonkey.net> References: <43C64C52.9020209@supsi.ch> <8E000CF1-7D7E-4E63-8EE5-BB87BF9C44E8@submonkey.net> <43C6670E.5000500@supsi.ch> <20060112143730.GJ28781@submonkey.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Ceri Davies wrote: > On Thu, Jan 12, 2006 at 03:26:22PM +0100, Roberto Nunnari wrote: > >>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 >>>uname(1), but before you do so, you should be aware that that patch >>>number is taken from the BRANCH variable in src/sys/conf/newvers.sh. >>>Check that it says "5.3-RELEASE-p24" before you waste time recompiling >>>the kernel. >>> >>>Ceri >> >>Thank you Ceri and Jaap for your time. >> >>Ceri, edit src/sys/conf/newvers.sh and replace >> >>BRANCH="RELEASE-p23" >>with >>BRANCH="RELEASE-p24" >> >>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 Answering to myself.. Probably the best thing to do is to use anoncvs to checkout the two files (UPDATING and newvers.sh) and put them in their place before making the new kernel.. Again, best regards. -- Robi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C6B9D5.9020102>