<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div>> Except that you have two points numbered 3, yes, that's pretty much<br>> correct.<br><br></div>Erf, I read many times the mail and I still missed some mistakes.<div>


<br><br>> You are aware though that you don't /need/ to build habs in order to<br>

> use it, you can just use [haskell-core] right away.<br><br></div>Yes of course, but I also use some unpackaged haskell software such as hledger, which I precisely want to package.<div><br><br>> Hmm, that's a bit worrying.  The -d flag should automatically install<br>




> the package in the chroot after building.  It seems to have<br>> disappeared in newer versions of makechrootpkg.<br><br></div></div>I see. Eventually I can try tomorrow to revert to an old version to see if it solves my other issues.<br>



<div><div>
<div><br>> How are you installing the package?<br>> That particular archive should be included in the package you are<br>> installing, so<br>>     % pacman -Ql -p haskell-openglraw-1.4.0.0-2-x86_64.pkg.tar.xz|grep libHS<br>




><br>> should result in a list of three libs/archives:<br>><br>>     /usr/lib/ghc-7.6.3/site-local/OpenGLRaw-1.4.0.0/<a href="http://libHSOpenGLRaw-1.4.0.0-ghc7.6.3.so" target="_blank">libHSOpenGLRaw-1.4.0.0-ghc7.6.3.so</a><br>



>     /usr/lib/ghc-7.6.3/site-local/OpenGLRaw-1.4.0.0/libHSOpenGLRaw-1.4.0.0.a<br>>     /usr/lib/ghc-7.6.3/site-local/OpenGLRaw-1.4.0.0/libHSOpenGLRaw-1.4.0.0_p.a<br><br></div></div><div>Hum, the error appears in the chroot during the building. To show that better, I start with a clean copy of habs, and tried to install haskell-diff to keep things simple:<div>


<br>
<br>    $ git clone git://<a href="http://github.com/archhaskell/habs.git" target="_blank">github.com/archhaskell/habs.git</a><br>    $ cd habs<br>    $ cblrepo sync<br></div><div>    $ cblrepo pkgbuild $(cblrepo build base|tail -n +2)<br>


