
On 02 February 2005 15:51, Ian Lynagh wrote:
The Debian ghc6 package curently has both a build-dependency and a normal dependency on libreadline4-dev. The former is so the readline library (and ghci) can be built, and the latter so compiling programs with the readline package behaves correctly.
Now I want to move over to libreadline5-dev instead. Clearly, to build the new ghc6, I need the old ghc6 installed, and thus need libreadline4-dev installed (as it's a dependency). However, libreadline4-dev and libreadline5-dev can't be installed simultaneously.
I believe this isn't a /real/ problem because the readline package of the old GHC isn't actually needed to compile a new GHC, so libreadline4-dev isn't actually needed. Thus I can solve this problem by doing a build by hand on each arch. However, it would make my life a lot easier if things weren't so entangled in the first place.
I bet the old GHC will work fine with the new readline. Can't you solve it that way? (apologies if I'm just being naïve... I've never used a Debian system).
While I could just split the readline package off into a separate ghc6-readline package for Debian, I fear this may cause confusion for users, and it would mean satisfying cabal package deps was not necessarily sufficient for Debian systems. So what would be really useful for me is if the split were done by ghc itself, in much the same way as how the opengl libraries can be split off. Then, in particular, cabal packages using readline would have to explicit state it rather than assuming it'll be there by default.
Not sure what you're asking for here. The OpenGL libraries can't easily be split off. You want us to ship the readline package separately, say as a Cabal package? That's a possibility, but we like to keep the GHC sources as self-contained as possible, and adding another dependency just makes it harder to build GHC. Sure, readline would be optional, but mostly you want it ("why doesn't up-arrow work in the GHCi I just built?"). Ideally, we would have a home-grown readline replacement (System.Console.SimpleLineEditor doesn't count: it depends on your terminal using ANSI escape sequences). Cheers, Simon

Sorry it took me so long to reply. On Mon, Feb 07, 2005 at 11:57:58AM -0000, Simon Marlow wrote:
On 02 February 2005 15:51, Ian Lynagh wrote:
I bet the old GHC will work fine with the new readline.
You might be right, but I'd much rather not have to check it really does before relaxing the dependency (which would also mean it couldn't be automatically generated).
You want us to ship the readline package separately, say as a Cabal package? That's a possibility, but we like to keep the GHC sources as self-contained as possible,
I don't necessarily want /you/ to, I just want to be able to myself without anything breaking. In fact, having thought about this a bit more I think this already is the case, as nowadays a cabal package using the readline package will have to specify it explicitly rather than GHC noticing it uses an appropriate module and pulling it in automatically. Thus an automated tool would generate a dependency on a suitably named package and it would all work fine. Well, that was easy :-) Thanks Ian
participants (2)
-
Ian Lynagh
-
Simon Marlow