pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/py-m2crypto py-m2crypto: Update to 0.36.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6233eb45cbf6
branches:  trunk
changeset: 439292:6233eb45cbf6
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Sep 17 08:56:38 2020 +0000

description:
py-m2crypto: Update to 0.36.0.

Based on joyent/pkgsrc#282 from sjorge.

0.36.0 - 2020-07-13
-------------------

- wrap SocketIO in io.Buffered* for makefile <lethliel>
- SSL.Connection.close accepts an argument to force the socket closing
  <Christophe Haen>
- SSL.Connection: make the clientPostConnectionCheck an instance
  attribute <Christophe Haen>
- Fixed bug with usage of unexisting method getreply at SSL_Transport
  <roman-nagaev>
- Add appveyor builds for python 3.7 and 3.8 <Daniel A. Wozniak>
- Fixed syntax warning on line 44. <randomfox>
- Update M2Crypto.six to 1.13.0 <Matěj Cepl>
- base64.decodestring() was finally removed in Python 3.8. <Matěj Cepl>
- wrap SocketIO in io.Buffered* for makefile <lethliel>
- NULL is legal argument for key and iv paramters of EVP_CipherInit(3)
  <Matěj Cepl>
- Expose X509_V_FLAG_ALLOW_PROXY_CERTS verification flag and
  X509_STORE_SET_FLAGS function <Christophe Haen>
- Stop testing for 2.6 and 3.4 on Travis. Start testing 3.8 <Matěj Cepl>
- Extend test cert validity to 2049 <Bernhard M. Wiedemann>
- Revert using typing module in 2.6. It is just not worthy. <Matěj Cepl>
- Update Debian/stable SSL as well <Matěj Cepl>
- Make tests pass again. <Matěj Cepl>
- Stop using string module, which has been deprecated. <Matěj Cepl>
- Tiny fixes to make pyls more happy <Matěj Cepl>
- CI: Rework Fedora CI configuration <Neal Gompa>

0.35.2 - 2019-06-10
-------------------

- tests.test_rsa: Fix typo to match for proper exception <Sebastian
  Andrzej Siewior>
- Expose CRLs verification flags <Christophe Haen>

0.35.1 - 2019-06-08
-------------------

- Actually, really fix compatibility with OpenSSL 1.1.1c. Thank you,
  Sebastian Andrzej Siewior from the Debian team for resolving it.

0.34.0 - 2019-05-30
-------------------

- Use more recent version of OpenSSL on Windows
- Be resilient against the situation when no erorr happened.
- Correct URL of https://www.schneier.com/academic/smime/
- Use shlex.split() for CPP

0.33.0 - 2019-04-26
-------------------

- eb4525c - Stop pretending to support Python 3.4. <Matěj Cepl>
- 6a89548 - Fix use of urlunsplit (25 hours ago) <Andreas Schwab>
- 0a5a356 - tests/test_ssl: use -ciphercuites for TLS1.3 cipher in
      openssl1.1 <Sebastian Andrzej Siewior>
- 8a0a3e3 - There are apparently multiword CPP variables. Taking that
      into account. <Matěj Cepl>

diffstat:

 security/py-m2crypto/Makefile                              |  12 +++--
 security/py-m2crypto/distinfo                              |  14 +++---
 security/py-m2crypto/patches/patch-SWIG___evp.i            |  15 +++++++
 security/py-m2crypto/patches/patch-SWIG___m2crypto.i       |  19 +++++++++
 security/py-m2crypto/patches/patch-SWIG___m2crypto__wrap.c |  24 ------------
 security/py-m2crypto/patches/patch-setup.py                |  27 --------------
 6 files changed, 48 insertions(+), 63 deletions(-)

diffs (155 lines):

diff -r 8e01e6147e5a -r 6233eb45cbf6 security/py-m2crypto/Makefile
--- a/security/py-m2crypto/Makefile     Thu Sep 17 08:55:28 2020 +0000
+++ b/security/py-m2crypto/Makefile     Thu Sep 17 08:56:38 2020 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.53 2020/04/24 11:41:37 nia Exp $
+# $NetBSD: Makefile,v 1.54 2020/09/17 08:56:38 jperkin Exp $
 
