Cannot build hledger-web #97

Closed
simonmichael opened this Issue Apr 8, 2013 · 7 comments

Projects

None yet

1 participant

@simonmichael
Owner

Original author: ehetzner@gmail.com (January 08, 2013 08:08:28)

❤ darcs log |head
Fri Jan 4 13:31:36 PST 2013 Simon Michael <simon@joyful.com>

  • docs: note hledger's include does not support glob patterns
    [...]

❤ darcs whatsnew -sl
No changes!

❤ cabal update
Downloading the latest package list from hackage.haskell.org

❤ cabal-dev add-source hledger
Building source dist at hledger for hledger-0.19.4
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for hledger-0.19.4...
Source tarball created: dist/hledger-0.19.4.tar.gz

❤ cabal-dev add-source hledger-lib
Building source dist at hledger-lib for hledger-lib-0.19.4
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for hledger-lib-0.19.4...
Source tarball created: dist/hledger-lib-0.19.4.tar.gz

❤ cabal-dev add-source hledger-web
Building source dist at hledger-web for hledger-web-0.19.4
Building source dist for hledger-web-0.19.4...
Preprocessing library hledger-web-0.19.4...
Preprocessing executable 'hledger-web' for hledger-web-0.19.4...
Source tarball created: dist/hledger-web-0.19.4.tar.gz

❤ cabal-dev install hledger-web
[...]
Loading package hjsmin-0.1.4 ... linking ... done.
[ 3 of 17] Compiling Settings.StaticFiles ( Settings/StaticFiles.hs, dist/build/Settings/StaticFiles.o )
[ 4 of 17] Compiling Hledger.Web.Options ( Hledger/Web/Options.hs, dist/build/Hledger/Web/Options.o )
[ 5 of 17] Compiling Foundation ( Foundation.hs, dist/build/Foundation.o )
Foundation.hs:103:37: Not in scope: `css_bootstrap_css'
Failed to install hledger-web-0.19.4
cabal: Error: some packages failed to install:
hledger-web-0.19.4 failed during the building phase. The exception was:
ExitFailure 1

Original issue: http://code.google.com/p/hledger/issues/detail?id=97

@simonmichael
Owner

From xiaoruo...@gmail.com on January 08, 2013 09:29:15
You need to be in the hledger-web folder to do cabal install. Because the compilers are looking for static files in the 'static' folder relative to the working directory.

Also I think simon disabled hledger-web in Makefile 4 commits ago:
Sat Dec 29 01:15:23 CST 2012 Simon Michael simon@joyful.com

  • tools: exclude hledger-web from make install by default, as it's harder

I posted a patched to enable it in https://groups.google.com/d/topic/hledger/76FmCe4Rrmc/discussion

@simonmichael
Owner

From ehetzner@gmail.com on January 08, 2013 16:08:20
That doesn't seem to work either, at least not without a complete rebuild. I'll try again.

@simonmichael
Owner

From ehetzner@gmail.com on January 08, 2013 20:55:35
Complete rebuild still fails when I run in hledger-web directory.

❤ cabal-dev -s ../cabal-dev/ install hledger-web
[...]
Foundation.hs:103:37: Not in scope: `css_bootstrap_css'
Failed to install hledger-web-0.19.4
cabal: Error: some packages failed to install:
hledger-web-0.19.4 failed during the building phase. The exception was:
ExitFailure 1

@simonmichael
Owner

From simon@joyful.com on January 11, 2013 14:52:24
Some static files had not been added to hledger-web.cabal file, which is revealed by a cabal-dev build. Thanks for the testing!

@simonmichael
Owner

From ehetzner@gmail.com on January 11, 2013 19:50:00
Thanks! Just FYI, I'm now running into an issue with clientsession, see
yesodweb/clientsession#17

@simonmichael
Owner

From simon@joyful.com on January 11, 2013 21:22:06
Until that's resolved, you might want to install hledger-web with --constraint 'clientsession==0.8.0.1'.

@simonmichael
Owner

From ehetzner@gmail.com on January 11, 2013 22:08:38
Thanks for the tip!

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