From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: reproducible builds and debugging information Date: Tue, 24 Mar 2015 22:09:50 +0100 Message-ID: <87zj72xftt.fsf@gnu.org> References: <20150322172632.GB3826@venom> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaW5J-0004GS-BY for guix-devel@gnu.org; Tue, 24 Mar 2015 17:10:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaW5D-0006cE-Sz for guix-devel@gnu.org; Tue, 24 Mar 2015 17:10:01 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaW5D-0006bj-Ql for guix-devel@gnu.org; Tue, 24 Mar 2015 17:09:55 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:35541 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YaW5A-00046e-4W for guix-devel@gnu.org; Tue, 24 Mar 2015 17:09:55 -0400 In-Reply-To: <20150322172632.GB3826@venom> (=?utf-8?B?IlRvbcOhxaEgxIxlY2gi?= =?utf-8?B?J3M=?= message of "Sun, 22 Mar 2015 18:26:32 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Tom=C3=A1=C5=A1 =C4=8Cech skribis: > As I was tracing curl code, I needed to rebuild the package with > "-ggdb" in CFLAGS and enable debug among outputs. > > The later doesn't change the hash (and the generated code), but the > first does. Both approaches change the output hash. (As soon as a bit changes in the build process, the output hash changes.) Adding a =E2=80=9Cdebug=E2=80=9D output is nice because we have support to = automatically DTRT (info "(guix) Installing Debugging Files"). > So I'd like to propose to put "-ggdb" to generally applied CFLAGS for > whole distribution. Packages that have an autoconf-based build system, and I suppose most others, are built with -g. The binaries get stripped by default and debugging info is lost unless the package has a =E2=80=9Cdebug=E2=80=9D out= put. Currently a few key packages have that, but most don=E2=80=99t (I think Deb= ian does something similar, not sure about other distros.) We could make it opt-out rather than opt-in, but the issue is disk usage on build machine (including end-user machines.) See . Thoughts? Ludo=E2=80=99.