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

xcffib-0.2.0 doesn't compile #37

Closed
peti opened this issue Mar 8, 2015 · 11 comments
Closed

xcffib-0.2.0 doesn't compile #37

peti opened this issue Mar 8, 2015 · 11 comments

Comments

@peti
Copy link

peti commented Mar 8, 2015

Citing from http://hydra.cryp.to/build/609061/log/raw:

[1 of 2] Compiling Data.XCB.Python.PyHelpers ( generator/Data/XCB/Python/PyHelpers.hs, dist/build/Data/XCB/Python/PyHelpers.o )

generator/Data/XCB/Python/PyHelpers.hs:90:25:
    Couldn't match expected type ‘Op ()’
                with actual type ‘Ident annot0 -> annot0 -> Expr annot0’
    Probable cause: ‘Dot’ is applied to too few arguments
    In the first argument of ‘BinaryOp’, namely ‘(Dot ())’
    In the expression: BinaryOp (Dot ()) (getExpr e1) (getExpr e2) ()

generator/Data/XCB/Python/PyHelpers.hs:90:29:
    Couldn't match expected type ‘Expr annot0’ with actual type ‘()’
    In the first argument of ‘Dot’, namely ‘()’
    In the first argument of ‘BinaryOp’, namely ‘(Dot ())’
@tych0
Copy link
Owner

tych0 commented Mar 8, 2015

Ah, it seems language-python has made a breaking API change, thanks for pointing this out, the one I have in my cache is old. I'll push a fix in a bit.

@tych0
Copy link
Owner

tych0 commented Mar 8, 2015

Ok, so after a bit more investigation, this is a bit sticky,

  1. language-python 0.4 doesn't build on ghc 7.8
  2. language-python 0.5 has a breaking API change
  3. debian's version of language-python is still at 0.4.

I've mailed the debian-haskell folks about updating their language-python, and in the meantime I think it'll be easiest to carry a patch for it reverting this change.

@tych0 tych0 closed this as completed in f5d9f14 Mar 8, 2015
@tych0
Copy link
Owner

tych0 commented Mar 8, 2015

Oh, whoops. Looks like I broke something, hang on.

@tych0
Copy link
Owner

tych0 commented Mar 8, 2015

Ok, the current git master should work. Let me know if you have any other issues. Thanks!

@peti
Copy link
Author

peti commented Mar 9, 2015

The current git head compiles and passes its test suite, too. Thank you very much! Will you release a new version to Hackage soon?

@tych0
Copy link
Owner

tych0 commented Mar 10, 2015

On Mon, Mar 09, 2015 at 03:45:16AM -0700, Peter Simons wrote:

The current git head compiles and passes its test suite, too. Thank you very much! Will you release a new version to Hackage soon?

Yep, just wanted to wait to confirm it worked for you. I'll release
one now.


Reply to this email directly or view it on GitHub:
#37 (comment)

@peti
Copy link
Author

peti commented Mar 14, 2015

The build succeeds in version 0.2.1, but the test suite still fails because the file tests/generator/event.xml seems to be missing:

Running 2 test suites...
Test suite PyHelpersTests: RUNNING...
Test suite PyHelpersTests: PASS
Test suite logged to: dist/test/xcffib-0.2.1-PyHelpersTests.log
Test suite GeneratorTests.hs: RUNNING...
GeneratorTests.hs: tests/generator/event.xml: openFile: does not exist (No such file or directory)
Test suite GeneratorTests.hs: FAIL
Test suite logged to: dist/test/xcffib-0.2.1-GeneratorTests.hs.log
1 of 2 test suites (1 of 2 test cases) passed.

@tych0
Copy link
Owner

tych0 commented Mar 14, 2015

Oh, I guess because cabal doesn't include them in the source distribution. I'll look into having it do that.

@tych0
Copy link
Owner

tych0 commented Mar 15, 2015

On Sat, Mar 14, 2015 at 06:44:07AM -0700, Peter Simons wrote:

The build succeeds in version 0.2.1, but the test suite still fails because the file tests/generator/event.xml seems to be missing:

Running 2 test suites...
Test suite PyHelpersTests: RUNNING...
Test suite PyHelpersTests: PASS
Test suite logged to: dist/test/xcffib-0.2.1-PyHelpersTests.log
Test suite GeneratorTests.hs: RUNNING...
GeneratorTests.hs: tests/generator/event.xml: openFile: does not exist (No such file or directory)
Test suite GeneratorTests.hs: FAIL
Test suite logged to: dist/test/xcffib-0.2.1-GeneratorTests.hs.log
1 of 2 test suites (1 of 2 test cases) passed.

Ok, I believe I've fixes this as well with the latest commit. If you
can confirm, I'll release another hackage version.


Reply to this email directly or view it on GitHub:
#37 (comment)

@chreekat
Copy link

chreekat commented Jan 9, 2018

I'm just passing by, but @peti it looks like you missed the last message on this thread? I see this package still shows up in configuration-common.nix.

@tych0
Copy link
Owner

tych0 commented Jan 9, 2018

Looks like the version is not hard coded, so perhaps one of the later releases is ok?

https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/configuration-common.nix#L492

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

No branches or pull requests

3 participants