summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-05-13 14:21:54 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-05-13 16:07:14 +0200
commita483eb034cafe5d1c17cb37bf7017c8c7f5f8df6 (patch)
tree702da5111c42a8ff59167cff1514ffdf7bf9f5d1 /dev-ros/roscpp
parentdev-ros/roscpp: EAPI7 and drop PYTHON_COMPAT here (diff)
downloadgentoo-a483eb034cafe5d1c17cb37bf7017c8c7f5f8df6.tar.gz
gentoo-a483eb034cafe5d1c17cb37bf7017c8c7f5f8df6.tar.bz2
gentoo-a483eb034cafe5d1c17cb37bf7017c8c7f5f8df6.zip
dev-ros/roscpp: fix build with boost 1.73
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/roscpp')
-rw-r--r--dev-ros/roscpp/files/boost173.patch62
-rw-r--r--dev-ros/roscpp/roscpp-1.15.4.ebuild1
-rw-r--r--dev-ros/roscpp/roscpp-9999.ebuild1
3 files changed, 64 insertions, 0 deletions
diff --git a/dev-ros/roscpp/files/boost173.patch b/dev-ros/roscpp/files/boost173.patch
new file mode 100644
index 000000000000..d31f8c8ff246
--- /dev/null
+++ b/dev-ros/roscpp/files/boost173.patch
@@ -0,0 +1,62 @@
+Index: roscpp/include/ros/timer_manager.h
+===================================================================
+--- roscpp.orig/include/ros/timer_manager.h
++++ roscpp/include/ros/timer_manager.h
+@@ -349,7 +349,7 @@ int32_t TimerManager<T, D, E>::add(const
+ {
+ boost::mutex::scoped_lock lock(waiting_mutex_);
+ waiting_.push_back(info->handle);
+- waiting_.sort(boost::bind(&TimerManager::waitingCompare, this, _1, _2));
++ waiting_.sort(boost::bind(&TimerManager::waitingCompare, this, boost::placeholders::_1, boost::placeholders::_2));
+ }
+
+ new_timer_ = true;
+@@ -416,7 +416,7 @@ void TimerManager<T, D, E>::schedule(con
+
+ waiting_.push_back(info->handle);
+ // waitingCompare requires a lock on the timers_mutex_
+- waiting_.sort(boost::bind(&TimerManager::waitingCompare, this, _1, _2));
++ waiting_.sort(boost::bind(&TimerManager::waitingCompare, this, boost::placeholders::_1, boost::placeholders::_2));
+ }
+
+ new_timer_ = true;
+@@ -490,7 +490,7 @@ void TimerManager<T, D, E>::setPeriod(in
+ // In this case, let next_expected be updated only in updateNext
+
+ info->period = period;
+- waiting_.sort(boost::bind(&TimerManager::waitingCompare, this, _1, _2));
++ waiting_.sort(boost::bind(&TimerManager::waitingCompare, this, boost::placeholders::_1, boost::placeholders::_2));
+ }
+
+ new_timer_ = true;
+Index: roscpp/src/libros/connection_manager.cpp
+===================================================================
+--- roscpp.orig/src/libros/connection_manager.cpp
++++ roscpp/src/libros/connection_manager.cpp
+@@ -66,7 +66,7 @@ void ConnectionManager::start()
+ tcpserver_transport_ = boost::make_shared<TransportTCP>(&poll_manager_->getPollSet());
+ if (!tcpserver_transport_->listen(network::getTCPROSPort(),
+ MAX_TCPROS_CONN_QUEUE,
+- boost::bind(&ConnectionManager::tcprosAcceptConnection, this, _1)))
++ boost::bind(&ConnectionManager::tcprosAcceptConnection, this, boost::placeholders::_1)))
+ {
+ ROS_FATAL("Listen on port [%d] failed", network::getTCPROSPort());
+ ROS_BREAK();
+@@ -142,7 +142,7 @@ void ConnectionManager::addConnection(co
+ boost::mutex::scoped_lock lock(connections_mutex_);
+
+ connections_.insert(conn);
+- conn->addDropListener(boost::bind(&ConnectionManager::onConnectionDropped, this, _1));
++ conn->addDropListener(boost::bind(&ConnectionManager::onConnectionDropped, this, boost::placeholders::_1));
+ }
+
+ void ConnectionManager::onConnectionDropped(const ConnectionPtr& conn)
+@@ -190,7 +190,7 @@ void ConnectionManager::tcprosAcceptConn
+ ConnectionPtr conn(boost::make_shared<Connection>());
+ addConnection(conn);
+
+- conn->initialize(transport, true, boost::bind(&ConnectionManager::onConnectionHeaderReceived, this, _1, _2));
++ conn->initialize(transport, true, boost::bind(&ConnectionManager::onConnectionHeaderReceived, this, boost::placeholders::_1, boost::placeholders::_2));
+ }
+
+ bool ConnectionManager::onConnectionHeaderReceived(const ConnectionPtr& conn, const Header& header)
diff --git a/dev-ros/roscpp/roscpp-1.15.4.ebuild b/dev-ros/roscpp/roscpp-1.15.4.ebuild
index 033a2eb87fd0..8863bf3d38b4 100644
--- a/dev-ros/roscpp/roscpp-1.15.4.ebuild
+++ b/dev-ros/roscpp/roscpp-1.15.4.ebuild
@@ -27,3 +27,4 @@ RDEPEND="
dev-ros/rosgraph_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/boost173.patch" )
diff --git a/dev-ros/roscpp/roscpp-9999.ebuild b/dev-ros/roscpp/roscpp-9999.ebuild
index 033a2eb87fd0..8863bf3d38b4 100644
--- a/dev-ros/roscpp/roscpp-9999.ebuild
+++ b/dev-ros/roscpp/roscpp-9999.ebuild
@@ -27,3 +27,4 @@ RDEPEND="
dev-ros/rosgraph_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/boost173.patch" )