From d18ebdd7ed1139efae62e2a39a867485132658ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 26 Aug 2022 17:00:36 +0700 Subject: [PATCH] libbitcoin-network: rebuild for boost-1.80 --- .../patches/boost-1.80.patch | 76 +++++++++++++++++++ srcpkgs/libbitcoin-network/template | 2 +- 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libbitcoin-network/patches/boost-1.80.patch diff --git a/srcpkgs/libbitcoin-network/patches/boost-1.80.patch b/srcpkgs/libbitcoin-network/patches/boost-1.80.patch new file mode 100644 index 00000000000..fb59ac61723 --- /dev/null +++ b/srcpkgs/libbitcoin-network/patches/boost-1.80.patch @@ -0,0 +1,76 @@ +--- a/src/channel.cpp ++++ b/src/channel.cpp +@@ -147,7 +147,7 @@ void channel::handle_expiration(const co + LOG_DEBUG(LOG_NETWORK) + << "Channel lifetime expired [" << authority() << "]"; + +- stop(error::channel_timeout); ++ stop(error::make_error_code(error::channel_timeout)); + } + + void channel::start_inactivity() +@@ -168,7 +168,7 @@ void channel::handle_inactivity(const co + LOG_DEBUG(LOG_NETWORK) + << "Channel inactivity timeout [" << authority() << "]"; + +- stop(error::channel_timeout); ++ stop(error::make_error_code(error::channel_timeout)); + } + + } // namespace network +--- a/src/proxy.cpp ++++ b/src/proxy.cpp +@@ -150,7 +150,7 @@ void proxy::handle_read_heading(const bo + { + LOG_WARNING(LOG_NETWORK) + << "Invalid heading from [" << authority() << "]"; +- stop(error::bad_stream); ++ stop(error::make_error_code(error::bad_stream)); + return; + } + +@@ -160,7 +160,7 @@ void proxy::handle_read_heading(const bo + LOG_DEBUG(LOG_NETWORK) + << "Invalid heading magic (" << head.magic() << ") from [" + << authority() << "]"; +- stop(error::bad_stream); ++ stop(error::make_error_code(error::bad_stream)); + return; + } + +@@ -170,7 +170,7 @@ void proxy::handle_read_heading(const bo + << "Oversized payload indicated by " << head.command() + << " heading from [" << authority() << "] (" + << head.payload_size() << " bytes)"; +- stop(error::bad_stream); ++ stop(error::make_error_code(error::bad_stream)); + return; + } + +@@ -212,7 +212,7 @@ void proxy::handle_read_payload(const bo + LOG_WARNING(LOG_NETWORK) + << "Invalid " << head.command() << " payload from [" << authority() + << "] bad checksum."; +- stop(error::bad_stream); ++ stop(error::make_error_code(error::bad_stream)); + return; + } + +@@ -250,7 +250,7 @@ void proxy::handle_read_payload(const bo + LOG_WARNING(LOG_NETWORK) + << "Invalid " << head.command() << " payload from [" << authority() + << "] trailing bytes."; +- stop(error::bad_stream); ++ stop(make_error_code(error::bad_stream)); + return; + } + +@@ -333,7 +333,7 @@ void proxy::stop(const code& ec) + + void proxy::stop(const boost_code& ec) + { +- stop(error::boost_to_error_code(ec)); ++ stop(error::make_error_code(error::boost_to_error_code(ec))); + } + + bool proxy::stopped() const diff --git a/srcpkgs/libbitcoin-network/template b/srcpkgs/libbitcoin-network/template index d130facc40d..4f730a81424 100644 --- a/srcpkgs/libbitcoin-network/template +++ b/srcpkgs/libbitcoin-network/template @@ -1,7 +1,7 @@ # Template file for 'libbitcoin-network' pkgname=libbitcoin-network version=3.6.0 -revision=6 +revision=7 build_style=gnu-configure configure_args="--with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib --with-boost=${XBPS_CROSS_BASE}/usr --with-gnu-ld"