cabal import parser doesn't support common stanzas

DoneSubmitted by Philip Munksgaard.
Details
3 participants
  • Bone Baboon
  • Tobias Geerinckx-Rice
  • Philip Munksgaard
Owner
unassigned
Severity
normal
Merged with
P
P
Philip Munksgaard wrote on 27 May 15:21 +0200
(address . bug-guix@gnu.org)
6f94e4a1-fc27-479e-8c9f-f1cd7542d6f5@www.fastmail.com
As far as I can tell, the cabal parser for the `guix import` command (https://git.savannah.gnu.org/cgit/guix.git/tree/guix/import/cabal.scm)does not support common stanzas, as specified in the cabal specification (https://cabal.readthedocs.io/en/3.4/cabal-package.html#common-stanzas).
This means that some packages, like "versions" (https://hackage.haskell.org/package/versions-5.0.0/src/versions.cabal)and all depending packages cannot be imported using `guix import hackage versions`:
```$ guix import hackage versionsSyntax error: unexpected token : common (at line 36, column 0)Syntax error: unexpected end of inputguix import: error: failed to download cabal file for package 'versions'```
T
T
Tobias Geerinckx-Rice wrote on 30 May 18:46 +0200
(no subject)
(address . control@debbugs.gnu.org)
874kek41be.fsf@nckx
merge 48700 48701
P
P
Philip Munksgaard wrote on 1 Jul 17:10 +0200
Closed by 48943
(address . 48701-done@debbugs.gnu.org)
179f24db-0e33-4144-9b86-f0b6fdf8bd27@www.fastmail.com
This issue has been fixed by #48943 and should be closed.
Closed
B
B
Bone Baboon wrote on 13 Jul 02:17 +0200
(name . Philip Munksgaard)(address . philip@munksgaard.me)
87o8b7hxsy.fsf@disroot.org
Philip Munksgaard writes:
Toggle quote (2 lines)> This issue has been fixed by #48943 and should be closed.
You can close a bug report by emailing NNN-done@debbugs.gnu.org whereNNN is the bug number.
For the body of the email you can say something like "Closing because<reason>".
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 48701@debbugs.gnu.org