From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Debugging info unavailability
Date: Tue, 02 May 2017 09:39:57 -0700 [thread overview]
Message-ID: <87shknnrfm.fsf@gmail.com> (raw)
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")
[-- Attachment #1: Type: text/plain, Size: 1894 bytes --]
Hi,
ludo@gnu.org (Ludovic Courtès) writes:
> Hi,
>
> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>
>> just now I had to debug a doxygen Segmentation Fault. I tried to install 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’s 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
> “debug” 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 ‘outputs’ field of
> <package>.
>
Adding the "debug" to the default value of <package> 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’d 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’.
That seems a more invasive/uglier solution to that hinted by Danny? Or am I
missing something? :)
Thanks,
Maxim
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2017-05-02 16:40 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-23 0:02 Debugging info unavailability Danny Milosavljevic
2017-04-24 7:35 ` Tomas Cech
2017-05-02 10:08 ` Ludovic Courtès
2017-05-02 16:39 ` Maxim Cournoyer [this message]
2017-05-02 21:16 ` Ludovic Courtès
2017-05-03 4:53 ` Maxim Cournoyer
2017-05-03 6:29 ` Ricardo Wurmus
2017-05-03 10:11 ` Ludovic Courtès
2017-05-03 15:22 ` Maxim Cournoyer
2017-05-05 20:31 ` Ludovic Courtès
2017-05-05 21:47 ` Ricardo Wurmus
2017-05-06 12:21 ` Ludovic Courtès
2017-05-05 22:09 ` Maxim Cournoyer
2017-05-06 12:26 ` Distributing substitutes over GNUnet Ludovic Courtès
2017-05-11 15:05 ` Maxim Cournoyer
2017-05-06 12:46 ` Debugging info unavailability ng0
2017-05-11 5:13 ` Maxim Cournoyer
2017-05-11 16:50 ` ng0
2017-05-11 21:04 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87shknnrfm.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.