summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-04-02 11:31:54 +0000
committernia <nia@pkgsrc.org>2022-04-02 11:31:54 +0000
commitb650087ae170214f0369c63eed6a8ec2d86ae23e (patch)
treee561591d9093319d6a0b7b72b2703cbd4fcb7234 /security
parentaf17067fa2bb5f626c181bfe788922273e71e7c9 (diff)
downloadpkgsrc-b650087ae170214f0369c63eed6a8ec2d86ae23e.tar.gz
libstark: fix build
Diffstat (limited to 'security')
-rw-r--r--security/libstark/distinfo4
-rw-r--r--security/libstark/patches/patch-flags.mk11
-rw-r--r--security/libstark/patches/patch-libstark_src_protocols_common_CryptoCommitment_MerkleCommitment.hpp14
3 files changed, 28 insertions, 1 deletions
diff --git a/security/libstark/distinfo b/security/libstark/distinfo
index bae3c727a9c..6f0347a2310 100644
--- a/security/libstark/distinfo
+++ b/security/libstark/distinfo
@@ -1,13 +1,15 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:17:16 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/04/02 11:31:54 nia Exp $
BLAKE2s (libstark-20191018-11c72adf909e259aa20a36317e22108784f6dd73.tar.gz) = 12f4a13efeeb700a92a658c5afce4a8618c63c2e05b595fbd75fb7fafa70805d
SHA512 (libstark-20191018-11c72adf909e259aa20a36317e22108784f6dd73.tar.gz) = 049d0dc9605923f3975127528680a1e2d18c31eebd48aba95b3272d4ae95aec5833250c9094d491d8d8acbb02cc54332d2462203698c203bc42c6a8f72f8a1ad
Size (libstark-20191018-11c72adf909e259aa20a36317e22108784f6dd73.tar.gz) = 358152 bytes
SHA1 (patch-algebra__algebralib-tests__Makefile) = e469a8a03fae847c49bf523dbd65a0d50798484c
SHA1 (patch-algebra__algebralib__src__ErrorHandling.cpp) = 3343a878efc35ee4001ffeea8e10bd9f02244863
+SHA1 (patch-flags.mk) = 5ab574b367afc3fcff4b35007e349a9c93cb4ce4
SHA1 (patch-libstark-tests__Makefile) = 70c4e50c0cea2890d1972c652c294a82658571e6
SHA1 (patch-libstark__src__common__Utils__ErrorHandling.cpp) = c3ee3bfbbe078b80ef81a2d9ff1a182a21088df0
SHA1 (patch-libstark__src__protocols__Ali__prover.cpp) = 68b1a7827c0a821bb4e5e2dcc5a37ffca7f06977
+SHA1 (patch-libstark_src_protocols_common_CryptoCommitment_MerkleCommitment.hpp) = c2b4dcfe1db7f2d1740b747178376767b59c5fbd
SHA1 (patch-starkdpm_Makefile) = cf8b105b16d4fb2d4988ab028e4e8d0f1b7801dc
SHA1 (patch-tinyram__gadgetlib__gadgetlib__infrastructure.cpp) = 4d0f10b58e2cc4de0fe54add60f7490ea3d83872
SHA1 (patch-tinyram__stark-tinyram-tests__Makefile) = 420e0906d6fb871704ccf5f7ab4ae23a1fb46667
diff --git a/security/libstark/patches/patch-flags.mk b/security/libstark/patches/patch-flags.mk
new file mode 100644
index 00000000000..7c968bdca53
--- /dev/null
+++ b/security/libstark/patches/patch-flags.mk
@@ -0,0 +1,11 @@
+$NetBSD: patch-flags.mk,v 1.1 2022/04/02 11:31:54 nia Exp $
+
+Honor CFLAGS. Don't attempt to tune to the build machine.
+
+--- flags.mk.orig 2018-12-11 08:57:02.000000000 +0000
++++ flags.mk
+@@ -1,3 +1,3 @@
+ CC=g++
+ CPPFLAGS=-std=c++11
+-CFLAGS=-O3 -g -Wall -fmessage-length=0 -fopenmp -maes -msse4 -mtune=native
++CFLAGS+=-Wall -fopenmp -maes -msse4
diff --git a/security/libstark/patches/patch-libstark_src_protocols_common_CryptoCommitment_MerkleCommitment.hpp b/security/libstark/patches/patch-libstark_src_protocols_common_CryptoCommitment_MerkleCommitment.hpp
new file mode 100644
index 00000000000..3ee373883cc
--- /dev/null
+++ b/security/libstark/patches/patch-libstark_src_protocols_common_CryptoCommitment_MerkleCommitment.hpp
@@ -0,0 +1,14 @@
+$NetBSD: patch-libstark_src_protocols_common_CryptoCommitment_MerkleCommitment.hpp,v 1.1 2022/04/02 11:31:54 nia Exp $
+
+Add missing include.
+
+--- libstark/src/protocols/common/CryptoCommitment/MerkleCommitment.hpp.orig 2018-12-11 08:57:02.000000000 +0000
++++ libstark/src/protocols/common/CryptoCommitment/MerkleCommitment.hpp
+@@ -6,6 +6,7 @@
+ #include <cstring>
+ #include <map>
+ #include <set>
++#include <string>
+
+ namespace libstark{
+ namespace Protocols{