From 574e09d32d9eaa0961a2b97132213e0500deff26 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Mon, 23 Jan 2017 14:49:37 +0100 Subject: net-misc/freelan: Fix build with boost 1.63, bug #603998 Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- net-misc/freelan/files/boost163.patch | 24 ++++++++++++++++++++++++ net-misc/freelan/freelan-2.0.ebuild | 5 +++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 net-misc/freelan/files/boost163.patch 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 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 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=[]/" \ -- cgit v1.2.3-65-gdbad