diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-01-23 14:49:37 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-01-23 14:49:37 +0100 |
commit | 574e09d32d9eaa0961a2b97132213e0500deff26 (patch) | |
tree | dc07585e70a729ccbb9e56596a1b9c7daff59caf /net-misc | |
parent | net-libs/ignition-msgs: Require ignition-math:3, bug #601220. (diff) | |
download | gentoo-574e09d32d9eaa0961a2b97132213e0500deff26.tar.gz gentoo-574e09d32d9eaa0961a2b97132213e0500deff26.tar.bz2 gentoo-574e09d32d9eaa0961a2b97132213e0500deff26.zip |
net-misc/freelan: Fix build with boost 1.63, bug #603998
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/freelan/files/boost163.patch | 24 | ||||
-rw-r--r-- | net-misc/freelan/freelan-2.0.ebuild | 5 |
2 files changed, 27 insertions, 2 deletions
diff --git a/net-misc/freelan/files/boost163.patch b/net-misc/freelan/files/boost163.patch new file mode 100644 index 000000000000..33636ef0d0b1 --- /dev/null +++ b/net-misc/freelan/files/boost163.patch @@ -0,0 +1,24 @@ +Index: freelan-2.0/libs/freelan/src/core.cpp +=================================================================== +--- freelan-2.0.orig/libs/freelan/src/core.cpp ++++ freelan-2.0/libs/freelan/src/core.cpp +@@ -1766,7 +1766,8 @@ namespace freelan + { + m_logger(fscp::log_level::information) << "IPv4 address: " << m_configuration.tap_adapter.ipv4_address_prefix_length; + +- tap_config.ipv4.network_address = { m_configuration.tap_adapter.ipv4_address_prefix_length.address(), m_configuration.tap_adapter.ipv4_address_prefix_length.prefix_length() }; ++ asiotap::base_ip_network_address<boost::asio::ip::address_v4> a(m_configuration.tap_adapter.ipv4_address_prefix_length.address(), m_configuration.tap_adapter.ipv4_address_prefix_length.prefix_length()); ++ tap_config.ipv4.network_address = a; + } + else + { +@@ -1778,7 +1779,8 @@ namespace freelan + { + m_logger(fscp::log_level::information) << "IPv6 address: " << m_configuration.tap_adapter.ipv6_address_prefix_length; + +- tap_config.ipv6.network_address = { m_configuration.tap_adapter.ipv6_address_prefix_length.address(), m_configuration.tap_adapter.ipv6_address_prefix_length.prefix_length() }; ++ asiotap::base_ip_network_address<boost::asio::ip::address_v6> a(m_configuration.tap_adapter.ipv6_address_prefix_length.address(), m_configuration.tap_adapter.ipv6_address_prefix_length.prefix_length()); ++ tap_config.ipv6.network_address = a; + } + else + { diff --git a/net-misc/freelan/freelan-2.0.ebuild b/net-misc/freelan/freelan-2.0.ebuild index e6284f27071a..cc4f590784be 100644 --- a/net-misc/freelan/freelan-2.0.ebuild +++ b/net-misc/freelan/freelan-2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -30,7 +30,8 @@ src_prepare() { epatch \ "${FILESDIR}/boost158.patch" \ "${FILESDIR}/mf.patch" \ - "${FILESDIR}/prefix.patch" + "${FILESDIR}/prefix.patch" \ + "${FILESDIR}/boost163.patch" sed -e "s/CXXFLAGS='-O3'/CXXFLAGS=''/" \ -e "s/CXXFLAGS=\['-Werror'\]/CXXFLAGS=[]/" \ |