Ticket #1195 (closed defect: invalid)

Opened 7 years ago

Last modified 5 years ago

glib should depend on gtk2hs-buildtools

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.11.0
Component: general (Gtk+, Glib) Version: 0.11.0
Keywords: Cc: JadeNB1729@…


When I try to install GLib, I get the following error:

$ cabal install glib
Resolving dependencies...

     warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup      ( /var/folders/9I/9Ic7OfDBGVmrCPM+NiQOAWp80Kc/-Tmp-/glib-0.11.092062/glib-0.11.0/Gtk2HsSetup.hs, /var/folders/9I/9Ic7OfDBGVmrCPM+NiQOAWp80Kc/-Tmp-/glib-0.11.092062/glib-0.11.0/dist/setup/Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( /var/folders/9I/9Ic7OfDBGVmrCPM+NiQOAWp80Kc/-Tmp-/glib-0.11.092062/glib-0.11.0/Setup.hs, /var/folders/9I/9Ic7OfDBGVmrCPM+NiQOAWp80Kc/-Tmp-/glib-0.11.092062/glib-0.11.0/dist/setup/Main.o )
Linking /var/folders/9I/9Ic7OfDBGVmrCPM+NiQOAWp80Kc/-Tmp-/glib-0.11.092062/glib-0.11.0/dist/setup/setup ...
Configuring glib-0.11.0...
setup: gtk2hsC2hs is required but it could not be found.
cabal: Error: some packages failed to install:
glib-0.11.0 failed during the configure step. The exception was:
ExitFailure 1

Manually doing

$ cabal install gtk2hs-buildtools
$ cabal install glib

works fine.

Change History

Changed 5 years ago by dmwit

  • status changed from new to closed
  • resolution set to invalid

There's not much we can do about this. We've modified the error message to tell you to install gtk2hs-buildtools, but other than that, it's not really possible to properly depend on a cabal package that only provides an executable.

Thanks for the report, though.

Note: See TracTickets for help on using tickets.