-DISTNAME=      M2Crypto-0.32.0
+DISTNAME=      M2Crypto-0.36.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
-PKGREVISION=   1
 CATEGORIES=    security python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=M/M2Crypto/}
 
@@ -11,7 +10,7 @@
 COMMENT=       Crypto and SSL toolkit for Python
 LICENSE=       m2crypto-license
 
-BROKEN=                "Fails to build with OpenSSL 1.1"
+USE_LANGUAGES+=        c c++11
 
 .include "../../lang/python/pyversion.mk"
 
@@ -24,7 +23,10 @@
 
 PYSETUPBUILDARGS=      build_ext --openssl=${BUILDLINK_PREFIX.openssl}
 
-.include "../../devel/swig/buildlink3.mk"
+pre-configure:
+       ${LN} -s ${PREFIX}/bin/swig3.0 ${BUILDLINK_DIR}/bin/swig
+
+.include "../../devel/swig3/buildlink3.mk"
 .include "../../lang/python/egg.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 8e01e6147e5a -r 6233eb45cbf6 security/py-m2crypto/distinfo
--- a/security/py-m2crypto/distinfo     Thu Sep 17 08:55:28 2020 +0000
+++ b/security/py-m2crypto/distinfo     Thu Sep 17 08:56:38 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.18 2019/03/04 18:41:48 adam Exp $
+$NetBSD: distinfo,v 1.19 2020/09/17 08:56:38 jperkin Exp $
 
