Packaging Haskell libraries
Till Maas
opensource at till.name
Wed May 9 23:50:48 UTC 2007
On Mi Mai 9 2007, Bryan O'Sullivan wrote:
> For these reasons, the tiny handful of existing Haskell packages that
> are already packaged are prefixed with the name and version of the
> compiler they're built against, not with a simple "haskell-". For
> example, the Gtk2Hs package is named ghc66-gtk2hs. This is a pretty
> reasonable naming scheme.
There seems to be also "ghc-gtk2hs" and only "gtk2hs-doc" without any ghc
prefix in Fedora Extras 6.
> Finally, packaging Haskell libraries is a subtle business, because a
> Haskell compiler has its own package manager that needs to be treated
> properly, or you'll have a terrible mess on your hands where RPM and
> your Haskell implementation have different notions as to what's
> installed. In particular with the X11 and mtl packages, older versions
> of those are already shipped with ghc itself.
Can I use the hugs98-x11 with ghc or need all libraries used by ghc be
compiled by ghc, too? Or is this a complete different package?
> You should take a look at my cabal-rpm tool, which generates a clean RPM
> spec file for Haskell packages that are packaged with the Cabal system:
>
> http://darcs.serpentine.com/cabal-rpm/
Thanks, I will take a look at it when I will try to build xmonad and its
dependencies. But knowing these new obstacles, my motivation just became
less.
Regards,
Till
More information about the Fedora-maintainers
mailing list