ddssff / cabal-debian

Create a Debianization by examining a .cabal file.
Other
16 stars 10 forks source link

Generated versioned dependencies on libraries provided by GHC #53

Closed Kritzefitz closed 8 years ago

Kritzefitz commented 8 years ago

I was recently packaging Cabal (the library) 1.22.6.0 and cabal-debian generated a bunch of dependencies on libraries that are shipped with GHC.

Normally this wouldn't be a problem without version constraints, but the generated version constraints force the usage of a real package instead of a virtual one, so the dependencies can't actually be satisfied.

I was using cabal-debian 4.31.

ddssff commented 8 years ago

Those dependencies should be of the form ghc | lib >= 1.2.3, right?

nomeata commented 8 years ago

I observed this as well, but did not yet investigate. My guess is that cabal-debian’s code for figuring out what comes with ghc is broken with ghc-7.10.3 for some reason.

ddssff commented 8 years ago

​That is possible, the code is pretty delicate. I would like to see the output, and have the information required to reproduce it.​

Kritzefitz commented 8 years ago

Normally we just omit these dependencies completely.

nomeata commented 8 years ago

Normally we just omit these dependencies completely.

and cabal-deban used to do that (maybe only with --official?), so the problem is likely the detection.

ddssff commented 8 years ago

Ok, I will look at the --official behavior.

ddssff commented 8 years ago

I'm not seeing dependencies for bundled libraries with the current version - 4.32.2. Could you try this to make sure we are on the same page?

Kritzefitz commented 8 years ago

4.32.2 doesn't generate these dependencies. So I think this can be closed.

ddssff commented 8 years ago

Thanks!