-SHA1 (M2Crypto-0.32.0.tar.gz) = b36c43373f952401b9cc190e4e5ddd09028e276b
-RMD160 (M2Crypto-0.32.0.tar.gz) = 4d8b714b105ba4e2616d203edd72733736b124c1
-SHA512 (M2Crypto-0.32.0.tar.gz) = 477cc30748b3ddc21b66872a88ba0e111a592928ce0d2edc9b72c9a8fa7aa2b422e1b785b830e8d8fcab9f1678928634627b0ea3d57632ec5769ba4ed64c16f8
-Size (M2Crypto-0.32.0.tar.gz) = 1292542 bytes
-SHA1 (patch-SWIG___m2crypto__wrap.c) = 2672787cd8fd70b5ac2cf634b6a913aefc27b26c
-SHA1 (patch-setup.py) = ec43146954a849a7e12003397df19e6567df888c
+SHA1 (M2Crypto-0.36.0.tar.gz) = 666735839ad0d9b414cc39937ffad2675297bb02
+RMD160 (M2Crypto-0.36.0.tar.gz) = e813fd1da12a8b8a5550931129d29977a25cef5d
+SHA512 (M2Crypto-0.36.0.tar.gz) = 5b7d6d10c943ff0e09e0e9748d5578e7e0f7659a73de4ba49481152bca05871aef2bfbb869e1636a7cebcf2dd8b9f67fb0d299a833d1d4ebd538031c35d7bca1
+Size (M2Crypto-0.36.0.tar.gz) = 1127584 bytes
+SHA1 (patch-SWIG___evp.i) = 07fc94a5c7dbd2fcfde716ec316d8a833f28ffc7
+SHA1 (patch-SWIG___m2crypto.i) = 5f6024d2be735c0cfcfd64ed69d6da289c8fd268
diff -r 8e01e6147e5a -r 6233eb45cbf6 security/py-m2crypto/patches/patch-SWIG___evp.i
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-m2crypto/patches/patch-SWIG___evp.i   Thu Sep 17 08:56:38 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-SWIG___evp.i,v 1.1 2020/09/17 08:56:38 jperkin Exp $
+
+Avoid conflict with hmac() definition from stdlib.h (NetBSD).
+
+--- SWIG/_evp.i.orig   2020-04-14 21:09:41.000000000 +0000
++++ SWIG/_evp.i
+@@ -361,7 +361,7 @@ PyObject *hmac_final(HMAC_CTX *ctx) {
+     return ret;
+ }
+ 
+-PyObject *hmac(PyObject *key, PyObject *data, const EVP_MD *md) {
++PyObject *hmac_func(PyObject *key, PyObject *data, const EVP_MD *md) {
+     const void *kbuf, *dbuf;
+     void *blob;
+     int klen = 0;
diff -r 8e01e6147e5a -r 6233eb45cbf6 security/py-m2crypto/patches/patch-SWIG___m2crypto.i
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-m2crypto/patches/patch-SWIG___m2crypto.i      Thu Sep 17 08:56:38 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-SWIG___m2crypto.i,v 1.1 2020/09/17 08:56:38 jperkin Exp $
+
+Find local includes correctly.
+
+--- SWIG/_m2crypto.i.orig      2020-01-30 08:17:01.000000000 +0000
++++ SWIG/_m2crypto.i
+@@ -46,9 +46,9 @@ typedef unsigned __int64 uint64_t;
+ 
+ #include <openssl/err.h>
+ #include <openssl/rand.h>
+-#include <_lib.h>
+-#include <libcrypto-compat.h>
+-#include <py3k_compat.h>
++#include "_lib.h"
++#include "libcrypto-compat.h"
++#include "py3k_compat.h"
+ 
+ #include "compile.h"
+ 
diff -r 8e01e6147e5a -r 6233eb45cbf6 security/py-m2crypto/patches/patch-SWIG___m2crypto__wrap.c
--- a/security/py-m2crypto/patches/patch-SWIG___m2crypto__wrap.c        Thu Sep 17 08:55:28 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-SWIG___m2crypto__wrap.c,v 1.2 2018/02/09 08:44:50 adam Exp $
-
-Avoid conflict with hmac() definition from stdlib.h (NetBSD).
-
---- SWIG/_m2crypto_wrap.c.orig 2018-02-08 18:54:48.000000000 +0000
-+++ SWIG/_m2crypto_wrap.c
-@@ -5949,7 +5949,7 @@ PyObject *hmac_final(HMAC_CTX *ctx) {
-     return ret;
- }
- 
--PyObject *hmac(PyObject *key, PyObject *data, const EVP_MD *md) {
-+PyObject *hmac_func(PyObject *key, PyObject *data, const EVP_MD *md) {
-     const void *kbuf, *dbuf;
-     void *blob;
-     int klen = 0;
-@@ -13610,7 +13610,7 @@ SWIGINTERN PyObject *_wrap_hmac(PyObject
-       SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
-     }
-   }
--  result = (PyObject *)hmac(arg1,arg2,(EVP_MD const *)arg3);
-+  result = (PyObject *)hmac_func(arg1,arg2,(EVP_MD const *)arg3);
-   {
-     resultobj=result;
-   }
diff -r 8e01e6147e5a -r 6233eb45cbf6 security/py-m2crypto/patches/patch-setup.py
--- a/security/py-m2crypto/patches/patch-setup.py       Thu Sep 17 08:55:28 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-$NetBSD: patch-setup.py,v 1.5 2019/03/04 18:41:48 adam Exp $
-
-CPP may contain spaces.
-
-Don't pass "-includeall" to swig.  It causes compiler-dependent
-tests in system include files to break (e.g. "#ifdef __GNUC__"
-doesn't work properly.)
-
---- setup.py.orig      2019-03-04 17:27:03.000000000 +0000
-+++ setup.py
-@@ -50,7 +50,7 @@ def _get_additional_includes():
-                                 '*Visual*', 'VC', 'include')
-         err = glob.glob(globmask)
-     else:
--        pid = subprocess.Popen([os.environ.get('CPP', 'cpp'), '-Wp,-v', '-'],
-+        pid = subprocess.Popen(os.environ.get('CPP', 'cpp').split() + ['-Wp,-v', '-'],
-                                stdin=open(os.devnull, 'r'),
-                                stdout=subprocess.PIPE,
-                                stderr=subprocess.PIPE)
-@@ -197,7 +197,6 @@ class _M2CryptoBuildExt(build_ext.build_
- 
-         # swig seems to need the default header file directories
-         self.swig_opts.extend(['-I%s' % i for i in _get_additional_includes()])
--        self.swig_opts.append('-includeall')
-         self.swig_opts.append('-modern')
-         self.swig_opts.append('-builtin')
- 


Home | Main Index | Thread Index | Old Index