Cabal and installing packages.

Keean Schupke k.schupke at imperial.ac.uk
Fri Dec 3 15:30:21 EST 2004


I think it can all be done from a client side program. As cabal provides
dependencies, and compile/install scripts it can simply download from
Hackage and call the scripts. It sounds like the client could be quite
simple, using the HTTP client libraries, then a set of system calls to
run the scripts...

But I see what you are saying too, a program to convert a cabal-package
into say an ebuild for gentoo. A small problem is gentoo's emerge does
not pass parameters to the scripts, so you would have to have an ebuild
for every haskell package.

    Keean.

Gabriel Ebner wrote:

>Keean Schupke <k.schupke at imperial.ac.uk> writes:
>
>  
>
>>I find that debian/gentoo etc do not have all the packages available
>>for say perl, and it is nice to have a consistant interface on any 
>>platform...
>>    
>>
>
>In such cases I think it's better to provide a way to make native
>packages.  E.g. if you want to install some obscure perl module under
>gentoo, you can just type in g-cpan.pl Some::Obscure::Module, and
>after a few minutes a bunch of proper native packages will have been
>installed.
>
>The best thing about g-cpan.pl is that it uses existing packages if
>possible.  So if e.g. dev-perl/LibXML has been patched to work with
>gcc-3.4 and the package you want to install depends on LibXML, you
>couldn't install it using CPAN but you could using g-cpan.pl.
>
>         Gabriel.
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Libraries mailing list
>Libraries at haskell.org
>http://www.haskell.org/mailman/listinfo/libraries
>  
>



More information about the Libraries mailing list