koterpillar / tianbar

A status bar for XMonad using WebKit for rendering
MIT License
30 stars 0 forks source link

Searches for javascriptcore in the wrong location perhaps #1

Closed sakshamsharma closed 8 years ago

sakshamsharma commented 8 years ago

Trying out a clean install. I don't have a local cabal or ghc, and basically use the stack env vars to replicate a normal haskell environment which doesn't run into dependency conflicts all the time.

A stack build results in a build failure on gi-javascriptcore-4.0.3

--  While building package gi-javascriptcore-4.0.3 using:
      /tmp/saksham/stack10491/gi-javascriptcore-4.0.3/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 configure --with-ghc=/home/saksham/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc --with-ghc-pkg=/home/saksham/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/saksham/.stack/snapshots/x86_64-linux/lts-6.7/7.10.3/pkgdb --package-db=/home/saksham/tianbar/.stack-work/install/x86_64-linux/lts-6.7/7.10.3/pkgdb --libdir=/home/saksham/tianbar/.stack-work/install/x86_64-linux/lts-6.7/7.10.3/lib --bindir=/home/saksham/tianbar/.stack-work/install/x86_64-linux/lts-6.7/7.10.3/bin --datadir=/home/saksham/tianbar/.stack-work/install/x86_64-linux/lts-6.7/7.10.3/share --libexecdir=/home/saksham/tianbar/.stack-work/install/x86_64-linux/lts-6.7/7.10.3/libexec --sysconfdir=/home/saksham/tianbar/.stack-work/install/x86_64-linux/lts-6.7/7.10.3/etc --docdir=/home/saksham/tianbar/.stack-work/install/x86_64-linux/lts-6.7/7.10.3/doc/gi-javascriptcore-4.0.3 --htmldir=/home/saksham/tianbar/.stack-work/install/x86_64-linux/lts-6.7/7.10.3/doc/gi-javascriptcore-4.0.3 --haddockdir=/home/saksham/tianbar/.stack-work/install/x86_64-linux/lts-6.7/7.10.3/doc/gi-javascriptcore-4.0.3 --dependency=base=base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d --dependency=bytestring=bytestring-0.10.6.0-9a873bcf33d6ce2fd2698ce69e2c1c66 --dependency=containers=containers-0.5.6.2-59326c33e30ec8f6afd574cbac625bbb --dependency=haskell-gi=haskell-gi-0.17.4-002bfdf5cbb537370ae1f8090f943d4b --dependency=haskell-gi-base=haskell-gi-base-0.17-a8c6cf7598c5eb7b92497e19257d9083 --dependency=text=text-1.2.2.1-f5b1651133426aa2c83c19d64d248779 --dependency=transformers=transformers-0.4.2.0-81450cd8f86b36eaa8fa0cbaf6efc3a3
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/saksham/tianbar/.stack-work/logs/gi-javascriptcore-4.0.3.log

    [1 of 1] Compiling Main             ( /tmp/saksham/stack10491/gi-javascriptcore-4.0.3/Setup.hs, /tmp/saksham/stack10491/gi-javascriptcore-4.0.3/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup/Main.o )
    Linking /tmp/saksham/stack10491/gi-javascriptcore-4.0.3/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/setup/setup ...
    setup: Did not find a GI repository for JavaScriptCore-4.0 in ["/usr/local/share/gir-1.0","/usr/share/gir-1.0"]

I believe there's some assumption made about the location of GI at some place? P.S. Tested on Gentoo.

koterpillar commented 8 years ago

According to http://www.portagefilelist.de/site/query/file/, you need webkit-gtk which provides /usr/share/gir-1.0/JavaScriptCore-4.0.gir.

sakshamsharma commented 8 years ago

Oops! All this time with Gentoo, never knew about portagefilelist.de ! In any case, what was missing was some USE flag, I already had webkit-gtk. For future, here are the USE flags I used:

net-libs/webkit-gtk coverage doc gles2 gnome-keyring libnotify libsecret multilib_abi_amd64 nsplugin spell X -opengl