From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 21 19:50:30 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE0E01065674 for ; Thu, 21 Oct 2010 19:50:30 +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 685E18FC1D for ; Thu, 21 Oct 2010 19:50:30 +0000 (UTC) Received: from macfeast.lan (0x573b9942.cpe.ge-1-2-0-1101.ronqu1.customer.tele.dk [87.59.153.66]) by csmtp2.one.com (Postfix) with ESMTPA id 2A1AFEA8D09C1; Thu, 21 Oct 2010 19:50:28 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: multipart/signed; boundary=Apple-Mail-114-145781677; protocol="application/pkcs7-signature"; micalg=sha1 From: Erik Cederstrand In-Reply-To: <20101021175748.GD19295@acme.spoerlein.net> Date: Thu, 21 Oct 2010 21:50:26 +0200 Message-Id: References: <718D8E86-EA2E-4D07-BAFF-5D8D093FD296@cederstrand.dk> <20101011084733.GM2392@deviant.kiev.zoral.com.ua> <95F3B27C-42E6-4267-9965-AC3219310C35@cederstrand.dk> <20101021175748.GD19295@acme.spoerlein.net> To: =?iso-8859-1?Q?Ulrich_Sp=F6rlein?= X-Mailer: Apple Mail (2.1081) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Kostik Belousov , FreeBSD Hackers Subject: Re: Deterministic builds? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 19:50:31 -0000 --Apple-Mail-114-145781677 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Den 21/10/2010 kl. 19.57 skrev Ulrich Sp=F6rlein: > On Mon, 11.10.2010 at 11:35:42 +0200, Erik Cederstrand wrote: >>=20 >> I'm beginning to think that it should at least be optional. Removing = e.g. build times, mtimes and path to OBJDIR or SRCDIR might not make = everyone happy. >=20 > The problem with making it optional is, that we already have enough > flags and knobs. No need in adding more. >=20 > Besides, why would people want to know the date of the build? Far more > important is the date and state of the source for the time of build. = So > you might want to replace ${BUILDATE} with ${SRCDATE} somehow (time of > last commit?). >=20 > Otherwise, please go for it. It would be nice if two people compiling > GENERIC for the same source-base would get identical binaries. It goes without saying that I agree with you on this. But it seems the = feature will require fairly invasive changes to a standard FreeBSD, e.g. = changing standard ar behavior, and building kernels and some other tools = without debugging symbols. I'm not experienced enough to determine if = this is fine with the majority of users, but hiding the changes under a = knob would at least let the feature prove itself and put off = bikeshedding for a while. If the project works out, we can discuss = changing the default. I'm still not sure what to do with debugging symbols. Currently absolute = paths to source files are used. I would like to change that to absolute = paths , i.e. usr.bin/ar/ar.c. That might even be beneficial if someone = is debugging the binary on a system that doesn't have the source tree = located in /some/obscure/directory/src. It's my understanding that gdb = uses the path to look up source code related to stack traces etc. It = seems gdb can handle relative paths, but I have no idea if it actually = works, or if it's a nuisance to use compared to absolute paths. Any = hints? Thanks, Erik= --Apple-Mail-114-145781677--