Date: Thu, 17 Apr 2014 09:07:07 +0200 From: Eduardo Morras <emorrasg@yahoo.es> To: freebsd-questions@freebsd.org Cc: John <aqqa11@earthlink.net> Subject: Re: where does uname get version number? Message-ID: <20140417090707.97aec14863b12da0685c2103@yahoo.es> In-Reply-To: <4357625.1397705947117.JavaMail.root@elwamui-hybrid.atl.sa.earthlink.net> References: <4357625.1397705947117.JavaMail.root@elwamui-hybrid.atl.sa.earthlink.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 16 Apr 2014 23:39:06 -0400 (GMT-04:00) John <aqqa11@earthlink.net> wrote: > Do you want me to add the following to /etc/profile ? > > UNAME_v="FreeBSD 9.2-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC > 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC" > export UNAME_v UNAME_r="9.2-RELEASE" > export UNAME_r > > But, then do I have to manually change this version number > in /etc/profile for each upgrade in the future? That would be quite > a hassle for each upgrade to -p5, -p6, ... etc. Is that the way to > go? No, freebsd-update should update your /etc/profile and UNAME_* system vars. > > I also tried: > > # unsetenv UNAME_r > > but "uname -r" still shows the incorrect "9.1-RELEASE" even though > all other files mentioned above are in "9.2-RELEASE". > > So still, where did uname get that incorrect version number? If there's no UNAME_* defined, you undefined it with #unsetenv, uname reads them from /usr/obj/usr/src/sys/$KERNEL/vers{ion,.c} files. Trond suggest to delete them before rebuilding, so they get updated too, nice suggestion. Mine sets different information in UNAME_* and vers{ion,.c} files. This discrepancy should be avoided. --- --- Eduardo Morras <emorrasg@yahoo.es>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140417090707.97aec14863b12da0685c2103>