From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: Re: Debugging info unavailability Date: Tue, 02 May 2017 21:53:12 -0700 Message-ID: <87zieu7d8n.fsf@gmail.com> References: <20170423020206.41aac1a2@scratchpost.org> <87d1brk1ul.fsf@gnu.org> <87shknnrfm.fsf@gmail.com> <87pofr0xjs.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]:37562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5mI0-0006wC-Uv for guix-devel@gnu.org; Wed, 03 May 2017 00:53:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5mHw-0004n1-A3 for guix-devel@gnu.org; Wed, 03 May 2017 00:53:25 -0400 In-Reply-To: <87pofr0xjs.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 02 May 2017 23:16:23 +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 ludo@gnu.org (Ludovic Court=C3=A8s) writes: > 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 inst= all doxygen:debug but that wasn't available. >>>> >>>> I think it would be nice if these outputs were available by default (b= ut 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 bui= ld 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, = there > 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. > Thanks for pointing that! It would be a Bad Thing indeed to introduce a mismatch between the package definition and the corresponding store item... Possibly another Bad Idea, but we could leave things as they are... And run a script which would rewrite (really, at the package definition level) the package outputs to include "debug" for every package built using the gnu/glib-or-gtk build systems? The commit will not be pretty, that would bring us where we want to be? Being Scheme, that'd be somewhat easy. Maxim --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJ9WGpPiQCFQyn/CfEmDkZILmNWIFAlkJYjgACgkQEmDkZILm NWKToA//apOSFATJs51YnvmWa/mLO5PuexuEJU+PhYt20b83Wir4tl3pjmgn1h6P qRHh9bQls6stoF51s0tSGV187PNuksjooDQQIb4Vhc4pVeW/gfvRowbck4E9yQao lCN6L1TFBcNh/NaQ7GR+AMveRradbsmWSKI2TQWhGfYGSiacbMI7B6umYRsemLpy 2tM/R9WoJK55Ol7oR0KIVopc/imS0vcuTDM3HCB4A06oL8vt0ECD/8VAg6TcpSmG rz3tijyjlOXwU0jwIg8A+xkpnxchJvYVbO0EuuxrxvHCbb9QKJKqDChjF+cwpT4K yt8oTX+vOr/cEn4NEMV9Ysv0YLjV6sU8VKL62JSJDW95KXQ5EchxiH9tMk8FujMH rGQs7UoonMoYzs8bNneFFiznqQohQiP0DPSfe8Hs5KFS0j5xRfZVbLsCyxT9GsRu S7tloUL0ADJutNAPRb+mr8aiZ/pSVtUnuERp/Bi9BrmeMQ1knOLQDKRQ0A7DycbC 5wzrBswfmmzH/3Q6xcAUU1G50t1jaild9MZ0AkXQEjMPU2RqXdAI9A3K8CNMi2Qz ZO0kEyOeqbouL8R/+MuW4EOy8LDBzHxNabwz4KOTBSGEpSHGz/xBTohL3ag8h+kr p9Pwti3p3UefF1j0BzUyUfazre4G6q3vn5cI4GuJ68tsZrNkCzQ= =w2FB -----END PGP SIGNATURE----- --=-=-=--