Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Patch source, then pickup compile (James Toll)
2. Re: Patch source, then pickup compile (Brandon Allbery)
3. Re: Patch source, then pickup compile (James Toll)
4. Re: Patch source, then pickup compile (Brandon Allbery)
5. Re: Patch source, then pickup compile (James Toll)
6. Re: Patch source, then pickup compile (Brandon Allbery)
----------------------------------------------------------------------
Message: 1
Date: Fri, 19 Sep 2014 20:48:36 -0500
From: James Toll <[email protected]>
To: haskell-beginners <[email protected]>
Subject: [Haskell-beginners] Patch source, then pickup compile
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
Hi,
I?m trying to install Hakyll within a cabal sandbox. The issue I?m running
into is that the current version of Pandoc doesn?t build because of this bug:
https://github.com/jgm/pandoc/issues/1590
The bug is a simple fix, and is fixed on github, but not in the version on
hackage. I?d like to use ?cabal get? to download the source, manually fix the
source, then compile. The question I have is how do I pick up the installation
process after fixing the source?
So far this is what I?ve done:
$ mkdir hakyll
$ cabal update
$ cd hakyll
$ cabal sandbox init --sandbox .
$ cabal install -j hakyll
[this is the spot where pandoc fails to install]
$ cabal get pandoc-1.13.1
$ cd pandoc-1.13.1/
[patch the source]
At this point I need to resume the compilation and installation process. How
do I do that? Do I move back up to the parent directory and then issue the
'cabal install -j hakyll? command again?
Thanks,
James
------------------------------
Message: 2
Date: Fri, 19 Sep 2014 21:54:29 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Patch source, then pickup compile
Message-ID:
<cakfcl4vo--93_eswgnwipr_2o+zfdt-suygwujypbtgwu7d...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, Sep 19, 2014 at 9:48 PM, James Toll <[email protected]> wrote:
> At this point I need to resume the compilation and installation process.
> How do I do that? Do I move back up to the parent directory and then issue
> the 'cabal install -j hakyll? command again?
"cabal install -j" without a package name should install the package in the
current directory as it is. Specifying a package name will cause that
package to be downloaded from Hackage, which in this case you don't want.
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140919/6332cfe0/attachment-0001.html>
------------------------------
Message: 3
Date: Fri, 19 Sep 2014 21:03:26 -0500
From: James Toll <[email protected]>
To: haskell-beginners <[email protected]>
Subject: Re: [Haskell-beginners] Patch source, then pickup compile
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
On Sep 19, 2014, at 8:54 PM, Brandon Allbery <[email protected]> wrote:
> On Fri, Sep 19, 2014 at 9:48 PM, James Toll <[email protected]> wrote:
> At this point I need to resume the compilation and installation process. How
> do I do that? Do I move back up to the parent directory and then issue the
> 'cabal install -j hakyll? command again?
>
> "cabal install -j" without a package name should install the package in the
> current directory as it is. Specifying a package name will cause that package
> to be downloaded from Hackage, which in this case you don't want.
Thank you for your suggestion. I think you're saying that I should ?cabal
install -j? from within the pandoc-1.13.1 directory to build pandoc. But then
I will still need to build hakyll, so do I cd up to the hakyll parent directory
and cabal install -j from there as well?
Thanks,
James
------------------------------
Message: 4
Date: Fri, 19 Sep 2014 22:06:13 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Patch source, then pickup compile
Message-ID:
<CAKFCL4VoYFs6K7g7it6gv9W9x=q1cv973_xdq1f0b_z2s5w...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, Sep 19, 2014 at 10:03 PM, James Toll <[email protected]> wrote:
> Thank you for your suggestion. I think you're saying that I should ?cabal
> install -j? from within the pandoc-1.13.1 directory to build pandoc. But
> then I will still need to build hakyll, so do I cd up to the hakyll parent
> directory and cabal install -j from there as well?
Just "cabal install -j hakyll" as usual. It'll see the installed pandoc
and, as long as the version is compatible, not reinstall it. It should give
you a warning if it's incompatible. In that case, you'll need to ask the
hakyll folks and possibly have to install whatever package requires it
manually in the same way you are installing pandoc, but in this case you
would just be editing the cabal file to fix the version.
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140919/c9a575ce/attachment-0001.html>
------------------------------
Message: 5
Date: Fri, 19 Sep 2014 23:01:57 -0500
From: James Toll <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Patch source, then pickup compile
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
On Sep 19, 2014, at 9:06 PM, Brandon Allbery <[email protected]> wrote:
> On Fri, Sep 19, 2014 at 10:03 PM, James Toll <[email protected]> wrote:
> Thank you for your suggestion. I think you're saying that I should ?cabal
> install -j? from within the pandoc-1.13.1 directory to build pandoc. But
> then I will still need to build hakyll, so do I cd up to the hakyll parent
> directory and cabal install -j from there as well?
>
> Just "cabal install -j hakyll" as usual. It'll see the installed pandoc and,
> as long as the version is compatible, not reinstall it. It should give you a
> warning if it's incompatible. In that case, you'll need to ask the hakyll
> folks and possibly have to install whatever package requires it manually in
> the same way you are installing pandoc, but in this case you would just be
> editing the cabal file to fix the version.
Unfortunately this isn?t working. The pandoc build appears to work with the
patched source, but then the hakyll build fails. If I?m reading this properly,
it appears that pandoc is not getting installed in the sandbox. Then it
appears that hakyll is not finding the successful pandoc build (probably
because it wasn?t installed to the sandbox) and is trying to build pandoc
again, using un-patched code and failing with the same original error. Here is
the output, truncated a bit during the pandoc build. Any suggestions on how to
fix this? Thanks.
James
[james ~/src/haskell/sandboxes/hakyll]$ cd pandoc-1.13.1/
[james ~/src/haskell/sandboxes/hakyll/pandoc-1.13.1]$ cabal install -j
Resolving dependencies...
In order, the following will be installed:
pandoc-1.13.1 -network-uri (reinstall)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring pandoc-1.13.1...
Building pandoc-1.13.1...
Installed pandoc-1.13.1
Updating documentation index /Users/james/Library/Haskell/share/doc/index.html
[james ~/src/haskell/sandboxes/hakyll/pandoc-1.13.1]$ cd ..
[james ~/src/haskell/sandboxes/hakyll]$ cabal install -j hakyll
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/james/src/haskell/sandboxes/hakyll
Configuring pandoc-1.13.1...
Building pandoc-1.13.1...
Failed to install pandoc-1.13.1
Build log ( /Users/james/src/haskell/sandboxes/hakyll/logs/pandoc-1.13.1.log ):
[1 of 1] Compiling Main (
/var/folders/jl/h90f3bxs7hxb389cvjdc6k5w0000gn/T/pandoc-1.13.1-84931/pandoc-1.13.1/dist/dist-sandbox-8fe59d82/setup/setup.hs,
/var/folders/jl/h90f3bxs7hxb389cvjdc6k5w0000gn/T/pandoc-1.13.1-84931/pandoc-1.13.1/dist/dist-sandbox-8fe59d82/setup/Main.o
)
Linking
/var/folders/jl/h90f3bxs7hxb389cvjdc6k5w0000gn/T/pandoc-1.13.1-84931/pandoc-1.13.1/dist/dist-sandbox-8fe59d82/setup/setup
...
Configuring pandoc-1.13.1...
Building pandoc-1.13.1...
Preprocessing library pandoc-1.13.1...
[ 1 of 67] Compiling Text.Pandoc.Asciify
etc . . .
[19 of 67] Compiling Text.Pandoc.Shared ( src/Text/Pandoc/Shared.hs,
dist/dist-sandbox-8fe59d82/build/Text/Pandoc/Shared.o )
src/Text/Pandoc/Shared.hs:808:55: Not in scope: ?toChunks?
cabal: Error: some packages failed to install:
hakyll-4.5.5.0 depends on pandoc-1.13.1 which failed to install.
pandoc-1.13.1 failed during the building phase. The exception was:
ExitFailure 1
pandoc-citeproc-0.4.0.1 depends on pandoc-1.13.1 which failed to install.
------------------------------
Message: 6
Date: Sat, 20 Sep 2014 00:05:45 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Patch source, then pickup compile
Message-ID:
<CAKFCL4XiGHU=5qyciag1n8rajbgqpk0c+wwgkewugvsojya...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Sat, Sep 20, 2014 at 12:01 AM, James Toll <[email protected]> wrote:
> [james ~/src/haskell/sandboxes/hakyll/pandoc-1.13.1]$ cabal install -j
> Resolving dependencies...
> In order, the following will be installed:
>
This sounds like it did not indeed install in the sandbox (compare the
notice after "Resolving dependencies" in the hakyll install). Unfortunately
I don't know what follows from here; it sounds like a cabal bug to me, but
maybe being in the patched pandoc source directory keeps it from seeing the
sandbox, in which case maybe there's an option to point to a specific
sandbox for installs? (I still don't have a working Haskell install on my
new machine, and am not sure at this point when I'll be able to get to it,
sigh.)
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140920/1a6298f1/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 75, Issue 14
*****************************************