ddssff / cabal-debian

Create a Debianization by examining a .cabal file.
Other
16 stars 10 forks source link

Prelude.read: no parse #64

Open georgewsinger opened 6 years ago

georgewsinger commented 6 years ago

On Ubuntu bionic:

$ cabal-debian  --maintainer 'Maintainer Name <maintainer@email>'
cabal-debian: Prelude.read: no parse
ddssff commented 6 years ago

Not a very helpful message I agree. What was in your working directory when you got that? Also, does -v affect the output?

georgewsinger commented 6 years ago

Using -v does not affect the output:

$ cabal-debian -v --maintainer 'Maintainer Name <maintainer@email>'
cabal-debian: Prelude.read: no parse

The contents of the directory:

$ ls -a
.       doc         .gitmodules  NixHelpers.sh  readthedocs.yml  Simula.cabal    .stack-work  UbuntuHelpers.sh
..      err         LICENSE      OpenGLRaw      Setup.hs         simula-openvr   stack.yaml   vive-compositor.trace
app     .git        log          package.yaml   shaders          simula-wayland  swrast.sh    vulkan
debian  .gitignore  Makefile     README.md      shell.nix        src             test
ddssff commented 6 years ago

is that a repo I could download?

georgewsinger commented 6 years ago

Yes: git clone https://github.com/SimulaVR/Simula.git

ddssff commented 6 years ago

Perhaps you are using a newer or older ghc than I have access to? I was able to build the debian directory with this command:

cabal-debian --maintainer 'Maintainer Name maintainer@email' --exec-map c2hs:c2hs --exec-map libweston-3:weston --exec-map libweston-desktop-3:weston

debian.tar.zip

georgewsinger commented 6 years ago

What version of GHC are you using?

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
ddssff commented 6 years ago

I see a few unprotected reads in the dependency library "debian". I will make a patch to make them at least throw a more helpful error. (Actually they don't look like they are likely to be the cause. Hmm.)