</div>    $ ./makeahpkg -c Diff<br>
<br></div><div>Here is the output of the last command (the part that create the chroot environment is truncated) :<br><br></div><div>    [[ TRUNCATED ]]<br></div><div>    *** Cleaning up the build chroot (in 5 sec)...<br>



    *** starting...<br>    ***  Done<br>    *** Building in /home/fabien/habs/haskell-diff<br>    :: Synchronizing package databases...<br>     haskell is up to date<br>     core is up to date<br>     extra is up to date<br>



     community is up to date<br>    :: Starting full system upgrade...<br>     there is nothing to do<br>    ==> Making package: haskell-diff 0.3.0-2 (ven oct 25 00:22:08 CEST 2013)<br>    ==> Retrieving sources...<br>



      -> Downloading Diff-0.3.0.tar.gz...<br>      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                     Dload  Upload   Total   Spent    Left  Speed<br>


      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0<br>
      0     0    0  4128    0     0  26324      0 --:--:-- --:--:-- --:--:-- 26324<br>    ==> Validating source files with sha256sums...<br>        Diff-0.3.0.tar.gz ... Passed<br>    ==> Making package: haskell-diff 0.3.0-2 (Fri Oct 25 00:22:10 CEST 2013)<br>



    ==> Checking runtime dependencies...<br>    ==> Checking buildtime dependencies...<br>    ==> Retrieving sources...<br>      -> Found Diff-0.3.0.tar.gz<br>    ==> Validating source files with sha256sums...<br>



        Diff-0.3.0.tar.gz ... Passed<br>    ==> Extracting sources...<br>      -> Extracting Diff-0.3.0.tar.gz with bsdtar<br>    ==> Starting build()...<br>    Configuring Diff-0.3.0...<br>    Building Diff-0.3.0...<br>



    Preprocessing library Diff-0.3.0...<br>    [1 of 2] Compiling Data.Algorithm.Diff ( src/Data/Algorithm/Diff.hs, dist/build/Data/Algorithm/Diff.o )<br>    [2 of 2] Compiling Data.Algorithm.DiffOutput ( src/Data/Algorithm/DiffOutput.hs, dist/build/Data/Algorithm/DiffOutput.o )<br>



    [1 of 2] Compiling Data.Algorithm.Diff ( src/Data/Algorithm/Diff.hs, dist/build/Data/Algorithm/Diff.p_o )<br>    [2 of 2] Compiling Data.Algorithm.DiffOutput ( src/Data/Algorithm/DiffOutput.hs, dist/build/Data/Algorithm/DiffOutput.p_o )<br>



    [1 of 2] Compiling Data.Algorithm.Diff ( src/Data/Algorithm/Diff.hs, dist/build/Data/Algorithm/Diff.dyn_o )<br>    [2 of 2] Compiling Data.Algorithm.DiffOutput ( src/Data/Algorithm/DiffOutput.hs, dist/build/Data/Algorithm/DiffOutput.dyn_o )<br>



    In-place registering Diff-0.3.0...<br>    Running Haddock for Diff-0.3.0...<br>    Preprocessing library Diff-0.3.0...<br>    Warning: The documentation for the following packages are not installed. No<br>    links will be generated to these packages: rts-1.0<br>



    Haddock coverage:<br>      88% (  7 /  8) in 'Data.Algorithm.Diff'<br>      50% (  3 /  6) in 'Data.Algorithm.DiffOutput'<br>    Documentation created: dist/doc/html/Diff/index.html<br>    Creating package registration script: register.sh<br>



    Unregistering Diff-0.3.0...<br>    ==> Entering fakeroot environment...<br>    ==> Starting package()...<br>    Installing library in<br>    /build/haskell-diff/pkg/haskell-diff/usr/lib/ghc-7.6.3/site-local/Diff-0.3.0<br>



    ==> Tidying install...<br>      -> Purging unwanted files...<br>      -> Removing libtool files...<br>      -> Removing static library files...<br>      -> Compressing man and info pages...<br>      -> Stripping unneeded symbols from binaries and libraries...<br>



    ==> Creating package "haskell-diff"...<br>      -> Generating .PKGINFO file...<br>      -> Adding install file...<br>      -> Generating .MTREE file...<br>      -> Compressing package...<br>    ==> Leaving fakeroot environment.<br>



    ==> Finished making: haskell-diff 0.3.0-2 (Fri Oct 25 00:22:34 CEST 2013)<br>    ==> Installing package haskell-diff with pacman -U...<br>    loading packages...<br>    resolving dependencies...<br>    looking for inter-conflicts...<br>



    <br>    Packages (1): haskell-diff-0.3.0-2<br>    <br>    Total Installed Size:   0.41 MiB<br>    <br>    :: Proceed with installation? [Y/n] <br>    (1/1) checking keys in keyring                                                             [####################################################] 100%<br>



    (1/1) checking package integrity                                                           [####################################################] 100%<br>    (1/1) loading package files                                                                [####################################################] 100%<br>



    (1/1) checking for file conflicts                                                          [####################################################] 100%<br>    (1/1) installing haskell-diff                                                              [####################################################] 100%<br>



    Reading package info from stdin ... done.<br>    Diff-0.3.0: cannot find libHSDiff-0.3.0.a on library path (use --force to override)<br><br><br><br></div><div>and then back in the habs folder, the output of<br><br>    $ pacman -Ql -p haskell-diff/haskell-diff-0.3.0-2-x86_64.pkg.tar.xz | grep libHS<br>



</div><div><br>is<br><br>    haskell-diff /usr/lib/ghc-7.6.3/site-local/Diff-0.3.0/<a href="http://libHSDiff-0.3.0-ghc7.6.3.so" target="_blank">libHSDiff-0.3.0-ghc7.6.3.so</a><br><br><br></div><div>Hope these informations will help.<br>


<br>
</div><div>Best regards,<br></div><div>Fabien<br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/24 Magnus Therning <span dir="ltr"><<a href="mailto:magnus@therning.org" target="_blank">magnus@therning.org</a>></span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>On Thu, Oct 24, 2013 at 10:23:21PM +0200, Fabien Dubosson wrote:<br>
> Hi everybody,<br>
><br>
> I am starting with Arch-Haskell after one year of "cabal-install<br>
> only" philosophy, to clean up a bit my management of Haskell<br>
> softwares (and why not getting involved if I can be helpful). I have<br>
> some questions and I guess this is the right place to start.<br>
><br>
> So first of all about the general workflow to be sure to understand<br>
> it correctly. As far I have understand/guessed that:<br>
><br>
> 1. Someone writes a cabalized haskell library/executable and puts in<br>
>    on hackage.<br>
> 2. Using the "cblrepo" tools (cblrepo add ...), hackage<br>
>    libraries/executables can be added to "habs".<br>
> 3. PKGBUILD and archlinux packages can be builded from habs and then<br>
>    installed on the system<br>
> 3. Finally some packages are integrated to the "main" habs and<br>
>    Magnus (or someone else?) signs the package and puts it into the<br>
>    [haskell-core] repository.<br>
><br>
> Is that correct?<br>
<br>
</div>Except that you have two points numbered 3, yes, that's pretty much<br>
correct.<br>
<div><br>
> Then, to start I followed exactly the build steps on the habs README<br>
> and I get an error:<br>
<br>
</div>You are aware though that you don't /need/ to build habs in order to<br>
use it, you can just use [haskell-core] right away.<br>
<div><br>
>  $ git clone git://<a href="http://github.com/archhaskell/habs.git" target="_blank">github.com/archhaskell/habs.git</a><br>
>  $ cd habs<br>
>  $ cblrepo sync<br>
><br>
> Everything is ok until here.<br>
><br>
>  $ cblrepo pkgbuild $(cblrepo build base|tail -n +2)<br>
>  Failed patching /tmp/cblrepo.EJEnE3/PKGBUILD with /home/fabien/habs/patches/pango.pkgbuild<br>
>  Failed patching /tmp/cblrepo.SFv6KO/PKGBUILD with /home/fabien/habs/patches/gtk.pkgbuild<br>
><br>
> Here the command works, but two patch can not be applied (these<br>
> packages seem not to be the cause of he problem anyway).<br>
<br>
</div>Yeah, in this case it happens because I haven't had to rebuild those<br>
packages since upgrading cblrepo to put all flags settings in the<br>
configure step<br>
<div><br>
> And finally I get an error with this last command:<br>
><br>
>  $ ./makeahpkg -c -- $(cblrepo build base | tail -n +2)<br>
>  [[ TRUNKATED ]]<br>
>  *** Building in /home/fabien/habs/haskell-diff<br>
>  ==> ERROR: No chroot dir defined, or invalid path ''<br>
><br>
> I played a bit with the makeahpkg script and removing the "-d"<br>
> option of makechrootpkg on line 71 seems to works a bit more.<br>
<br>
</div>Hmm, that's a bit worrying.  The -d flag should automatically install<br>
the package in the chroot after building.  It seems to have<br>
disappeared in newer versions of makechrootpkg.<br>
<div><br>
>  sudo setarch ${arch} makechrootpkg -u -l ${build_chrootdir} -r ${CHROOT_DIR} -- -i<br>
><br>
> The first package (haskell-openglraw-1.4.0.0-2) builds correctly, it<br>
> asks me to install it (on the chroot), but during the install this<br>
> message appears:<br>
><br>
>  OpenGLRaw-1.4.0.0: cannot find libHSOpenGLRaw-1.4.0.0.a on library<br>
>  path (use --force to override)<br>
<br>
</div>How are you installing the package?<br>
That particular archive should be included in the package you are<br>
installing, so<br>
<br>
    % pacman -Ql -p haskell-openglraw-1.4.0.0-2-x86_64.pkg.tar.xz|grep libHS<br>
<br>
should result in a list of three libs/archives:<br>
<br>
    /usr/lib/ghc-7.6.3/site-local/OpenGLRaw-1.4.0.0/<a href="http://libHSOpenGLRaw-1.4.0.0-ghc7.6.3.so" target="_blank">libHSOpenGLRaw-1.4.0.0-ghc7.6.3.so</a><br>
    /usr/lib/ghc-7.6.3/site-local/OpenGLRaw-1.4.0.0/libHSOpenGLRaw-1.4.0.0.a<br>
    /usr/lib/ghc-7.6.3/site-local/OpenGLRaw-1.4.0.0/libHSOpenGLRaw-1.4.0.0_p.a<br>
<span><font color="#888888"><br>
/M<br>
<br>
--<br>
Magnus Therning                      OpenPGP: 0xAB4DFBA4<br>
email: <a href="mailto:magnus@therning.org" target="_blank">magnus@therning.org</a>   jabber: <a href="mailto:magnus@therning.org" target="_blank">magnus@therning.org</a><br>
twitter: magthe               <a href="http://therning.org/magnus" target="_blank">http://therning.org/magnus</a><br>
<br>
Finagle's Second Law:<br>
Always keep a record of data -- it indicates you've been working.<br>
</font></span><br></div></div>_______________________________________________<br>
arch-haskell mailing list<br>
<a href="mailto:arch-haskell@haskell.org" target="_blank">arch-haskell@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/arch-haskell" target="_blank">http://www.haskell.org/mailman/listinfo/arch-haskell</a><br>
<br></blockquote></div><br></div>
</div><br></div>