From owner-freebsd-current@FreeBSD.ORG Tue Nov 13 23:58:15 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84101AFD; Tue, 13 Nov 2012 23:58:15 +0000 (UTC) (envelope-from erichfreebsdlist@alogreentechnologies.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.224.110]) by mx1.freebsd.org (Postfix) with ESMTP id 291B38FC15; Tue, 13 Nov 2012 23:58:14 +0000 (UTC) Received: from X220.ovitrap.com ([122.129.203.50]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id qADNwAO3027786; Tue, 13 Nov 2012 16:58:11 -0700 Date: Wed, 14 Nov 2012 06:58:10 +0700 From: Erich Dollansky To: Mateusz Guzik Subject: Re: compiler info in kernel identification string Message-ID: <20121114065810.1ace6c60@X220.ovitrap.com> In-Reply-To: <20121113234303.GA15319@dft-labs.eu> References: <20121113234303.GA15319@dft-labs.eu> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, avg@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 23:58:15 -0000 Hi, On Wed, 14 Nov 2012 00:43:03 +0100 Mateusz Guzik wrote: > Hello, > > avg@ suggested to include compiler version in the kernel so that it's > present in uname (and one can easly tell what was used to compile it). > > Here is my attempt: > http://people.freebsd.org/~mjg/patches/newvers-compiler.diff > > Basically adds compiler name and version/revision after revision of > system sources. > > Sample output from dirty git sources: > gcc: > FreeBSD 10.0-CURRENT #7 r242962=264d569-dirty(gcc-4.2.1-20070831): Wed > Nov 14 00:11:51 CET 2012 > > clang: > FreeBSD 10.0-CURRENT #8 r242962=264d569-dirty(clang-r162107): Wed Nov > 14 00:12:26 CET 2012 > > Sample output from svn with gcc: > FreeBSD 10.0-CURRENT #1 r243006:243007M(gcc-4.2.1-20070831): Wed Nov > 14 00:41:23 CET 2012 > > I have no strong opinions on format, I just want this information > easly accessible. > > Comments? > this is a good idea! Erich