dev-ros/rosconsole: fix build with latest boost/gcc6, bug #595818. Patch by Peter...
authorAlexis Ballier <aballier@gentoo.org>
Wed, 5 Oct 2016 15:08:39 +0000 (17:08 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 5 Oct 2016 15:09:25 +0000 (17:09 +0200)
Package-Manager: portage-2.3.1

dev-ros/rosconsole/files/vector.patch [new file with mode: 0644]
dev-ros/rosconsole/rosconsole-1.12.5.ebuild

diff --git a/dev-ros/rosconsole/files/vector.patch b/dev-ros/rosconsole/files/vector.patch
new file mode 100644 (file)
index 0000000..0b62a88
--- /dev/null
@@ -0,0 +1,20 @@
+commit 74674c49a64abbdcdd5aeea016997af2959c6f05
+Author: Hodorgasm <nsane457@gmail.com>
+Date:   Mon Oct 3 20:32:20 2016 -0400
+
+    Add '#Include <vector>' to fix building on GCC-6
+    
+    Don't rely on transitive header inclusion to declare std::vector as building with GCC-6 fails due to no '#Include <vector>' statement.
+
+diff --git a/tools/rosconsole/include/ros/console.h b/tools/rosconsole/include/ros/console.h
+index 4d2a86b..28901d7 100644
+--- a/tools/rosconsole/include/ros/console.h
++++ b/tools/rosconsole/include/ros/console.h
+@@ -40,6 +40,7 @@
+ #include <cstdarg>
+ #include <ros/macros.h>
+ #include <map>
++#include <vector>
+ 
+ #ifdef ROSCONSOLE_BACKEND_LOG4CXX
+ #include "log4cxx/level.h"
index 39a48ae9c7eca7950e39a3eee018b26084c5fb4d..a3e85a17bf00f4dcd1ed1a68db2b77a834465ce5 100644 (file)
@@ -24,6 +24,7 @@ RDEPEND="
        !log4cxx? ( glog? ( dev-cpp/glog ) )
 "
 DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/vector.patch" )
 
 src_configure() {
        local ROSCONSOLE_BACKEND=""