GNU bug report logs -
#38946
guix import fails for cabal-helper
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38946 in the body.
You can then email your comments to 38946 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#38946
; Package
guix
.
(Sun, 05 Jan 2020 15:24:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sergiu Marton <brown121407 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sun, 05 Jan 2020 15:24:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I've been trying to improve the Haskell tooling we have here on Guix, but
I ran into this problem: if I try to do ~guix import hackage
cabal-helper~ it fails with:
Syntax error: unexpected token : common (at line 76, column 0)
Syntax error: unexpected end of input
guix import: error: failed to download cabal file for package 'cabal-helper'
If I import ghc-mod (which depends on cabal-helper) recursively, I get this:
Syntax error: unexpected token : common (at line 76, column 0)
Syntax error: unexpected end of input
Backtrace:
13 (primitive-load "/home/brown/.config/guix/current/bin/g…")
In guix/ui.scm:
1806:12 12 (run-guix-command _ . _)
In guix/scripts/import.scm:
116:11 11 (guix-import . _)
In guix/scripts/import/hackage.scm:
132:26 10 (guix-import-hackage . _)
In guix/import/utils.scm:
425:7 9 (recursive-import _ _ #:repo->guix-package _ #:guix-name …)
397:31 8 (topological-sort _ #<procedure 7f74ceff4ed0 at guix/i…> …)
In srfi/srfi-1.scm:
592:29 7 (map1 _)
592:29 6 (map1 _)
592:29 5 (map1 _)
592:29 4 (map1 _)
592:29 3 (map1 ("monad-journal" "pipes" "cabal-helper"))
592:29 2 (map1 ("pipes" "cabal-helper"))
592:17 1 (map1 ("cabal-helper"))
In guix/import/utils.scm:
421:36 0 (lookup-node "cabal-helper")
guix/import/utils.scm:421:36: In procedure lookup-node:
Throw to key `vm-error' with args `(vm-run "Wrong number of values
returned to continuation (expected ~a)" (2))'.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#38946
; Package
guix
.
(Fri, 10 Jan 2020 17:41:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 38946 <at> debbugs.gnu.org (full text, mbox):
It appears that the guix cabal parser (in guix/import/cabal.scm) isn’t aware
of `common` stanzas.
https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-section-common-common
Note that there’s quite a few issues with the cabal parser, and the format is pretty
baroque, to the extent that I wonder whether it wouldn’t be better to delegate the
parsing to cabal itself.
E.g.:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35743
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36690
I also remember some issue with braces instead of indentation, but can’t find a bug
report right now.
Reply sent
to
Lars-Dominik Braun <lars <at> 6xq.net>
:
You have taken responsibility.
(Sat, 25 May 2024 06:57:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Sergiu Marton <brown121407 <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 25 May 2024 06:57:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 38946-done <at> debbugs.gnu.org (full text, mbox):
Hi,
> I've been trying to improve the Haskell tooling we have here on Guix, but
> I ran into this problem: if I try to do ~guix import hackage
> cabal-helper~ it fails with:
Guix has had support for the `common` stanza for quite a while now and
importing cabal-helper works. Closing.
Lars
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 22 Jun 2024 11:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 322 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.