Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build sequencing when build taffybar #3475

Closed
erikd opened this issue Jun 4, 2016 · 9 comments
Closed

Build sequencing when build taffybar #3475

erikd opened this issue Jun 4, 2016 · 9 comments

Comments

@erikd
Copy link
Member

erikd commented Jun 4, 2016

I'm using ghc-7.10 and cabal-install-1.24.0.0 and I'm getting a strange build failure when building the "taffybar" package.

I have a git clone of taffybar and in that directory I do:

cabal sandbox init
cabal install --dependencies-only --enable-tests

This then fails with:

Configuring gtk2hs-buildtools-0.13.2.0...
Building gtk2hs-buildtools-0.13.2.0...
Installed xmonad-contrib-0.12
Installed gtk2hs-buildtools-0.13.2.0
Configuring cairo-0.13.3.0...
Configuring glib-0.13.4.0...
Failed to install cairo-0.13.3.0
Build log ( /md0/jenkins/workspace/xmonad-taffybar/.cabal-sandbox/logs/cairo-0.13.3.0.log ):
cabal: Entering directory '/tmp/cabal-tmp-17308/cairo-0.13.3.0'
cabal: Leaving directory '/tmp/cabal-tmp-17308/cairo-0.13.3.0'
Failed to install glib-0.13.4.0
Build log ( /md0/jenkins/workspace/xmonad-taffybar/.cabal-sandbox/logs/glib-0.13.4.0.log ):
cabal: Entering directory '/tmp/cabal-tmp-17308/glib-0.13.4.0'
cabal: Leaving directory '/tmp/cabal-tmp-17308/glib-0.13.4.0'
cabal: Error: some packages failed to install:
cairo-0.13.3.0 failed during the configure step. The exception was:
user error (The package 'cairo' requires Cabal library version -any && >=1.24
but no suitable version is installed.)
gio-0.13.3.0 depends on glib-0.13.4.0 which failed to install.
glib-0.13.4.0 failed during the configure step. The exception was:
user error (The package 'glib' requires Cabal library version -any && >=1.24
but no suitable version is installed.)
gtk-0.14.4 depends on cairo-0.13.3.0 which failed to install.
gtk-traymanager-0.1.6 depends on cairo-0.13.3.0 which failed to install.
pango-0.13.3.0 depends on cairo-0.13.3.0 which failed to install.

but if I then do:

cabal install glib-0.13.4.0 cabal install cairo-0.13.3.0
cabal install --dependencies-only --enable-tests

everything is fine. Cabal seems to get something wrong with the sequencing, I have reproduced this on two different machines, but with the same versions of ghc and cabal-install.

@23Skidoo 23Skidoo added this to the cabal-install 1.24.0.1 milestone Jun 4, 2016
@23Skidoo
Copy link
Member

23Skidoo commented Jun 4, 2016

Thanks for the bug report. What happens if you do

$ cabal sandbox init
$ cabal install Cabal
$ cabal install --dependencies-only --enable-tests

?

@grayjay
Copy link
Collaborator

grayjay commented Jun 4, 2016

It could be related to #3436.

@erikd
Copy link
Member Author

erikd commented Jun 4, 2016

@23Skidoo Yes, that works. Any idea why?

@23Skidoo
Copy link
Member

23Skidoo commented Jun 6, 2016

@erikd Well, the error you were getting was:

cabal: Error: some packages failed to install:
cairo-0.13.3.0 failed during the configure step. The exception was:
user error (The package 'cairo' requires Cabal library version -any && >=1.24
but no suitable version is installed.)

So once you installed Cabal 1.24, the error went away. I'm not quite sure why Cabal is not being installed automatically.

@ezyang
Copy link
Contributor

ezyang commented Sep 6, 2016

Fix was merged!

@ezyang ezyang closed this as completed Sep 6, 2016
@erikd
Copy link
Member Author

erikd commented Sep 6, 2016

Thanks @ezyang !

@ezyang
Copy link
Contributor

ezyang commented Sep 6, 2016

Thank @grayjay who wrote the patch! :)

@erikd
Copy link
Member Author

erikd commented Sep 6, 2016

Thanks @grayjay !

@grayjay
Copy link
Collaborator

grayjay commented Sep 7, 2016

No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants