Skip to content

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

Open
@spl

Description

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,

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions