Re: packaging ghc
Philip Weaver wrote:
> Hi, I am interested in getting involved with building .deb packages for ghc.
> My initial motivation is selfish; I want to learn about building debs so I
> can deploy some custom ghc packages at work. But I also hope to be able to
> use what I learn to contribute back to the ghc packages on ubuntu/debian.
Cool!
> I have been trying to find documentation for building ghc deb packages, but
> with no luck. All I have to work with right now is the haskell-devscripts
> package, but I haven't yet been able to get a successful build. It would be
> so helpful if anyone could provide a script that demonstrates how they
> perform their builds of ghc, or the configuration files for
> dpkg-buildpackage (the ones in the "debian" directory that gets created by
> dh_make), or point me to a webpage with any useful information.
Buidling ghc itself is a task that is not for the faint hearted.
However, building haskell libraries is actually rather easy.
The Debian Haskell Group's processes are documented here:
http://wiki.debian.org/Haskell?action=show&redirect=Haskell%2FCollabMaint
In particular, for a library, you should be working from the template:
http://wiki.debian.org/Haskell/CollabMaint/PackageTemplate
Finally, rather than using dpkg-buildpackge I would recommend using debuild
like this:
debuild -rfakeroot --lintian-opts -iI --color always
HTH,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
Reply to: