pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/py-cryptkit fix up integer types and BYTE_ORD...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/801695cbbcd9
branches:  trunk
changeset: 355867:801695cbbcd9
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Thu Dec 15 01:07:30 2016 +0000

description:
fix up integer types and BYTE_ORDER on SunOS

diffstat:

 security/py-cryptkit/Makefile                        |   6 ++++--
 security/py-cryptkit/distinfo                        |   3 ++-
 security/py-cryptkit/patches/patch-sha256_src_sha2.c |  16 ++++++++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r 26a2c71a3939 -r 801695cbbcd9 security/py-cryptkit/Makefile
--- a/security/py-cryptkit/Makefile     Wed Dec 14 23:41:51 2016 +0000
+++ b/security/py-cryptkit/Makefile     Thu Dec 15 01:07:30 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2016/07/09 13:04:04 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2016/12/15 01:07:30 wiedi Exp $
 
 DISTNAME=      cryptkit-0.9
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    security python
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=cryptkit/}
 
@@ -12,5 +12,7 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  34 35 # not yet ported as of 0.9
 
+CPPFLAGS.SunOS+=       -Du_int8_t=uint8_t -Du_int16_t=uint16_t -Du_int32_t=uint32_t -Du_int64_t=uint64_t
+
 .include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 26a2c71a3939 -r 801695cbbcd9 security/py-cryptkit/distinfo
--- a/security/py-cryptkit/distinfo     Wed Dec 14 23:41:51 2016 +0000
+++ b/security/py-cryptkit/distinfo     Thu Dec 15 01:07:30 2016 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 01:18:03 agc Exp $
+$NetBSD: distinfo,v 1.4 2016/12/15 01:07:30 wiedi Exp $
 
 SHA1 (cryptkit-0.9.tar.gz) = b423a938ddf55e42ffb7bafcc034f151e9b57973
 RMD160 (cryptkit-0.9.tar.gz) = 9cf32689e4644b6d4dab24e6ddb17167563f1b58
 SHA512 (cryptkit-0.9.tar.gz) = 9d4e4eb5a68406061661d04d230dfbb4bd6cb05a1e16c3ec5c85bc9a4cec0d676f9c16de2b7775762a134652bc9eb9abaa626a808f8441d6a6fbe3d7cf270514
 Size (cryptkit-0.9.tar.gz) = 103627 bytes
+SHA1 (patch-sha256_src_sha2.c) = d8c517be3de78ff1c815f413c331e791d9c40fbf
diff -r 26a2c71a3939 -r 801695cbbcd9 security/py-cryptkit/patches/patch-sha256_src_sha2.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-cryptkit/patches/patch-sha256_src_sha2.c      Thu Dec 15 01:07:30 2016 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-sha256_src_sha2.c,v 1.1 2016/12/15 01:07:30 wiedi Exp $
+
+need endian.h on SunOS for BYTE_ORDER
+
+--- sha256/src/sha2.c.orig     2001-11-29 15:56:49.000000000 +0000
++++ sha256/src/sha2.c
+@@ -36,6 +36,9 @@
+  *
+  */
+ 
++#if defined(__sun)
++#include <endian.h>
++#endif
+ 
+ #include <string.h>   /* memcpy()/memset() or bcopy()/bzero() */
+ #include <assert.h>   /* assert() */



Home | Main Index | Thread Index | Old Index