all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: elaexuotee@wilsonb.com,
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org, mhw@netris.org
Subject: Re: Bug in strip phase of gnu-build-system?
Date: Tue, 05 Jul 2022 00:14:57 +0900	[thread overview]
Message-ID: <34B1WAGMQ05UO.310LMOOM8YS1N@"@WILSONB.COM> (raw)
In-Reply-To: <87r131auda.fsf@gnu.org>

Ludovic Courtès <ludo@gnu.org> wrote:
> Hi,
> 
> elaexuotee@wilsonb.com skribis:
> 
> > When `strip-binaries?` is `#f` and a "debug" output is defined, said output
> > remains empty. Instead, I expect "debug" to get populated with separated debug
> > files.
> 
> Hmm I see.  The logic was different: #:strip-binaries? #f disables
> stripping, but it doesn’t populate the “debug” output either.
> 
> If you want to populate the “debug” output, you need to declare a
> “debug” output in the package and keep #:strip-binaries? #t.
> 
> (I can see arguments for and against both interpretations, but that’s
> how it is currently.)

Oh. Blah. It was something obivous. Hehe. Thank you for cleaing up my
confusion.

I apparently misread `lower` from (guix build-system gnu), thinking it stripped
the "debug" output if #:strip-binaries? is true.

> [...]
> 
> > If the above is correct, then would it make sense for --with-debug-info to also
> > inject a "debug" output as needed? It looks like this would be pretty easy
> > under guix/transformations.scm:transforma-package-with-debug-info.
> 
> ‘--with-debug-info’ is meant to be used when you want to keep debug info
> (and there’s no “debug” output).  It seemed to me there’s no point in
> having that debug info separate in that case, especially since you
> wouldn’t be able to refer to it.
> 
> HTH!

Very! Much obliged.


      reply	other threads:[~2022-07-04 15:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-03  5:17 Bug in strip phase of gnu-build-system? elaexuotee
2022-07-03 11:28 ` Mark H Weaver
2022-07-04 11:15   ` elaexuotee
2022-07-04 13:18 ` Ludovic Courtès
2022-07-04 15:14   ` elaexuotee [this message]

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='34B1WAGMQ05UO.310LMOOM8YS1N@"@WILSONB.COM' \
    --to=elaexuotee@wilsonb.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=mhw@netris.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.