unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Tomáš Čech" <sleep_walker@gnu.org>
To: guix-devel@gnu.org
Subject: Re: reproducible builds and debugging information
Date: Thu, 26 Mar 2015 22:51:15 +0100	[thread overview]
Message-ID: <20150326215115.GF19723@venom.suse.cz> (raw)
In-Reply-To: <87pp7vqwtc.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2749 bytes --]

On Thu, Mar 26, 2015 at 10:21:35PM +0100, Ludovic Courtès wrote:
>Tomáš Čech <sleep_walker@gnu.org> skribis:
>
>> On Tue, Mar 24, 2015 at 10:09:50PM +0100, Ludovic Courtès wrote:
>
>[...]
>
>>>Packages that have an autoconf-based build system, and I suppose most
>>>others, are built with -g.
>>
>> I can't confirm this statement.
>>
>> I added "debug" output to curl package:
>
>Indeed, I just checked and cURL overrides the default behavior.  Here it
>has to be configured with --enable-debug, which also enables the test
>suite (!).  Do you want to try that, and add the “debug” output?
>
>>>The binaries get stripped by default and
>>>debugging info is lost unless the package has a “debug” output.
>>
>> OK, the difference -g and -ggdb is slight, but there is the problem
>> with "debug" output.
>>
>> When package has output "debug" always - there is no problem.
>>
>> When package doesn't have "debug" output and I need it, mere adding
>> output "debug" into package receipt will change the hash so I'll get
>> different package.
>
>Right.
>
>>>Currently a few key packages have that, but most don’t (I think Debian
>>>does something similar, not sure about other distros.)
>>
>> On openSUSE you have available all the subpackage providing stripped
>> debug informations and subpackage providing source code from the
>> moment of build (so DWARF information in debug part can match the source).
>
>You mean there’s a ‘-debug’ package for every single package?

For every single binary package, yes. You can suppress it too. Why it
is so surprising?

>>>We could make it opt-out rather than opt-in, but the issue is disk usage
>>>on build machine (including end-user machines.)  See
>>><http://lists.gnu.org/archive/html/bug-guix/2013-07/msg00015.html>.
>>>
>>>Thoughts?
>>
>> If we have distribution of reproducible packages, we can keep it
>> opt-in and generate debug information next time (by not dropping
>> it).
>
>That’s not how it works; generating the debug info requires redoing the
>whole build process, but with a slight difference.

I know, I was ambiguous again. We both meant the same.

I would like to move the decision whether to keep or to drop debug
information outside of the build itself to keep the hash the same.

Imagine situation where you added "debug" output to every package and
after each build the newly generated store with debug information is
deleted (carefully, not to corrupt database, of course). Your hash
still will be the same.

Then someone reports bug, delivers coredump from some crash.
You need debug info for analysis - you prevent from automatic
deletion of the store with debug information.


S_W



[-- Attachment #2: Type: application/pgp-signature, Size: 181 bytes --]

  reply	other threads:[~2015-03-26 21:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-22 17:26 reproducible builds and debugging information Tomáš Čech
2015-03-24 21:09 ` Ludovic Courtès
2015-03-25  0:33   ` Tomáš Čech
2015-03-26 21:21     ` Ludovic Courtès
2015-03-26 21:51       ` Tomáš Čech [this message]
2015-03-27 21:24         ` Ludovic Courtès
2015-03-27 21:55           ` Tomáš Čech
2015-03-28 17:41             ` Ludovic Courtès
2015-03-29 17:24               ` Mark H Weaver
2015-03-30 19:42                 ` 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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150326215115.GF19723@venom.suse.cz \
    --to=sleep_walker@gnu.org \
    --cc=guix-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).