From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: Re: Debugging info unavailability Date: Tue, 02 May 2017 09:39:57 -0700 Message-ID: <87shknnrfm.fsf@gmail.com> References: <20170423020206.41aac1a2@scratchpost.org> <87d1brk1ul.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5aqN-0006qW-J6 for guix-devel@gnu.org; Tue, 02 May 2017 12:40:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5aqK-0003lT-Cj for guix-devel@gnu.org; Tue, 02 May 2017 12:40:07 -0400 In-Reply-To: <87d1brk1ul.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 02 May 2017 12:08:34 +0200") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, 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 instal= l doxygen:debug but that wasn't available. >> >> I think it would be nice if these outputs were available by default (but= 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 build= 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. Or, was there something with making the change at that level? > The problem is that we=E2=80=99d have to add a line like: > > (outputs '("out")) > > to all the packages that do not provide debugging symbols (such as > Perl/Python/Ruby packages), which could be a lot of them. Or we could > provide: > > (define-syntax-rule (package/no-debug fields ...) > (package > (outputs '("out")) > fields ...)) > > Thoughts? > > Ludo=E2=80=99. That seems a more invasive/uglier solution to that hinted by Danny? Or am I missing something? :) Thanks, Maxim --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJ9WGpPiQCFQyn/CfEmDkZILmNWIFAlkItl0ACgkQEmDkZILm NWLXZA/+O0MmlSLX65naPK0NqAf4wAmzx/ZG4Fd2GzpqaRxl5uywP7YRhu+7Ammz 0s2cdipav3zs38UD7DfqVeiW3XIlYic7KrbT4gnooel5fCCtipwmGR/bbtIQiMO8 76wKy2OlQBglpmM87Ly9cJw/PLDpq8kzUSNG6QZj9NSmtdVK6h6LGAGmplSEWZUb Xr3mhm4V1/Aij2lrlj9eyOzBjm8BqVZz2gbeoLYZRAcqBXMiTcts6oYYQOeCNe7a hDA8B42ZHqrPhOy3JGlgGy3TAN+wPY92G47xgP7lVA4ELYuW5klDowOclBrLTvDX 1rVpSJP2F/npXdHSlsPcDaCPOLzIgTunvQS7Q6y6orfgYiElxXV96ID9mt2Zgb48 sZFuoVFZ0R+UXfUZmmIVv2XUbTBFSVv+6CRqcLj9gQJRvzVBcmSN8r+SeYmdT4lt r54vMKc9ZaCNICLQl+RIafKZcH3wEtudhT0DLTBX2HbcI5mlla4NEXMaHb6l/3sI AxM0OcdmCJ3L4ZsKmqJfE80ndvNLyrt9UPDhLz/35OoKGrtBD/iBdtmNl/yBmixD v/VtkyY07zyrpl9n7ftlXi2tHw6zmw1KKnXSuCCwPwJLK8neVLHw/yOpSx05rPQ2 K1ybscEXpxLBu87GtPP8JAuYYx2HNm33TsZ1r9lyGF0w9/JW0jw= =mZQO -----END PGP SIGNATURE----- --=-=-=--