juhp / cabal-rpm

Haskell Cabal RPM packaging tool
https://hackage.haskell.org/package/cabal-rpm
GNU General Public License v3.0
25 stars 8 forks source link

`cabal-rpm install` fails if ghc-rpm-macros is missing #49

Closed dashea closed 7 years ago

dashea commented 7 years ago

The command it tried to exec ends up being ["dnf", "", "install", "ghc-rpm-macros"], which causes dnf to print the help output and exit.

dashea commented 7 years ago

Actually this seems to be any time cabal-rpm tries to install a dependency that's available via dnf. This is using cabal-rpm-0.11.1-1.fc26.x86_64

juhp commented 7 years ago

I can't reproduce this yet. I works for me.

juhp commented 7 years ago

Just to be sure what is the output of cabal-rpm --version?

juhp commented 7 years ago

Is it because you are not using sudo perhaps?

juhp commented 7 years ago

Also could you post the output from cabal-rpm when you do this?

juhp commented 7 years ago

Nevermind, I think I have fixed this now in git.

Perhaps you could just test it works for you or I can do a release on Hackage that you can cabal install if that is easier for you.

dashea commented 7 years ago

The latest from git works for me, thanks

juhp commented 7 years ago

Great thanks

juhp commented 7 years ago

This should be fixed in cabal-rpm-0.11.2