-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.4.0.0 Oleg Grenrus <oleg.grenrus@iki.fi> February 2021 * See https://github.com/haskell/cabal/blob/master/release-notes/cabal-install-3.4.0.0.md 3.2.0.0 Herbert Valerio Riedel <hvr@gnu.org> April 2020 * `v2-build` (and other `v2-`prefixed commands) now accept the `--benchmark-option(s)` flags, which pass options to benchmark executables (analogous to how `--test-option(s)` works). (#6209) * Add solver optimization to skip a version of a package if it does not resolve any conflicts encountered in the last version, controlled by flag '--fine-grained-conflicts'. (#5918) * `cabal v2-exec` doesn't fail in clean package (#6479) * Show full ABI hash for installed packages in solver log (#5892) * Create incoming directory even for empty packages (#4130) * Start GHCi with `main-is` module in scope (#6311) * Implement `--benchmark-options` for `v2-bench` (#6224) * Fix store-dir in ghc env files generated by `cabal install --lib --package-env` (#6298) * `cabal v2-run` works with `.lhs` files (#6134) * `subdir` in source-repository-package accepts multiple entries (#5472) 3.0.1.0 Herbert Valerio Riedel <hvr@gnu.org> April 2020 * Create store incoming directory ([#4130](haskell/cabal#4130)) * `fetchRepoTarball` output is not marked ([#6385](haskell/cabal#6385)) * Update `setupMinCabalVersionConstraint` for GHC-8.8 ([#6217](haskell/cabal#6217)) * Implement `cabal install --ignore-project` ([#5919](haskell/cabal#5919)) * `cabal install executable` solver isn't affected by default environment contents ([#6410](haskell/cabal#6410)) * Use `lukko` for file locking ([#6345](haskell/cabal#6345)) * Use `hackage-security-0.6` ([#6388](haskell/cabal#6388)) * Other dependency upgrades
- Loading branch information
1 parent
d43bd91
commit b488d3f
Showing
8 changed files
with
63 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@comment $NetBSD: PLIST,v 1.2 2020/10/13 12:27:11 pho Exp $ | ||
@comment $NetBSD: PLIST,v 1.3 2021/04/25 13:43:44 pho Exp $ | ||
bin/cabal | ||
man/man1/cabal.1 | ||
share/bash-completion/completions/cabal | ||
share/doc/${HS_PLATFORM}/${PKGNAME}/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
$NetBSD: distinfo,v 1.2 2020/10/13 12:08:10 pho Exp $ | ||
$NetBSD: distinfo,v 1.3 2021/04/25 13:43:44 pho Exp $ | ||
|
||
SHA1 (cabal-install-3.0.0.0.tar.gz) = 2fe37726db987af6c23b933bb0e9b81446061449 | ||
RMD160 (cabal-install-3.0.0.0.tar.gz) = 7217d6334bdf98f18341fb0aff8208b20717f695 | ||
SHA512 (cabal-install-3.0.0.0.tar.gz) = 0b15313fc11bc6b6018e01b6a3a65242306977c16ce9333ea1191c1ce0020b180451235a7a65b47bc01791e05d1b246bf9d573fc7e981a46fcfc7da0fed04cca | ||
Size (cabal-install-3.0.0.0.tar.gz) = 654045 bytes | ||
SHA1 (patch-Distribution_Client_Security_HTTP.hs) = ba58ab3c0481b2b269e401121f2dc6f2b2bcf503 | ||
SHA1 (patch-Setup.hs) = 0785a7a574d17447f8109263bbf52acec909fef6 | ||
SHA1 (patch-cabal-install.cabal) = 33633ae6970f52fcdf2a842bdc98f641c308957b | ||
SHA1 (cabal-install-3.4.0.0.tar.gz) = e35dbadb652aa3710e75bf33ac60f3a44c4629b5 | ||
RMD160 (cabal-install-3.4.0.0.tar.gz) = 200f90949efe23c1aebc3fbd817fe802ecea6520 | ||
SHA512 (cabal-install-3.4.0.0.tar.gz) = 0fd93c86c59e3c626341be3c67e69a1502f1ce1413b4a456cd930d5449cabdaeb033ac5f47673db0e708fc194aadf8ab0aa2904b6b0f195b57907c5b40588323 | ||
Size (cabal-install-3.4.0.0.tar.gz) = 640775 bytes | ||
SHA1 (patch-Distribution_Client_HashValue.hs) = 95e627979748e5e697959c89ddee22127784a079 | ||
SHA1 (patch-Distribution_Client_HttpUtils.hs) = d3979223eebba0ac20cce1f81ad083b3d490e66d | ||
SHA1 (patch-cabal-install.cabal) = 21d95449ded3b7f7576fa55578d9dbad511b10f9 |
18 changes: 18 additions & 0 deletions
18
misc/cabal-install/patches/patch-Distribution_Client_HashValue.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$NetBSD: patch-Distribution_Client_HashValue.hs,v 1.1 2021/04/25 13:43:44 pho Exp $ | ||
|
||
Fix build with base16-bytestring-1.0.* | ||
|
||
--- Distribution/Client/HashValue.hs.orig 2021-04-25 13:09:32.521615949 +0000 | ||
+++ Distribution/Client/HashValue.hs | ||
@@ -71,9 +71,8 @@ hashFromTUF (Sec.Hash hashstr) = | ||
--TODO: [code cleanup] either we should get TUF to use raw bytestrings or | ||
-- perhaps we should also just use a base16 string as the internal rep. | ||
case Base16.decode (BS.pack hashstr) of | ||
- (hash, trailing) | not (BS.null hash) && BS.null trailing | ||
- -> HashValue hash | ||
- _ -> error "hashFromTUF: cannot decode base16 hash" | ||
+ Right hash -> HashValue hash | ||
+ Left _ -> error "hashFromTUF: cannot decode base16 hash" | ||
|
||
|
||
-- | Truncate a 32 byte SHA256 hash to |
17 changes: 17 additions & 0 deletions
17
misc/cabal-install/patches/patch-Distribution_Client_HttpUtils.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$NetBSD: patch-Distribution_Client_HttpUtils.hs,v 1.1 2021/04/25 13:43:44 pho Exp $ | ||
|
||
Fix build with base16-bytestring-1.0.* | ||
|
||
--- Distribution/Client/HttpUtils.hs.orig 2021-04-25 13:14:42.533821044 +0000 | ||
+++ Distribution/Client/HttpUtils.hs | ||
@@ -182,7 +182,9 @@ downloadURI transport verbosity uri path | ||
fragmentParser = do | ||
_ <- P.string "#sha256=" | ||
str <- some P.hexDigit | ||
- return (fst (Base16.decode (BS8.pack str))) | ||
+ case Base16.decode (BS8.pack str) of | ||
+ Right b16 -> return b16 | ||
+ Left err -> fail err | ||
|
||
------------------------------------------------------------------------------ | ||
-- Utilities for repo url management |
31 changes: 0 additions & 31 deletions
31
misc/cabal-install/patches/patch-Distribution_Client_Security_HTTP.hs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
$NetBSD: patch-cabal-install.cabal,v 1.1 2020/01/19 07:51:26 pho Exp $ | ||
$NetBSD: patch-cabal-install.cabal,v 1.2 2021/04/25 13:43:44 pho Exp $ | ||
|
||
Fix build with GHC 8.8 | ||
Fix build with GHC 9 | ||
Fix build with base16-bytestring-1.0.* | ||
|
||
--- cabal-install.cabal.orig 2001-09-09 01:46:40.000000000 +0000 | ||
+++ cabal-install.cabal | ||
@@ -308,7 +308,7 @@ executable cabal | ||
@@ -336,8 +336,8 @@ executable cabal | ||
build-depends: | ||
async >= 2.0 && < 2.3, | ||
array >= 0.4 && < 0.6, | ||
- base >= 4.8 && < 4.13, | ||
+ base >= 4.8 && < 4.14, | ||
base16-bytestring >= 0.1.1 && < 0.2, | ||
- base >= 4.8 && < 4.15, | ||
- base16-bytestring >= 0.1.1 && < 0.2, | ||
+ base >= 4.8 && < 5, | ||
+ base16-bytestring >= 0.1.1 && < 1.1, | ||
binary >= 0.7.3 && < 0.9, | ||
bytestring >= 0.10.6.0 && < 0.11, | ||
@@ -332,7 +332,7 @@ executable cabal | ||
tar >= 0.5.0.3 && < 0.6, | ||
time >= 1.5.0.1 && < 1.10, | ||
zlib >= 0.5.3 && < 0.7, | ||
- hackage-security >= 0.5.2.2 && < 0.6, | ||
+ hackage-security >= 0.5.2.2 && < 0.7, | ||
text >= 1.2.3 && < 1.3, | ||
parsec >= 3.1.13.0 && < 3.2 | ||
|
||
Cabal == 3.4.*, |