pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/hs-cryptonite



Module Name:    pkgsrc
Committed By:   pho
Date:           Fri Feb 11 13:10:15 UTC 2022

Modified Files:
        pkgsrc/security/hs-cryptonite: Makefile PLIST buildlink3.mk distinfo
Added Files:
        pkgsrc/security/hs-cryptonite/patches:
            patch-Crypto_Internal_CompatPrim.hs
Removed Files:
        pkgsrc/security/hs-cryptonite/patches: patch-Crypto_Number_Compat.hs

Log Message:
Update to cryptonite-0.29

No changelogs are provided by the upstream.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/security/hs-cryptonite/Makefile \
    pkgsrc/security/hs-cryptonite/buildlink3.mk \
    pkgsrc/security/hs-cryptonite/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/security/hs-cryptonite/PLIST
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/hs-cryptonite/patches/patch-Crypto_Internal_CompatPrim.hs
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/security/hs-cryptonite/patches/patch-Crypto_Number_Compat.hs

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

Modified files:

Index: pkgsrc/security/hs-cryptonite/Makefile
diff -u pkgsrc/security/hs-cryptonite/Makefile:1.4 pkgsrc/security/hs-cryptonite/Makefile:1.5
--- pkgsrc/security/hs-cryptonite/Makefile:1.4  Tue Jan 18 02:48:20 2022
+++ pkgsrc/security/hs-cryptonite/Makefile      Fri Feb 11 13:10:15 2022
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2022/01/18 02:48:20 pho Exp $
+# $NetBSD: Makefile,v 1.5 2022/02/11 13:10:15 pho Exp $
 
-DISTNAME=      cryptonite-0.28
-PKGREVISION=   2
+DISTNAME=      cryptonite-0.29
 CATEGORIES=    security
 
 MAINTAINER=    pho%cielonegro.org@localhost
Index: pkgsrc/security/hs-cryptonite/buildlink3.mk
diff -u pkgsrc/security/hs-cryptonite/buildlink3.mk:1.4 pkgsrc/security/hs-cryptonite/buildlink3.mk:1.5
--- pkgsrc/security/hs-cryptonite/buildlink3.mk:1.4     Tue Jan 18 02:48:20 2022
+++ pkgsrc/security/hs-cryptonite/buildlink3.mk Fri Feb 11 13:10:15 2022
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.4 2022/01/18 02:48:20 pho Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2022/02/11 13:10:15 pho Exp $
 
 BUILDLINK_TREE+=       hs-cryptonite
 
 .if !defined(HS_CRYPTONITE_BUILDLINK3_MK)
 HS_CRYPTONITE_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.hs-cryptonite+=  hs-cryptonite>=0.28
-BUILDLINK_ABI_DEPENDS.hs-cryptonite+=  hs-cryptonite>=0.28nb2
+BUILDLINK_API_DEPENDS.hs-cryptonite+=  hs-cryptonite>=0.29
+BUILDLINK_ABI_DEPENDS.hs-cryptonite+=  hs-cryptonite>=0.29
 BUILDLINK_PKGSRCDIR.hs-cryptonite?=    ../../security/hs-cryptonite
 
 .include "../../devel/hs-basement/buildlink3.mk"
Index: pkgsrc/security/hs-cryptonite/distinfo
diff -u pkgsrc/security/hs-cryptonite/distinfo:1.4 pkgsrc/security/hs-cryptonite/distinfo:1.5
--- pkgsrc/security/hs-cryptonite/distinfo:1.4  Tue Oct 26 11:17:09 2021
+++ pkgsrc/security/hs-cryptonite/distinfo      Fri Feb 11 13:10:15 2022
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:17:09 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/02/11 13:10:15 pho Exp $
 
-BLAKE2s (cryptonite-0.28.tar.gz) = c822acb63b2fcbb372695cd190b3e4ddf15f403119d2e9db2dc826df9587a409
-SHA512 (cryptonite-0.28.tar.gz) = c1e485522938f94f15910a5b5a4a3e4dfecbb62df463c80faaa51e9d883c2612611b8486bd0fd13660766cfb6d62d366fbbd03df2db874d525514aae247b6242
-Size (cryptonite-0.28.tar.gz) = 616309 bytes
-SHA1 (patch-Crypto_Number_Compat.hs) = 982e568d5f7c7d2d3bf5d6453afa72302c42a383
+BLAKE2s (cryptonite-0.29.tar.gz) = 2fd21184176bc46bdcad80c9194c66d6dbecd159b1ecdcc436d854922bc435ef
+SHA512 (cryptonite-0.29.tar.gz) = 7f80268e429a9f700709ebdb00da1e2831f2edca064feaa06a9050060fea572abc2fdfee976f60b18a4085cf3a3533e70129104c82e7b050358a97e8575928f2
+Size (cryptonite-0.29.tar.gz) = 622119 bytes
+SHA1 (patch-Crypto_Internal_CompatPrim.hs) = 8828755bbae0cd36e3e934a83216876be5b93138

