summaryrefslogtreecommitdiff
path: root/lang/python/python-pynacl/patches
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2020-08-05 08:39:50 +0300
committerAlexandru Ardelean <ardeleanalex@gmail.com>2020-08-05 08:39:51 +0300
commit79dfbd80168108750697e79b3470f916f85a8f01 (patch)
tree6f9f21088c9aa547a12ef9e647118a1f998dbed0 /lang/python/python-pynacl/patches
parent7f620401afb185abac26e5e186150f5b53ea6ed0 (diff)
python-pynacl: fix build with new libsodium patch
Fixes https://github.com/openwrt/packages/issues/13016 Patch [1] broke compilation for python-pynacl. The fix is to patch PyNaCl to consider that PYNACL_HAS_CRYPTO_SCALARMULT_ED25519 is always available. [1] https://github.com/openwrt/packages/commit/3ef28a4ab0cb60877c4ec68f5ba8c276021a1ab6 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/python-pynacl/patches')
-rw-r--r--lang/python/python-pynacl/patches/001-always-compile-scalar-mult-ed25519.patch13
1 files changed, 13 insertions, 0 deletions
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;