guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in strip phase of gnu-build-system?


From: Ludovic Courtès
Subject: Re: Bug in strip phase of gnu-build-system?
Date: Mon, 04 Jul 2022 15:18:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

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

[...]

> 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!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]