From owner-freebsd-questions@FreeBSD.ORG Thu Apr 17 07:07:39 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 092933C5 for ; Thu, 17 Apr 2014 07:07:39 +0000 (UTC) Received: from nm4-vm8.bullet.mail.ir2.yahoo.com (nm4-vm8.bullet.mail.ir2.yahoo.com [212.82.96.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E4F110AB for ; Thu, 17 Apr 2014 07:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s1024; t=1397718265; bh=nV4nzuPbu+4L3OkYqb/YZa3h+ZV05auwbWF02gjyrME=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References:X-Mailer:Disposition-Notification-To:Mime-Version:Content-Type:Content-Transfer-Encoding; b=ov4p2maBwtK/Vh/fXi8QtNOtAhRIHaotcJ/zR3wtWtgwa6EUb3WmJY8zT7Saf0gUnLkGsd1edRyo/8IvPW4bzpOb+wSGz+bf7O9UvJpGoEcE07HaCJRyeEOM5yxjNn/sqiNjaTTH/frNRYGZrTblqC9pZ1Muhe37j0mPROw8G5E= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; b=iA+ex92T2PC6wTLVFEB92traU3cB0X1bDYq5TeXB6xrqdZ/FhtHUditB32Qdf6K4ZjKOh2pta2nNKDiWLstMG/czGp9n/Xg8jNik5g9/5swF6TH9MK5HkmnuyXIvr5Z8u+ObaKSOVk8HewrfgBLTHo6mRaYTr9a1Q972KOBwPL4=; Received: from [212.82.98.50] by nm4.bullet.mail.ir2.yahoo.com with NNFMP; 17 Apr 2014 07:04:25 -0000 Received: from [46.228.39.87] by tm3.bullet.mail.ir2.yahoo.com with NNFMP; 17 Apr 2014 07:04:25 -0000 Received: from [127.0.0.1] by smtp124.mail.ir2.yahoo.com with NNFMP; 17 Apr 2014 07:04:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s1024; t=1397718265; bh=nV4nzuPbu+4L3OkYqb/YZa3h+ZV05auwbWF02gjyrME=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References:X-Mailer:Disposition-Notification-To:Mime-Version:Content-Type:Content-Transfer-Encoding; b=ITIhH+sXQWjgtClEGX9ZJC/EPuFFfSUXzB9DIyLC65131W5EfS6ZsrR9nWTrBZ1kLtn9qts4EC8Uvi9IvoYBTe8qixVRjjkMSzh6CEpIKkbhWjXxcO0OJFFoW2eA24nm3BMXePfijzBaV9FVxkXvfgwHzSMVqDJRrGez85T4naE= X-Yahoo-Newman-Id: 13492.18378.bm@smtp124.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: kfcu8JsVM1lwOghdOKsAbflwyoms0r6mwZhUyYbynOE4xaN bEvnkQmwQN_yjP83qa_ewvQwOo1Kt9iGFPQzVTdFv2LCdVAHmYlbqcO1QJ_Z ndbqzmQ99PDKKL217b9rIFM0pFOz6FysRimWt0aNT0k.8LPC3HMr0BBuG1z8 mOpsZtHJ9NrSwcY5DXNebnNhuYOKAlMLAxrT6519HIAKG1ZXm2kznW66cG7S 7kUkFlJvWYfz18m0zQIt6mGtMTMsbAoq_z_AxiiWsPDLPu5O.Tmk7NrxJJNl yiGqYuiI19DVP.qZdYVr8v2L6SO74xrHe_xlZVdIK735rrU99elPWjNkB2bP .gtZuvXbwSAzgJpWRfepqzuorS6Jce66ydaZ9jhIcGjf_FKwmmIYjIrT73NH sPeiSA5t0o5B65ghZRb8IloIKYsF_A7wxydZv3nH1thQait2KfUtfWVyvsbN Rl4RjV_XqCZ5j10zInxCUpwxRQuueUmSeKYGGiYeFDtXTB9hDLa0AzCD9 X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR X-Rocket-Received: from camibar.emorras.eu (emorrasg@212.21.233.80 with plain [98.138.105.21]) by smtp124.mail.ir2.yahoo.com with SMTP; 17 Apr 2014 07:04:24 +0000 UTC Date: Thu, 17 Apr 2014 09:07:07 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org 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> X-Mailer: Sylpheed 3.3.1 (GTK+ 2.24.22; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: John X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 07:07:39 -0000 On Wed, 16 Apr 2014 23:39:06 -0400 (GMT-04:00) John 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