libbitcoin-network: rebuild for boost-1.80
This commit is contained in:
parent
1d931147e9
commit
d18ebdd7ed
2 changed files with 77 additions and 1 deletions
76
srcpkgs/libbitcoin-network/patches/boost-1.80.patch
Normal file
76
srcpkgs/libbitcoin-network/patches/boost-1.80.patch
Normal file
|
@ -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
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libbitcoin-network'
|
# Template file for 'libbitcoin-network'
|
||||||
pkgname=libbitcoin-network
|
pkgname=libbitcoin-network
|
||||||
version=3.6.0
|
version=3.6.0
|
||||||
revision=6
|
revision=7
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib
|
configure_args="--with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib
|
||||||
--with-boost=${XBPS_CROSS_BASE}/usr --with-gnu-ld"
|
--with-boost=${XBPS_CROSS_BASE}/usr --with-gnu-ld"
|
||||||
|
|
Loading…
Add table
Reference in a new issue