
Hi, I have been doing some test builds of ghc-7.7 recently. Since ghc gets built now with dynamic linking by default, the bundled linked libraries that ghc does not ship are more visible now: this is not really a new problem per se just that now with shared libraries by default it is more obvious! The libraries in question here are haskeline, terminfo, and xhtml. Putting the technical issue of installing both these bundled shared libraries and their corresponding system packages aside for now, the situation is at best uncomfortable for distros like Fedora which do not allow bundled copies of libraries in packages. [1] So my suggestion would be actually to ship the 3 libraries in ghc-7.8. xhtml is of course already part of Haskell Platform but hopefully that need not be a big problem. Whether the other two should be formally added to HP or not may be an open question but I don't see that it need block their inclusion in ghc's manifest. Besides I am anyway not really sure how to handle having both those 3 shared libraries installed for runtime ghc along with the same versions of the corresponding packages? Jens ps BTW it is really nice to see that the bundled tarballs for Windows have been moved to a separate source tarball. :-) [1] https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries

Somebody claiming to be Jens Petersen wrote:
The libraries in question here are haskeline, terminfo, and xhtml.
Are those libraries needed by GHCI? Could we just statically link those ones into GHC? -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph

On 3 September 2013 23:11, Stephen Paul Weber
Somebody claiming to be Jens Petersen wrote:
The libraries in question here are haskeline, terminfo, and xhtml.
Are those libraries needed by GHCI?
libdir/bin/ghc is linked to haskeline and terminfo. ghc-pkg is also linked to terminfo. haddock links to xhtml.
Could we just statically link those ones into GHC?
Not really - that is what was done before ghc-7.7 as I was trying to allude to in my mail. For Fedora it is still an bundled library whether it is statically or dynamically linked. Jens

On 3 September 2013 18:14, Jens Petersen
The libraries in question here are haskeline, terminfo, and xhtml.
:
Besides I am anyway not really sure how to handle having both those 3 shared libraries installed for runtime ghc along with the same versions of the corresponding packages
Okay for Fedora of course there is a simple solution: I think from 7.8 on I will simply patch ghc to install and subpackage the 3 libraries and drop the corresponding individual library source packages. So for me this is now less urgent upstream, though I still feel my suggestion is worth considering. Perhaps others would also support this? Jens
participants (2)
-
Jens Petersen
-
Stephen Paul Weber