From owner-freebsd-questions@freebsd.org Sun Feb 7 17:27:16 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43A47AA1944 for ; Sun, 7 Feb 2016 17:27:16 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B449F84 for ; Sun, 7 Feb 2016 17:27:15 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from fwd28.aul.t-online.de (fwd28.aul.t-online.de [172.20.26.133]) by mailout08.t-online.de (Postfix) with SMTP id 90E3016AF46; Sun, 7 Feb 2016 18:17:50 +0100 (CET) Received: from esprimo.local (SUg8boZlQhfG7SAUy532u6ltoovzLbnRhTq9wyEItsSjKKfeNq3ob5azz9lxydLw15@[217.81.151.36]) by fwd28.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1aSSy2-2Ka9Ka0; Sun, 7 Feb 2016 18:17:46 +0100 Received: from esprimo.local (localhost [127.0.0.1]) by esprimo.local (Postfix) with ESMTP id E80F345E475; Sun, 7 Feb 2016 18:17:45 +0100 (CET) Received: (from chris@localhost) by esprimo.local (8.15.2/8.15.2/Submit) id u17HHjTu043778; Sun, 7 Feb 2016 18:17:45 +0100 (CET) (envelope-from chris) Date: Sun, 7 Feb 2016 18:17:45 +0100 From: Christoph Brinkhaus To: Ian Smith Cc: freebsd-questions@freebsd.org Subject: Re: svn revision in uname Message-ID: <20160207171745.GA41125@esprimo.local> References: <20160207223554.P51785@sola.nimnet.asn.au> <56B73E8C.5060501@FreeBSD.org> <20160207153505.GA1420@esprimo.local> <20160208024820.K51785@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160208024820.K51785@sola.nimnet.asn.au> User-Agent: Mutt/1.5.24 (2015-08-30) X-ID: SUg8boZlQhfG7SAUy532u6ltoovzLbnRhTq9wyEItsSjKKfeNq3ob5azz9lxydLw15 X-TOI-MSGID: bc9dede6-5f70-4a5b-92fb-f7ac363c0d65 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2016 17:27:16 -0000 On Mon, Feb 08, 2016 at 03:24:35AM +1100, Ian Smith wrote: Dear Ian, > On Sun, 7 Feb 2016 16:35:05 +0100, Christoph Brinkhaus wrote: > > On Sun, Feb 07, 2016 at 12:54:36PM +0000, Matthew Seaman wrote: > > > On 07/02/2016 12:11, Ian Smith wrote: > > > > I've been using svnup for source updates for ages, and for my occasional > > > > use it works fine. However one thing you don't get is the svn revision > > > > shown in uname, eg % uname -vm > > > > FreeBSD 9.3-STABLE #0: Thu Oct 29 03:18:26 EST 2015 > > > > root@x200.smithi.id.au:/usr/obj/usr/src/sys/GENERIC amd64 > > > > % svnversion /usr/src > > > 295073M > > > > > > If that fails, it will try running svnliteversion, and then cycle > > > through various different ways of extracting a version string from other > > > VCSes until it gets a result. > > > > The version svnlite is part of the system and > > does not need to be installed separately. > > On 10.x - since 10.1 maybe? - but not on 9.x. Ok, I have overlook this. > > > Here svnliteversion /usr/src works. > > If you're pulling sources with svnlite, so it should :) Conversion > between using svn and svnup, either way, requires some care and cleaning > up; generally best advice is not to try mixing these methods. > I was not aware of that. I thought svnlite has just less capabilities. Thank you! > cheers, Ian > Kind regards, Christoph