cabal-debian icon indicating copy to clipboard operation
cabal-debian copied to clipboard

cabal-debian fails for custom location of the ghc

Open Timo-Weike opened this issue 5 years ago • 4 comments

I used ghcup to set up ghc and cabal and both work but cabal-debian seems to have a problem with how ghcup sets up the ghc. Error message is

dpkg-query: Kein Pfad gefunden, der auf Muster /home/timo/.ghcup/bin/ghc passt
cabal-debian: readCreateProcess: dpkg-query "-S" "/home/timo/.ghcup/bin/ghc" (exit 1): failed

Timo-Weike avatar Nov 07 '19 16:11 Timo-Weike

Looks like filePackage needs to check the exit code of dpkg-query to handle this case better.

clinty avatar Nov 09 '19 12:11 clinty

Is there any workaround for this problem at this moment? I'm also using ghcup on Ubuntu to manage GHC and Cabal versions.

chshersh avatar Mar 22 '20 16:03 chshersh

I'm happy to accept any patches submitted, or add any volunteers as maintainer, but I no longer develop Debian packages.

ddssff avatar Mar 23 '20 11:03 ddssff

@ddssff Thanks for the heads up!

@clinty I see that your fork of this repo is listed on Hackage in the Maintainer field but your GitHub repository doesn't have issues, so it's not possible to open new issues or discuss existing problems in there.

chshersh avatar Mar 23 '20 15:03 chshersh