[GHC] #1837: ghc-pkg should not accept unversioned depends
Frederik Eaton
frederik at a5.repetae.net
Sun Jan 20 11:08:47 EST 2008
Hello,
I can't use Cabal on some of my projects, for various reasons that
I've discussed here earlier... However, I can have a cabal file to
describe the dependencies and so forth. Is there a way to generate a
proper package config using a cabal file? Or is there some other way
to do it so I get the right versions? I am now seeing the warning
message which was introduced by this bug fix, but don't know what to
do about it.
Thanks,
Frederik
On Tue, Nov 06, 2007 at 03:31:02PM -0000, GHC wrote:
> #1837: ghc-pkg should not accept unversioned depends
> -----------------------------+----------------------------------------------
> Reporter: duncan | Owner:
> Type: bug | Status: new
> Priority: normal | Milestone:
> Component: Build System | Version: 6.8.1
> Severity: normal | Keywords:
> Difficulty: Easy (1 hr) | Testcase:
> Architecture: Multiple | Os: Multiple
> -----------------------------+----------------------------------------------
> Historically ghc-pkg accepted a format where the "depends:" field did not
> require version numbers. Then ghc would just resolve it to some installed
> version. However now that ghc bakes in the version number to libraries
> when it compiles them it really crucial that a package gets linked with
> exactly the versions of packages it was built against. Allowing ghc-pkg to
> accept unversioned depends and resolving them to some random installed
> version is just asking for trouble.
>
> It's not too serious since Cabal always uses versioned depends, however I
> just noticed that older autoconf/automake build systems do not.
>
> So, in summary allowing undersioned depends is just asking for trouble and
> ghc-pkg should reject them.
>
> --
> Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1837>
> GHC <http://www.haskell.org/ghc/>
> The Glasgow Haskell Compiler
> _______________________________________________
> Glasgow-haskell-bugs mailing list
> Glasgow-haskell-bugs at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
--
http://ofb.net/~frederik/
More information about the Glasgow-haskell-bugs
mailing list