unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug in strip phase of gnu-build-system?
@ 2022-07-03  5:17 elaexuotee
  2022-07-03 11:28 ` Mark H Weaver
  2022-07-04 13:18 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: elaexuotee @ 2022-07-03  5:17 UTC (permalink / raw)
  To: guix-devel; +Cc: mhw

Hello,

Sanity check, please.

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.

The logic for creating debug files exists in (guix build gnu-build-system)
under the definition of `strip`. In particular `strip-dir` extracts the debug
info into "debug" if and only fi that output exists.

Note, that (guix build-system gnu) already removes "debug" from the outputs
when strip-binaries? is true.

However, for some reason the actual `strip-dir1 invocation is wrapped in a (if
strip-binaries? ...) check, meaning that the entire phase becomes a no-op.
Shouldn't that if check be removed?

I have CC'ed Mark Weaver, since it looks like he is the author of this
particular if block.

Cheers,
B. Wilson


P.S.
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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-04 15:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).