commit: 574e09d32d9eaa0961a2b97132213e0500deff26
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 23 13:49:37 2017 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Jan 23 13:49:37 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=574e09d3
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(-)
diff --git a/net-misc/freelan/files/boost163.patch
b/net-misc/freelan/files/boost163.patch
new file mode 100644
index 00000000..33636ef
--- /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 e6284f2..cc4f590 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=[]/" \