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

webkitgtk3-javascriptcore-0.13.2.0/Setup.hs:5:8: Could not find module ‘Gtk2HsSetup’ #3

Open
spl opened this issue Jul 5, 2016 · 1 comment

Comments

@spl
Copy link

spl commented Jul 5, 2016

I ran into a problem similar to gtk2hs/gtk2hs#173:

    /tmp/stack18636/webkitgtk3-javascriptcore-0.13.2.0/Setup.hs:5:8:
        Could not find module ‘Gtk2HsSetup’
        Use -v to see a list of the files searched for.

I fixed it by adding the constraint webkitgtk3-javascriptcore < 0.13.2.

It's somewhat difficult to figure out what changes are made in the versions released to Hackage. Looking at the commit history of this project, I did not find a commit that changed the .cabal version to 0.13.2.0 (among other versions that appear on Hackage and not in the repository). It was only by looking through the .cabal files on Hackage and comparing them that I found the difference:

  1. webkitgtk3-javascriptcore-0.13.1.2
  2. webkitgtk3-javascriptcore-0.13.2.0
$ $ diff -wu webkitgtk3-javascriptcore-0.13.1.2/webkitgtk3-javascriptcore.cabal webkitgtk3-javascriptcore-0.13.2.0/webkitgtk3-javascriptcore.cabal
--- webkitgtk3-javascriptcore-0.13.1.2/webkitgtk3-javascriptcore.cabal
+++ webkitgtk3-javascriptcore-0.13.2.0/webkitgtk3-javascriptcore.cabal
--- webkitgtk3-javascriptcore.cabal1.txt    2016-07-05 09:19:17.000000000 +0200
+++ webkitgtk3-javascriptcore.cabal2.txt    2016-07-05 09:19:25.000000000 +0200
@@ -1,5 +1,5 @@
 Name:      webkitgtk3-javascriptcore
-Version:   0.13.1.2
+Version:   0.13.2.0
 Synopsis:       JavaScriptCore FFI from webkitgtk
 Description:   FFI for JavaScriptCore module from webkitgtk
 License:   BSD3
@@ -7,9 +7,8 @@
 Author:        Ian-Woo Kim
 Maintainer:    Ian-Woo Kim <[email protected]>
 Build-Type:     Custom
-Cabal-Version:  >= 1.18
+Cabal-Version:  >= 1.24
 Extra-Source-Files: hsjscore.h
-                    SetupWrapper.hs SetupMain.hs Gtk2HsSetup.hs
                     marshal.list
            hierarchy.list

@@ -24,6 +23,11 @@
   type:         git
   location:     https://github.com/gtk2hs/webkit-javascriptcore

+custom-setup
+  setup-depends: base >= 4.6,
+                 Cabal >= 1.24 && < 1.25,
+                 gtk2hs-buildtools >= 0.13.1.0 && < 0.14
+
 Library
         hs-source-dirs: src
         build-depends:  base >= 4 && < 5,
@wavewave
Copy link
Member

@hamishmack do you have any idea how to resolve this?

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

2 participants