diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-04-15 11:09:45 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-04-16 17:00:40 +0200 |
commit | 8992d5269804b727fb77249511e89df678526907 (patch) | |
tree | d39461686c7a22c8415b0a8dd630a4457a983ba7 /libraries/bin-package-db | |
parent | a107737f84f6738a9fa572ec9c5da49c9db8a8b5 (diff) | |
download | haskell-8992d5269804b727fb77249511e89df678526907.tar.gz |
Update Cabal submodule to tip of v1.20 branch
This corresponds to the RC of the soon-to-be Cabal 1.20 release
One noteworthy change is the removal of the `--with-ranlib` flag
requiring a small adaptation in the GHC build system.
Moreover two new licences were added, MPL and BSD2.
Due to https://github.com/haskell/cabal/issues/1622 Cabal-1.20 now
allows to strip libraries as well, this doesn't work well with
`ghc-cabal copy` being fed a `":"` strip-command argument which was
simply ignored in the past. The current code tries to retain this
semantics as backward compat. However, this needs more investigation as
I'm not sure if/why the `test_bindist` step doesn't want the libraries
to be stripped on installation.
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Diffstat (limited to 'libraries/bin-package-db')
-rw-r--r-- | libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs | 6 | ||||
-rw-r--r-- | libraries/bin-package-db/bin-package-db.cabal | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs b/libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs index 27e23d8959..ab7fcf5652 100644 --- a/libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs +++ b/libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs @@ -132,7 +132,9 @@ instance Binary License where put OtherLicense = do putWord8 7 put (Apache v) = do putWord8 8; put v put (AGPL v) = do putWord8 9; put v - put (UnknownLicense str) = do putWord8 10; put str + put BSD2 = do putWord8 10 + put (MPL v) = do putWord8 11; put v + put (UnknownLicense str) = do putWord8 12; put str get = do n <- getWord8 @@ -147,6 +149,8 @@ instance Binary License where 7 -> return OtherLicense 8 -> do v <- get; return (Apache v) 9 -> do v <- get; return (AGPL v) + 10 -> return BSD2 + 11 -> do v <- get; return (MPL v) _ -> do str <- get; return (UnknownLicense str) instance Binary Version where diff --git a/libraries/bin-package-db/bin-package-db.cabal b/libraries/bin-package-db/bin-package-db.cabal index 1d3054ce85..44408a77b6 100644 --- a/libraries/bin-package-db/bin-package-db.cabal +++ b/libraries/bin-package-db/bin-package-db.cabal @@ -19,7 +19,7 @@ Library { build-depends: base >= 4 && < 5 build-depends: binary >= 0.5 && < 0.8, - Cabal >= 1.18 && < 1.19 + Cabal >= 1.20 && < 1.21 extensions: CPP } |