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. Re:  Patch source, then pickup compile (James Toll)
   2. Re:  Patch source, then pickup compile (James Toll)
   3. Re:  Patch source, then pickup compile (Benjamin Jones)
   4. Re:  Patch source, then pickup compile (Nadir Sampaoli)
   5. Re:  Patch source, then pickup compile (Vlatko Basic)


----------------------------------------------------------------------

Message: 1
Date: Sat, 20 Sep 2014 00:04:35 -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 11:05 PM, Brandon Allbery <[email protected]> wrote:

> 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.)


Thank you for the help. I wonder if I need to set this up as a shared sandbox 
so that pandoc gets installed to the sandbox in the parent directory.  Kind of 
like the first example from the ?Advanced usage? section of:

http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html  

Anyway, thank you for pointing me in the right direction.

James

------------------------------

Message: 2
Date: Sat, 20 Sep 2014 01:06:09 -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 20, 2014, at 12:04 AM, James Toll <[email protected]> wrote:

> On Sep 19, 2014, at 11:05 PM, Brandon Allbery <[email protected]> wrote:
> 
>> 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.)
> 
> 
> Thank you for the help. I wonder if I need to set this up as a shared sandbox 
> so that pandoc gets installed to the sandbox in the parent directory.  Kind 
> of like the first example from the ?Advanced usage? section of:
> 
> http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html  

Creating a shared sandbox ended up working.  I don?t know it that?s the proper 
way to do this kind of thing.  For reference, here is what I did to get Hakyll 
installed with the broken Pandoc dependency:

$ mkdir hakyll
$ cd hakyll
$ cabal sandbox init --sandbox .
$ cabal install -j hakyll
[compilation fails at Pandoc]
$ cabal get pandoc-1.13.1
$ cd pandoc-1.13.1/
$ cabal sandbox init --sandbox ../
[make trivial source change]
$ cabal install -j
$ cd ..
$ cabal install -j hakyll

I?ve not tested the Hakyll installation yet to see if it works properly, but 
the installation succeeded.

James



------------------------------

Message: 3
Date: Fri, 19 Sep 2014 23:09:52 -0700
From: Benjamin Jones <[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:
        <calfil_kzlp9+o9cqzeyt3_eovhshdxshkzfa3tpfto5s84s...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I ran into this same build problem myself the other day. I believe that
forcing pandoc to build with the https flag set is a workaround until the
next hackage release. You can add this on the command line with:

    $ cabal install pandoc -fhttps

or in the cabal.config file:

    constraints: pandoc +https

--
Benjamin Jones

On Fri, Sep 19, 2014 at 11:06 PM, James Toll <[email protected]> wrote:

> On Sep 20, 2014, at 12:04 AM, James Toll <[email protected]> wrote:
>
> > On Sep 19, 2014, at 11:05 PM, Brandon Allbery <[email protected]>
> wrote:
> >
> >> 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.)
> >
> >
> > Thank you for the help. I wonder if I need to set this up as a shared
> sandbox so that pandoc gets installed to the sandbox in the parent
> directory.  Kind of like the first example from the ?Advanced usage?
> section of:
> >
> > http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html
>
> Creating a shared sandbox ended up working.  I don?t know it that?s the
> proper way to do this kind of thing.  For reference, here is what I did to
> get Hakyll installed with the broken Pandoc dependency:
>
> $ mkdir hakyll
> $ cd hakyll
> $ cabal sandbox init --sandbox .
> $ cabal install -j hakyll
> [compilation fails at Pandoc]
> $ cabal get pandoc-1.13.1
> $ cd pandoc-1.13.1/
> $ cabal sandbox init --sandbox ../
> [make trivial source change]
> $ cabal install -j
> $ cd ..
> $ cabal install -j hakyll
>
> I?ve not tested the Hakyll installation yet to see if it works properly,
> but the installation succeeded.
>
> James
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20140919/1795f9e8/attachment-0001.html>

------------------------------

Message: 4
Date: Sat, 20 Sep 2014 08:52:29 +0200
From: Nadir Sampaoli <[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:
        <cafywtdsdhm44zcpsmvxqhh7as1cqdu5hqnmss07w7uznhai...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,

> > I wonder if I need to set this up as a shared sandbox so that pandoc
gets installed to the sandbox in the parent directory.  Kind of like the
first example from the ?Advanced usage? section of:
> >
> > http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html
>
> Creating a shared sandbox ended up working.  I don?t know it that?s the
proper way to do this kind of thing.

For the moment Benjamin's solution seems the best way to go but, just for
the record, I think the command you're looking for might be `cabal sandbox
add-source ./your-local-patched-pandoc/` and then `install` (see
http://www.haskell.org/cabal/users-guide/installing-packages.html under
"Sandboxes: Basic usage" or probably the very same article you referred to,
which seems the source for the wiki).

--
Nadir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20140920/62d6257f/attachment-0001.html>

------------------------------

Message: 5
Date: Sat, 20 Sep 2014 09:43:12 +0200
From: Vlatko Basic <[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; format=flowed


Get (patched) package into a separate dir
$ cabal sandbox add-source /my/patched/library # Add a new add-source dependency
$ cabal install --dependencies-only            # Install it into the sandbox
$ cabal build                                  # Build the local package

This way cabal first searches in the add-source dir for any dependency, and 
builds it from there. You can add several dirs with patched packages

You can/might have to add constraints in local cabal.config file (in sandboxed 
dir) to force cabal to use the latest version of the package

If a file in any add-source dir is changed, cabal will rebuild it automatically

Take a look at cabal user guide
http://www.haskell.org/cabal/users-guide/installing-packages.html

vlatko

-------- Original Message  --------
Subject: [Haskell-beginners] Patch source, then pickup compile
From: James Toll <[email protected]>
To: haskell-beginners <[email protected]>
Date: 20.09.2014 03:48

> 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
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 75, Issue 15
*****************************************

Reply via email to