Subject: bug#40488: closed (Re: bug#40488: Finance packages broken in recent Guix: error: beancount: unbound variable)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 07 Apr 2020 16:49:26 +0000

Your bug report

#40488: Finance packages broken in recent Guix: error: beancount: unbound variable

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
40488: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40488
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#40488: Finance packages broken in recent Guix: error: beancount: unbound variable
From: Marius Bakke <[email-masked]>
To: Christopher Baines <[email-masked]>, [email-masked]
Date: Tue, 07 Apr 2020 18:48:27 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Christopher Baines <[email-masked]> writes:

> → guix describe
> Generation 181	Apr 07 2020 16:55:29	(current)
>   guix 1e96e6a
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 1e96e6ac8bc0285cc2adfac4ac29b538b84d5dfc
>
> → guix build ledger
> Backtrace:
>            1 (primitive-load "/home/chris/.config/guix/current/bin/g…")
> In guix/ui.scm:
>   1936:12  0 (run-guix-command _ . _)
>
> guix/ui.scm:1936:12: In procedure run-guix-command:
> error: beancount: unbound variable

This is because of cross-module inheritance, which is not safe because
'beancount' may not be evaluated by the time 'emacs-beancount' is.

Fixed in 805d70214a1b22da70a7545cb1eb49bb5d7484d8, thanks!

Subject: Finance packages broken in recent Guix: error: beancount: unbound variable
From: Christopher Baines <[email-masked]>
To: [email-masked]
Date: Tue, 07 Apr 2020 17:00:23 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

→ guix describe
Generation 181	Apr 07 2020 16:55:29	(current)
  guix 1e96e6a
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 1e96e6ac8bc0285cc2adfac4ac29b538b84d5dfc

→ guix build ledger
Backtrace:
           1 (primitive-load "/home/chris/.config/guix/current/bin/g…")
In guix/ui.scm:
  1936:12  0 (run-guix-command _ . _)

guix/ui.scm:1936:12: In procedure run-guix-command:
error: beancount: unbound variable

I believe this issue was probalby present since [1] and [2] were merged,
around ~5 days ago.

1: http://git.savannah.gnu.org/cgit/guix.git/commit/?id=f1f724841a6b610e162d36d08225094317ebaf09
2: http://git.savannah.gnu.org/cgit/guix.git/commit/?id=abcac7a52932bdf66c333659679b0a5e6169e34c

Similar commands seem to work in a Git checkout, so I'm not sure what's
goig wrong here.

Thanks,

Chris