pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/cabal-install



Module Name:    pkgsrc
Committed By:   pho
Date:           Sun Apr 25 13:43:45 UTC 2021

Modified Files:
        pkgsrc/misc/cabal-install: Makefile PLIST distinfo
        pkgsrc/misc/cabal-install/patches: patch-cabal-install.cabal
Added Files:
        pkgsrc/misc/cabal-install/patches:
            patch-Distribution_Client_HashValue.hs
            patch-Distribution_Client_HttpUtils.hs
Removed Files:
        pkgsrc/misc/cabal-install/patches:
            patch-Distribution_Client_Security_HTTP.hs patch-Setup.hs

Log Message:
Update to cabal-install-3.4.0.0

3.4.0.0 Oleg Grenrus <oleg.grenrus%iki.fi@localhost> 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@localhost> 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@localhost> April 2020
        * Create store incoming directory
          ([#4130](https://github.com/haskell/cabal/issues/4130))
        * `fetchRepoTarball` output is not marked
          ([#6385](https://github.com/haskell/cabal/pull/6385))
        * Update `setupMinCabalVersionConstraint` for GHC-8.8
          ([#6217](https://github.com/haskell/cabal/pull/6217))
        * Implement `cabal install --ignore-project`
          ([#5919](https://github.com/haskell/cabal/issues/5919))
        * `cabal install executable` solver isn't affected by default
          environment contents
          ([#6410](https://github.com/haskell/cabal/issues/6410))
        * Use `lukko` for file locking
          ([#6345](https://github.com/haskell/cabal/pull/6345))
        * Use `hackage-security-0.6`
          ([#6388](https://github.com/haskell/cabal/pull/6388))
        * Other dependency upgrades


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/misc/cabal-install/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/misc/cabal-install/PLIST \
    pkgsrc/misc/cabal-install/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/misc/cabal-install/patches/patch-Distribution_Client_HashValue.hs \
    pkgsrc/misc/cabal-install/patches/patch-Distribution_Client_HttpUtils.hs
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/misc/cabal-install/patches/patch-Distribution_Client_Security_HTTP.hs \
    pkgsrc/misc/cabal-install/patches/patch-Setup.hs
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/misc/cabal-install/patches/patch-cabal-install.cabal

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/cabal-install/Makefile
diff -u pkgsrc/misc/cabal-install/Makefile:1.3 pkgsrc/misc/cabal-install/Makefile:1.4
--- pkgsrc/misc/cabal-install/Makefile:1.3      Tue Oct 13 12:27:11 2020
+++ pkgsrc/misc/cabal-install/Makefile  Sun Apr 25 13:43:44 2021
@@ -1,28 +1,17 @@
-# $NetBSD: Makefile,v 1.3 2020/10/13 12:27:11 pho Exp $
+# $NetBSD: Makefile,v 1.4 2021/04/25 13:43:44 pho Exp $
 
-DISTNAME=      cabal-install-3.0.0.0
+DISTNAME=      cabal-install-3.4.0.0
 PKGNAME=       ${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    misc
 
 MAINTAINER=    pho%cielonegro.org@localhost
 COMMENT=       Command-line interface for Cabal and Hackage
 LICENSE=       modified-bsd
 
-SUBST_CLASSES+=                mandir
-SUBST_STAGE.mandir=    pre-configure
-SUBST_MESSAGE.mandir=  Fixing man page installation path
-SUBST_FILES.mandir+=   Setup.hs
-SUBST_VARS.mandir+=    PKGMANDIR
-
-# cabal-install installs a LICENSE file under
-# share/doc/${PLATFORM}-ghc-${GHC_VERSION}/${PKGNAME}. Variables in
-# paths are usually handled by ../../mk/haskell.mk, but in this case
-# it can't, because the package installs no libraries and therefore
-# doesn't have the package-description file. Remove share/doc to work
-# around this.
+INSTALLATION_DIRS+=    share/bash-completion/completions
 post-install:
-       ${RM} -r ${DESTDIR}${PREFIX}/share/doc
+       ${INSTALL_DATA} ${WRKSRC}/bash-completion/cabal \
+               ${DESTDIR}${PREFIX}/share/bash-completion/completions
 
 .include "../../devel/hs-async/buildlink3.mk"
 .include "../../converters/hs-base16-bytestring/buildlink3.mk"
@@ -32,11 +21,13 @@ post-install:
 .include "../../security/hs-hackage-security/buildlink3.mk"
 .include "../../devel/hs-hashable/buildlink3.mk"
 .include "../../www/hs-HTTP/buildlink3.mk"
-.include "../../net/hs-network/buildlink3.mk"
 .include "../../net/hs-network-uri/buildlink3.mk"
 .include "../../devel/hs-random/buildlink3.mk"
+.include "../../textproc/hs-regex-base/buildlink3.mk"
+.include "../../textproc/hs-regex-posix/buildlink3.mk"
 .include "../../archivers/hs-tar/buildlink3.mk"
 .include "../../archivers/hs-zlib/buildlink3.mk"
 .include "../../net/hs-resolv/buildlink3.mk"
+.include "../../devel/hs-lukko/buildlink3.mk"
 .include "../../mk/haskell.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/misc/cabal-install/PLIST
diff -u pkgsrc/misc/cabal-install/PLIST:1.2 pkgsrc/misc/cabal-install/PLIST:1.3
--- pkgsrc/misc/cabal-install/PLIST:1.2 Tue Oct 13 12:27:11 2020
+++ pkgsrc/misc/cabal-install/PLIST     Sun Apr 25 13:43:44 2021
@@ -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
Index: pkgsrc/misc/cabal-install/distinfo
diff -u pkgsrc/misc/cabal-install/distinfo:1.2 pkgsrc/misc/cabal-install/distinfo:1.3
--- pkgsrc/misc/cabal-install/distinfo:1.2      Tue Oct 13 12:08:10 2020
+++ pkgsrc/misc/cabal-install/distinfo  Sun Apr 25 13:43:44 2021
@@ -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

Index: pkgsrc/misc/cabal-install/patches/patch-cabal-install.cabal
diff -u pkgsrc/misc/cabal-install/patches/patch-cabal-install.cabal:1.1 pkgsrc/misc/cabal-install/patches/patch-cabal-install.cabal:1.2
--- pkgsrc/misc/cabal-install/patches/patch-cabal-install.cabal:1.1     Sun Jan 19 07:51:26 2020
+++ pkgsrc/misc/cabal-install/patches/patch-cabal-install.cabal Sun Apr 25 13:43:44 2021
@@ -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.*,

Added files:

Index: pkgsrc/misc/cabal-install/patches/patch-Distribution_Client_HashValue.hs
diff -u /dev/null pkgsrc/misc/cabal-install/patches/patch-Distribution_Client_HashValue.hs:1.1
--- /dev/null   Sun Apr 25 13:43:45 2021
+++ pkgsrc/misc/cabal-install/patches/patch-Distribution_Client_HashValue.hs    Sun Apr 25 13:43:44 2021
@@ -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
Index: pkgsrc/misc/cabal-install/patches/patch-Distribution_Client_HttpUtils.hs
diff -u /dev/null pkgsrc/misc/cabal-install/patches/patch-Distribution_Client_HttpUtils.hs:1.1
--- /dev/null   Sun Apr 25 13:43:45 2021
+++ pkgsrc/misc/cabal-install/patches/patch-Distribution_Client_HttpUtils.hs    Sun Apr 25 13:43:44 2021
@@ -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



Home | Main Index | Thread Index | Old Index