From owner-freebsd-current@FreeBSD.ORG Fri Nov 16 09:20:45 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 9D2B9DF1; Fri, 16 Nov 2012 09:20:45 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp2.one.com (csmtp2.one.com [91.198.169.22]) by mx1.freebsd.org (Postfix) with ESMTP id 4F70E8FC12; Fri, 16 Nov 2012 09:20:44 +0000 (UTC) Received: from [192.168.187.69] (unknown [87.54.33.251]) by csmtp2.one.com (Postfix) with ESMTPA id 004CC304044E; Fri, 16 Nov 2012 09:20:42 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: compiler info in kernel identification string From: Erik Cederstrand In-Reply-To: <50A5EC7C.5050303@FreeBSD.org> Date: Fri, 16 Nov 2012 10:20:44 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5B4DE1FD-5DD3-49A5-B8DB-6D4C03ABD742@cederstrand.dk> References: <20121113234303.GA15319@dft-labs.eu> <50A3639C.9050200@FreeBSD.org> <1352907497.1217.147.camel@revolution.hippie.lan> <50A57623.4020108@FreeBSD.org> <50A5EC7C.5050303@FreeBSD.org> To: Andriy Gapon X-Mailer: Apple Mail (2.1499) Cc: Ian Lepore , Mateusz Guzik , Dimitry Andric , freebsd-current@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: Fri, 16 Nov 2012 09:20:45 -0000 Den 16/11/2012 kl. 08.34 skrev Andriy Gapon : > on 16/11/2012 01:09 Dimitry Andric said the following: >> And as I remarked in another reply, now that I have thought about it = a >> bit, I would much rather see this information moved to a sysctl or = dmesg >> line, than in uname. With the happy side effect that no existing = uname >> parsers would be confused! >=20 > I would still like to have at least compiler's "base name" or type or = something > in uname. This has been brought up before, but what about putting all this in a = separate file, e.g. /etc/buildinfo? At least I'd like this to be configurable. I'm trying to get FreeBSD = code in a shape where it can optionally produce deterministic binaries = from two different builds (i.e. comparable with md5) as long as the = binaries are functionally equivalent, and "irrelevant" info like = compiler version, hostname, username, timestamp, absolute path etc. are = a nuisance if they can't be turned off with -fno-ident, -frandom-seed, = -DSTRIP_FBSDID, ar -D and the like. Thanks, Erik=