From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Debugging info unavailability Date: Tue, 02 May 2017 23:16:23 +0200 Message-ID: <87pofr0xjs.fsf@gnu.org> References: <20170423020206.41aac1a2@scratchpost.org> <87d1brk1ul.fsf@gnu.org> <87shknnrfm.fsf@gmail.com> 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]:34977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5f9q-0001CJ-00 for guix-devel@gnu.org; Tue, 02 May 2017 17:16:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5f9l-0002Vg-Ts for guix-devel@gnu.org; Tue, 02 May 2017 17:16:29 -0400 In-Reply-To: <87shknnrfm.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 02 May 2017 09:39:57 -0700") 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" To: Maxim Cournoyer Cc: guix-devel@gnu.org Maxim Cournoyer skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Hi, >> >> Danny Milosavljevic skribis: >> >>> just now I had to debug a doxygen Segmentation Fault. I tried to insta= ll doxygen:debug but that wasn't available. >>> >>> I think it would be nice if these outputs were available by default (bu= t not installed by default). >> >> Yeah, on of the reasons this is currently opt-in is disk space on hydra, >> as noted in the manual (info "(guix) Installing Debugging Files"). >> >> There=E2=80=99s also the fact that packages that do not use the GNU buil= d system >> will most likely not produce debugging info out of the box, so adding >> =E2=80=9Cdebug=E2=80=9D automatically may break many packages. >> >>> If we wanted to do that, we could just adapt >>> guix/build-system/cmake.scm, guix/build-system/gnu.scm and >>> guix/build-system/glib-or-gtk.scm outputs default to say '("out" >>> "debug") instead of '("out"). >> >> Rather we should change the default value of the =E2=80=98outputs=E2=80= =99 field of >> . >> > > Adding the "debug" to the default value of would every package > to now have a debug output; isn't this why Danny suggested to only > change it at the build system level? That way nothing which doesn't have > debugging symbols by default would break or have a useless debug output. Yes, it=E2=80=99s tempting to do it at the build-system level. However, th= ere would now be a discrepancy between the actual outputs of the package derivations and those of the package object: the package object would declare just one output, but the corresponding derivation would have two outputs. I guess bad things would happen if we did that, but maybe someone needs to try and see exactly what goes wrong. Ludo=E2=80=99.