New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental feature: remote proving service #2120
Changes from 2 commits
f017021
0a720ee
220f79b
efb34b5
1cc3f10
424bbb7
63eabeb
1bfe584
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# =========================================================================== | ||
# https://www.gnu.org/software/autoconf-archive/ax_boost_regex.html | ||
# =========================================================================== | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_BOOST_REGEX | ||
# | ||
# DESCRIPTION | ||
# | ||
# Test for Regex library from the Boost C++ libraries. The macro requires | ||
# a preceding call to AX_BOOST_BASE. Further documentation is available at | ||
# <http://randspringer.de/boost/index.html>. | ||
# | ||
# This macro calls: | ||
# | ||
# AC_SUBST(BOOST_REGEX_LIB) | ||
# | ||
# And sets: | ||
# | ||
# HAVE_BOOST_REGEX | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> | ||
# Copyright (c) 2008 Michael Tindal | ||
# | ||
# Copying and distribution of this file, with or without modification, are | ||
# permitted in any medium without royalty provided the copyright notice | ||
# and this notice are preserved. This file is offered as-is, without any | ||
# warranty. | ||
|
||
#serial 23 | ||
|
||
AC_DEFUN([AX_BOOST_REGEX], | ||
[ | ||
AC_ARG_WITH([boost-regex], | ||
AS_HELP_STRING([--with-boost-regex@<:@=special-lib@:>@], | ||
[use the Regex library from boost - it is possible to specify a certain library for the linker | ||
e.g. --with-boost-regex=boost_regex-gcc-mt-d-1_33_1 ]), | ||
[ | ||
if test "$withval" = "no"; then | ||
want_boost="no" | ||
elif test "$withval" = "yes"; then | ||
want_boost="yes" | ||
ax_boost_user_regex_lib="" | ||
else | ||
want_boost="yes" | ||
ax_boost_user_regex_lib="$withval" | ||
fi | ||
], | ||
[want_boost="yes"] | ||
) | ||
|
||
if test "x$want_boost" = "xyes"; then | ||
AC_REQUIRE([AC_PROG_CC]) | ||
CPPFLAGS_SAVED="$CPPFLAGS" | ||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" | ||
export CPPFLAGS | ||
|
||
LDFLAGS_SAVED="$LDFLAGS" | ||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" | ||
export LDFLAGS | ||
|
||
AC_CACHE_CHECK(whether the Boost::Regex library is available, | ||
ax_cv_boost_regex, | ||
[AC_LANG_PUSH([C++]) | ||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/regex.hpp> | ||
]], | ||
[[boost::regex r(); return 0;]])], | ||
ax_cv_boost_regex=yes, ax_cv_boost_regex=no) | ||
AC_LANG_POP([C++]) | ||
]) | ||
if test "x$ax_cv_boost_regex" = "xyes"; then | ||
AC_DEFINE(HAVE_BOOST_REGEX,,[define if the Boost::Regex library is available]) | ||
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` | ||
if test "x$ax_boost_user_regex_lib" = "x"; then | ||
for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.dylib* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.dylib.*;\1;' -e 's;^lib\(boost_regex.*\)\.a.*$;\1;'` ; do | ||
ax_lib=${libextension} | ||
AC_CHECK_LIB($ax_lib, exit, | ||
[BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], | ||
[link_regex="no"]) | ||
done | ||
if test "x$link_regex" != "xyes"; then | ||
for libextension in `ls $BOOSTLIBDIR/boost_regex*.dll* $BOOSTLIBDIR/boost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a.*$;\1;'` ; do | ||
ax_lib=${libextension} | ||
AC_CHECK_LIB($ax_lib, exit, | ||
[BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], | ||
[link_regex="no"]) | ||
done | ||
fi | ||
|
||
else | ||
for ax_lib in $ax_boost_user_regex_lib boost_regex-$ax_boost_user_regex_lib; do | ||
AC_CHECK_LIB($ax_lib, main, | ||
[BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], | ||
[link_regex="no"]) | ||
done | ||
fi | ||
if test "x$ax_lib" = "x"; then | ||
AC_MSG_ERROR(Could not find a version of the Boost::Regex library!) | ||
fi | ||
if test "x$link_regex" != "xyes"; then | ||
AC_MSG_ERROR(Could not link against $ax_lib !) | ||
fi | ||
fi | ||
|
||
CPPFLAGS="$CPPFLAGS_SAVED" | ||
LDFLAGS="$LDFLAGS_SAVED" | ||
fi | ||
]) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package=azmq | ||
$(package)_version=1.0 | ||
$(package)_download_path=https://github.com/zeromq/$(package)/archive/ | ||
$(package)_file_name=$(package)-$($(package)_version).tar.gz | ||
$(package)_download_file=v$($(package)_version).tar.gz | ||
$(package)_sha256_hash=c204c731bcb7810ca3a2c5515e88974ef2ff8d0589e60a897dc238b369180e7b | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. latest version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like it, although there have been numerous commits to master since then. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Not to worry, that was before the 1.0 release. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. zeromq/azmq#129 is a reliability bug. |
||
$(package)_dependencies=boost zeromq | ||
$(package)_patches=libsodium.patch | ||
|
||
define $(package)_preprocess_cmds | ||
patch -p1 < $($(package)_patch_dir)/libsodium.patch && \ | ||
mkdir build | ||
endef | ||
|
||
define $(package)_config_cmds | ||
cd build; cmake .. -DCMAKE_INSTALL_PREFIX=/ -DBOOST_ROOT=$(host_prefix) -DZMQ_ROOT=$(host_prefix) | ||
endef | ||
|
||
define $(package)_build_cmds | ||
cd build; $(MAKE) VERBOSE=1 | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
cd build; $(MAKE) VERBOSE=1 DESTDIR=$($(package)_staging_prefix_dir) install | ||
endef |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package=cppzmq | ||
$(package)_version=4.2.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. looks like 4.2.2 is out: https://github.com/zeromq/cppzmq/tree/v4.2.2 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ACK, will add a commit to bump this dependency (and |
||
$(package)_download_path=https://github.com/zeromq/$(package)/archive/ | ||
$(package)_file_name=$(package)-$($(package)_version).tar.gz | ||
$(package)_download_file=v$($(package)_version).tar.gz | ||
$(package)_sha256_hash=11c699001659336c7d46779f714f3e9d15d63343cd2ae7c1905e4bf58907cef9 | ||
$(package)_dependencies=zeromq | ||
|
||
define $(package)_stage_cmds | ||
mkdir $($(package)_staging_dir)$(host_prefix)/include/ && \ | ||
cp zmq.hpp $($(package)_staging_dir)$(host_prefix)/include/ | ||
endef |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,10 @@ $(package)_version=4.2.1 | |
$(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)/ | ||
$(package)_file_name=$(package)-$($(package)_version).tar.gz | ||
$(package)_sha256_hash=27d1e82a099228ee85a7ddb2260f40830212402c605a4a10b5e5498a7e0e9d03 | ||
$(package)_dependencies=libsodium | ||
|
||
define $(package)_set_vars | ||
$(package)_config_opts=--without-documentation --disable-shared --disable-curve | ||
$(package)_config_opts=--without-documentation --disable-shared --with-libsodium | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you explain this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why were we disabling CurveMQ before? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We inherited that from Bitcoin Core when we pulled in the ZMQ notification API, presumably because they weren't using it (and so we'd likely have set the same options, like we do with OpenSSL, to reduce the code we are depending on). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this affect compatibility with any clients that were previously using ZMQ without authentication? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No - the server has to explicitly enable CurveMQ, and this PR does not do that for the ZMQ notifications API. |
||
$(package)_config_opts_linux=--with-pic | ||
$(package)_cxxflags=-std=c++11 | ||
endef | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff -ur azmq-1.0-orig/CMakeLists.txt azmq-1.0/CMakeLists.txt | ||
--- azmq-1.0-orig/CMakeLists.txt 2017-09-25 12:08:31.487969892 +0100 | ||
+++ azmq-1.0/CMakeLists.txt 2017-09-25 12:13:45.449318390 +0100 | ||
@@ -49,18 +49,5 @@ | ||
${ZeroMQ_INCLUDE_DIRS} | ||
${PROJECT_SOURCE_DIR}) | ||
|
||
-enable_testing() | ||
- | ||
-macro(add_catch_test name) | ||
- if (TEST_REPORT_FORMAT) | ||
- add_test(NAME ${name} COMMAND ${name} -r ${TEST_REPORT_FORMAT} -o "${name}.test_out.xml") | ||
- else() | ||
- add_test(NAME ${name} COMMAND ${name}) | ||
- endif() | ||
-endmacro() | ||
- | ||
-add_subdirectory(test) | ||
-add_subdirectory(doc) | ||
- | ||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/azmq | ||
DESTINATION include) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this to contrib/debian/copyright:
Actually there should be similar entries for all of the files under build-aux/m4:
build-aux/m4/l_atomic.m4 comes from Filezilla which is GPLv2. This is a problem, which I will file another ticket for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That other ticket is #2827.