GNU bug report logs -
#35743
guix import hackage: fails with mixed indentation
Previous Next
Reported by: Robert Vollmert <rob <at> vllmrt.net>
Date: Wed, 15 May 2019 09:13:02 UTC
Severity: normal
Done: Lars-Dominik Braun <lars <at> 6xq.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35743 in the body.
You can then email your comments to 35743 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#35743
; Package
guix
.
(Wed, 15 May 2019 09:13:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Robert Vollmert <rob <at> vllmrt.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 15 May 2019 09:13:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
$ guix import hackage wai-app-static
Syntax error: unexpected token : (ghc-options (-Wall)) (at line 106, column 2)
The relevant extract of the cabal file is:
test-suite runtests
[…]
build-depends: base >= 4 && < 5
[…]
, mockery
-- , containers
ghc-options: -Wall
Presumably the double dash comment is tripping `guix import` up.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#35743
; Package
guix
.
(Wed, 15 May 2019 09:22:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 35743 <at> debbugs.gnu.org (full text, mbox):
I learned about `guix import hackage --stdin`, and it turns out the problem is with bad indentation in the cabal file. (The offending line is indented by two spaces instead of four spaces for the block before.) It’s unclear to me whether this is a “valid” cabal file as it is.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#35743
; Package
guix
.
(Wed, 22 May 2019 07:29:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 35743 <at> debbugs.gnu.org (full text, mbox):
This specific case has been fixed upstream, and should eventually
make it to hackage:
https://github.com/yesodweb/wai/pull/748
The issue does remain in the sense that `guix import` doesn’t parse
some such cabal files that `cabal` is happy with — mark done anyway?
Information forwarded
to
bug-guix <at> gnu.org
:
bug#35743
; Package
guix
.
(Fri, 24 May 2019 15:29:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 35743 <at> debbugs.gnu.org (full text, mbox):
The problem seems more wide-spread, so should probably be fixed within import/cabal.scm.
E.g. warp:
http://hackage.haskell.org/package/warp-3.2.27/warp.cabal
http://hackage.haskell.org/package/streaming-commons-0.2.1.0/streaming-commons.cabal
contain things along the following lines:
benchmark builder-to-bytestring-io
...
build-depends: base
, bytestring >= 0.10.2
, gauge
, deepseq
, streaming-commons
if flag(use-bytestring-builder)
build-depends: bytestring < 0.10.2.0
, bytestring-builder
This kind of out-dented conditional seems not very rare.
Changed bug title to 'guix import hackage: fails with mixed indentation' from 'guix import hackage wai-app-static fails (comment syntax?)'
Request was from
Robert Vollmert <rob <at> vllmrt.net>
to
control <at> debbugs.gnu.org
.
(Sun, 16 Jun 2019 12:41:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Lars-Dominik Braun <lars <at> 6xq.net>
:
You have taken responsibility.
(Sun, 03 Dec 2023 08:17:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Robert Vollmert <rob <at> vllmrt.net>
:
bug acknowledged by developer.
(Sun, 03 Dec 2023 08:17:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 35743-done <at> debbugs.gnu.org (full text, mbox):
Hi,
> http://hackage.haskell.org/package/warp-3.2.27/warp.cabal
> http://hackage.haskell.org/package/streaming-commons-0.2.1.0/streaming-commons.cabal
>
> contain things along the following lines:
these should be fixed by the patch in #67564.
Cheers,
Lars
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 31 Dec 2023 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 131 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.