summaryrefslogtreecommitdiff
path: root/lang/python/python-pynacl
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-08-05 13:11:25 -0700
committerGitHub <noreply@github.com>2020-08-05 13:11:25 -0700
commit43e054cf87eb3aefba1fae95b5d2f4e18132bb5e (patch)
treebbcaa66d759f7820cbea372d51657523a7f235ca /lang/python/python-pynacl
parentdca6a5b2fd927410295d236097720e9b18e634a2 (diff)
parent79dfbd80168108750697e79b3470f916f85a8f01 (diff)
Merge pull request #13033 from commodo/pynacl-fix
python-pynacl: fix build with new libsodium patch
Diffstat (limited to 'lang/python/python-pynacl')
-rw-r--r--lang/python/python-pynacl/Makefile2
-rw-r--r--lang/python/python-pynacl/patches/001-always-compile-scalar-mult-ed25519.patch13
2 files changed, 14 insertions, 1 deletions
diff --git a/lang/python/python-pynacl/Makefile b/lang/python/python-pynacl/Makefile
index 69ed754dd..3d3d02a2e 100644
--- a/lang/python/python-pynacl/Makefile
+++ b/lang/python/python-pynacl/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=python-pynacl
PKG_VERSION:=1.4.0
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PYPI_NAME:=PyNaCl
PKG_HASH:=54e9a2c849c742006516ad56a88f5c74bf2ce92c9f67435187c3c5953b346505
diff --git a/lang/python/python-pynacl/patches/001-always-compile-scalar-mult-ed25519.patch b/lang/python/python-pynacl/patches/001-always-compile-scalar-mult-ed25519.patch
new file mode 100644
index 000000000..f1920e959
--- /dev/null
+++ b/lang/python/python-pynacl/patches/001-always-compile-scalar-mult-ed25519.patch
@@ -0,0 +1,13 @@
+diff --git a/src/bindings/minimal/crypto_scalarmult.h b/src/bindings/minimal/crypto_scalarmult.h
+index 06ca1ef..9bc3d8e 100644
+--- a/src/bindings/minimal/crypto_scalarmult.h
++++ b/src/bindings/minimal/crypto_scalarmult.h
+@@ -13,7 +13,7 @@
+ * limitations under the License.
+ */
+
+-#ifdef SODIUM_LIBRARY_MINIMAL
++#if 0
+ static const int PYNACL_HAS_CRYPTO_SCALARMULT_ED25519 = 0;
+
+ size_t (*crypto_scalarmult_ed25519_bytes)() = NULL;