Index: pkgsrc/security/hs-cryptonite/PLIST
diff -u pkgsrc/security/hs-cryptonite/PLIST:1.2 pkgsrc/security/hs-cryptonite/PLIST:1.3
--- pkgsrc/security/hs-cryptonite/PLIST:1.2     Sat Apr 24 12:55:43 2021
+++ pkgsrc/security/hs-cryptonite/PLIST Fri Feb 11 13:10:15 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2021/04/24 12:55:43 pho Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/02/11 13:10:15 pho Exp $
 lib/cryptonite-${PKGVERSION}/${HS_VERSION}/package-description
 lib/cryptonite-${PKGVERSION}/${HS_VERSION}/package-id
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Cipher/AES.dyn_hi
@@ -190,6 +190,9 @@ lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Ha
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Hash/Whirlpool.dyn_hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Hash/Whirlpool.hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Hash/Whirlpool.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Internal/Builder.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Internal/Builder.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Internal/Builder.p_hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Internal/ByteArray.dyn_hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Internal/ByteArray.hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Internal/ByteArray.p_hi
@@ -322,6 +325,9 @@ lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/Pu
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/PubKey/Ed448.dyn_hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/PubKey/Ed448.hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/PubKey/Ed448.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/PubKey/EdDSA.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/PubKey/EdDSA.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/PubKey/EdDSA.p_hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/PubKey/ElGamal.dyn_hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/PubKey/ElGamal.hi
 lib/${HS_PLATFORM}/${HS_PKGID}/Crypto/PubKey/ElGamal.p_hi
@@ -470,6 +476,7 @@ share/doc/${HS_PLATFORM}/cryptonite-${PK
 share/doc/${HS_PLATFORM}/cryptonite-${PKGVERSION}/html/Crypto-PubKey-ECIES.html
 share/doc/${HS_PLATFORM}/cryptonite-${PKGVERSION}/html/Crypto-PubKey-Ed25519.html
 share/doc/${HS_PLATFORM}/cryptonite-${PKGVERSION}/html/Crypto-PubKey-Ed448.html
+share/doc/${HS_PLATFORM}/cryptonite-${PKGVERSION}/html/Crypto-PubKey-EdDSA.html
 share/doc/${HS_PLATFORM}/cryptonite-${PKGVERSION}/html/Crypto-PubKey-MaskGenFunction.html
 share/doc/${HS_PLATFORM}/cryptonite-${PKGVERSION}/html/Crypto-PubKey-RSA-OAEP.html
 share/doc/${HS_PLATFORM}/cryptonite-${PKGVERSION}/html/Crypto-PubKey-RSA-PKCS15.html

Added files:

Index: pkgsrc/security/hs-cryptonite/patches/patch-Crypto_Internal_CompatPrim.hs
diff -u /dev/null pkgsrc/security/hs-cryptonite/patches/patch-Crypto_Internal_CompatPrim.hs:1.1
--- /dev/null   Fri Feb 11 13:10:15 2022
+++ pkgsrc/security/hs-cryptonite/patches/patch-Crypto_Internal_CompatPrim.hs   Fri Feb 11 13:10:15 2022
@@ -0,0 +1,50 @@
+$NetBSD: patch-Crypto_Internal_CompatPrim.hs,v 1.1 2022/02/11 13:10:15 pho Exp $
+
+Fix build on GHC 9.2:
+https://github.com/haskell-crypto/cryptonite/pull/354
+
+--- Crypto/Internal/CompatPrim.hs.orig 2022-02-07 13:27:20.338888456 +0000
++++ Crypto/Internal/CompatPrim.hs
+@@ -31,7 +31,11 @@ import Data.Memory.Endian (getSystemEndi
+ -- | Byteswap Word# to or from Big Endian
+ --
+ -- On a big endian machine, this function is a nop.
++#if MIN_VERSION_base(4,16,0)
++be32Prim :: Word32# -> Word32#
++#else
+ be32Prim :: Word# -> Word#
++#endif
+ #ifdef ARCH_IS_LITTLE_ENDIAN
+ be32Prim = byteswap32Prim
+ #elif defined(ARCH_IS_BIG_ENDIAN)
+@@ -43,7 +47,11 @@ be32Prim w = if getSystemEndianness == L
+ -- | Byteswap Word# to or from Little Endian
+ --
+ -- On a little endian machine, this function is a nop.
++#if MIN_VERSION_base(4,16,0)
++le32Prim :: Word32# -> Word32#
++#else
+ le32Prim :: Word# -> Word#
++#endif
+ #ifdef ARCH_IS_LITTLE_ENDIAN
+ le32Prim w = w
+ #elif defined(ARCH_IS_BIG_ENDIAN)
+@@ -54,6 +62,10 @@ le32Prim w = if getSystemEndianness == L
+ 
+ -- | Simple compatibility for byteswap the lower 32 bits of a Word#
+ -- at the primitive level
++#if MIN_VERSION_base(4,16,0)
++byteswap32Prim :: Word32# -> Word32#
++byteswap32Prim w = wordToWord32# (byteSwap32# (word32ToWord# w))
++#else
+ byteswap32Prim :: Word# -> Word#
+ #if __GLASGOW_HASKELL__ >= 708
+ byteswap32Prim w = byteSwap32# w
+@@ -65,6 +77,7 @@ byteswap32Prim w =
+         !d = and# (uncheckedShiftRL# w 24#) 0x000000ff##
+      in or# a (or# b (or# c d))
+ #endif
++#endif
+ 
+ -- | Combine 4 word8 [a,b,c,d] to a word32 representing [a,b,c,d]
+ convert4To32 :: Word# -> Word# -> Word# -> Word#



Home | Main Index | Thread Index | Old Index