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"