unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#35743: guix import hackage wai-app-static fails (comment syntax?)
@ 2019-05-15  9:12 Robert Vollmert
  2019-05-15  9:21 ` bug#35743: indentation error Robert Vollmert
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Robert Vollmert @ 2019-05-15  9:12 UTC (permalink / raw)
  To: 35743

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

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

* bug#35743: indentation error
  2019-05-15  9:12 bug#35743: guix import hackage wai-app-static fails (comment syntax?) Robert Vollmert
@ 2019-05-15  9:21 ` Robert Vollmert
  2019-05-22  7:27 ` bug#35743: fixed upstream Robert Vollmert
  2019-05-24 15:28 ` bug#35743: applies more widely Robert Vollmert
  2 siblings, 0 replies; 5+ messages in thread
From: Robert Vollmert @ 2019-05-15  9:21 UTC (permalink / raw)
  To: 35743

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.

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

* bug#35743: fixed upstream
  2019-05-15  9:12 bug#35743: guix import hackage wai-app-static fails (comment syntax?) Robert Vollmert
  2019-05-15  9:21 ` bug#35743: indentation error Robert Vollmert
@ 2019-05-22  7:27 ` Robert Vollmert
  2019-05-24 15:28 ` bug#35743: applies more widely Robert Vollmert
  2 siblings, 0 replies; 5+ messages in thread
From: Robert Vollmert @ 2019-05-22  7:27 UTC (permalink / raw)
  To: 35743

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?

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

* bug#35743: applies more widely
  2019-05-15  9:12 bug#35743: guix import hackage wai-app-static fails (comment syntax?) Robert Vollmert
  2019-05-15  9:21 ` bug#35743: indentation error Robert Vollmert
  2019-05-22  7:27 ` bug#35743: fixed upstream Robert Vollmert
@ 2019-05-24 15:28 ` Robert Vollmert
  2023-12-03  8:16   ` bug#35743: guix import hackage: fails with mixed indentation Lars-Dominik Braun
  2 siblings, 1 reply; 5+ messages in thread
From: Robert Vollmert @ 2019-05-24 15:28 UTC (permalink / raw)
  To: 35743

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.

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

* bug#35743: guix import hackage: fails with mixed indentation
  2019-05-24 15:28 ` bug#35743: applies more widely Robert Vollmert
@ 2023-12-03  8:16   ` Lars-Dominik Braun
  0 siblings, 0 replies; 5+ messages in thread
From: Lars-Dominik Braun @ 2023-12-03  8:16 UTC (permalink / raw)
  To: Robert Vollmert; +Cc: 35743-done

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





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

end of thread, other threads:[~2023-12-03  8:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15  9:12 bug#35743: guix import hackage wai-app-static fails (comment syntax?) Robert Vollmert
2019-05-15  9:21 ` bug#35743: indentation error Robert Vollmert
2019-05-22  7:27 ` bug#35743: fixed upstream Robert Vollmert
2019-05-24 15:28 ` bug#35743: applies more widely Robert Vollmert
2023-12-03  8:16   ` bug#35743: guix import hackage: fails with mixed indentation Lars-Dominik Braun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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