From owner-freebsd-current@FreeBSD.ORG Fri Nov 16 09:27:09 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 CEE16F57; Fri, 16 Nov 2012 09:27:09 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C84B28FC14; Fri, 16 Nov 2012 09:27:08 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA13757; Fri, 16 Nov 2012 11:27:05 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1TZICX-000175-8U; Fri, 16 Nov 2012 11:27:05 +0200 Message-ID: <50A606E7.5000302@FreeBSD.org> Date: Fri, 16 Nov 2012 11:27:03 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121030 Thunderbird/16.0.2 MIME-Version: 1.0 To: Erik Cederstrand Subject: Re: compiler info in kernel identification string 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> <5B4DE1FD-5DD3-49A5-B8DB-6D4C03ABD742@cederstrand.dk> In-Reply-To: <5B4DE1FD-5DD3-49A5-B8DB-6D4C03ABD742@cederstrand.dk> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:27:09 -0000 on 16/11/2012 11:20 Erik Cederstrand said the following: > 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! >> >> 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? There is a chance this file could be out of sync with kernel. > 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 This is a very good goal. I also would like to see it achieved. > different builds (i.e. comparable with md5) as long as the binaries are > functionally equivalent, and "irrelevant" info like compiler version, I agree about the following items, but not about compilers / compiler versions. Different compilers can (and do) produce different binaries already (and sometimes bugs). While, indeed, time of compilation should not affect the binaries (unless the phase of the Moon plays a role). > 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. -- Andriy Gapon