Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2018 13:28:16 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478313 - head/security/py-pycryptopp/files
Message-ID:  <201808281328.w7SDSGkN042860@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Aug 28 13:28:15 2018
New Revision: 478313
URL: https://svnweb.freebsd.org/changeset/ports/478313

Log:
  security/py-pycryptopp: Fix build with Clang 6
  
  src/pycryptopp/publickey/ecdsamodule.cpp:94:16: error: cannot initialize return object of type 'int' with an rvalue of type 'nullptr_t'
          return NULL;
                 ^~~~
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/py27-pycryptopp-0.7.1.869544967005693312591928092448767568728501330214.log

Added:
  head/security/py-pycryptopp/files/
  head/security/py-pycryptopp/files/patch-src_pycryptopp_publickey_ecdsamodule.cpp   (contents, props changed)

Added: head/security/py-pycryptopp/files/patch-src_pycryptopp_publickey_ecdsamodule.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/py-pycryptopp/files/patch-src_pycryptopp_publickey_ecdsamodule.cpp	Tue Aug 28 13:28:15 2018	(r478313)
@@ -0,0 +1,15 @@
+src/pycryptopp/publickey/ecdsamodule.cpp:94:16: error: cannot initialize return object of type 'int' with an rvalue of type 'nullptr_t'
+        return NULL;
+               ^~~~
+
+--- src/pycryptopp/publickey/ecdsamodule.cpp.orig	2018-08-28 13:11:32 UTC
++++ src/pycryptopp/publickey/ecdsamodule.cpp
+@@ -91,7 +91,7 @@ VerifyingKey___init__(PyObject* self, PyObject* args, 
+     Py_ssize_t serializedverifyingkeysize = 0;
+ 
+     if (!PyArg_ParseTupleAndKeywords(args, kwdict, "t#:VerifyingKey__init__", const_cast<char**>(kwlist), &serializedverifyingkey, &serializedverifyingkeysize))
+-        return NULL;
++        return 0;
+     assert (serializedverifyingkeysize >= 0);
+ 
+     if (serializedverifyingkeysize != 33) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808281328.w7SDSGkN042860>