unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* debugging %build-inputs
@ 2022-10-06  1:35 jgart
  2022-10-06  6:40 ` (
  0 siblings, 1 reply; 2+ messages in thread
From: jgart @ 2022-10-06  1:35 UTC (permalink / raw)
  To: Guix Help

Hi,

How can I debug what %build-inputs is in the context of the package being built?

    (arguments
     `(#:configure-flags
       (list (string-append "--with-tcl="
                            (assoc-ref %build-inputs "tcl")
                            "/lib")    ^^^^^^^^^^^^
             (string-append "--with-tk="
                            (assoc-ref %build-inputs "tk")
                            "/lib"))))


The above snippet is from gtkwave (e.g. guix edit gtkwave).

What I would like to do is drop into a debugger in the environment where I can print %build-inputs.

If I can't do it that way what is the Guiler way to achieve what I'm trying to do?

Any advice and enlightment would be much appreciated.

all best,

jgart


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

* Re: debugging %build-inputs
  2022-10-06  1:35 debugging %build-inputs jgart
@ 2022-10-06  6:40 ` (
  0 siblings, 0 replies; 2+ messages in thread
From: ( @ 2022-10-06  6:40 UTC (permalink / raw)
  To: jgart, Guix Help

On Thu Oct 6, 2022 at 2:35 AM BST, jgart wrote:
>     (arguments
>      `(#:configure-flags
>        (list (string-append "--with-tcl="
>                             (assoc-ref %build-inputs "tcl")
>                             "/lib")    ^^^^^^^^^^^^
>              (string-append "--with-tk="
>                             (assoc-ref %build-inputs "tk")
>                             "/lib"))))

``%build-inputs'' is an **obsolete** variable that provides an
alist of inputs to output paths:

  `(("gcc" . "/gnu/store/...-gcc-...")
    ("make" . "/gnu/store/...-make-...")
    ("tcl" . "/gnu/store/...-tcl-...")
    ("tk" .  "/gnu/store/...-tk-..."))

et cetera.  So, it should just contain a map of the label of each
input to its compiled store path.

Usage of ``(assoc-ref %build-inputs LABEL)'' is basically the same
as usage of ``#$(this-package-input LABEL)'' or
``#$(this-package-input LABEL)''.

Regarding the debugging question: no, I don't believe there is a
way to start a REPL in the build environment.

    -- (


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

end of thread, other threads:[~2022-10-06  6:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-06  1:35 debugging %build-inputs jgart
2022-10-06  6:40 ` (

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