commit: 6f0405341f1ce0f33a085827bd26965cae25aabb
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 27 09:58:54 2017 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Jun 27 10:01:27 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f040534
dev-ros/urdf: avoid forward declaration of class
Package-Manager: Portage-2.3.6, Repoman-2.3.2
dev-ros/urdf/files/forward_decl.patch | 17 +++++++++++++++++
dev-ros/urdf/urdf-1.12.10.ebuild | 2 ++
2 files changed, 19 insertions(+)
diff --git a/dev-ros/urdf/files/forward_decl.patch
b/dev-ros/urdf/files/forward_decl.patch
new file mode 100644
index 00000000000..8aef13eb92d
--- /dev/null
+++ b/dev-ros/urdf/files/forward_decl.patch
@@ -0,0 +1,17 @@
+Index: urdf/urdfdom_compatibility.h.in
+===================================================================
+--- urdf.orig/urdfdom_compatibility.h.in
++++ urdf/urdfdom_compatibility.h.in
+@@ -85,10 +85,12 @@ URDF_TYPEDEF_CLASS_POINTER(Model);
+ #include <urdf_world/types.h>
+
+ namespace urdf {
++class ModelInterface;
+ typedef std::shared_ptr<ModelInterface> ModelInterfaceSharedPtr;
+ typedef std::shared_ptr<const ModelInterface> ModelInterfaceConstSharedPtr;
+ typedef std::weak_ptr<ModelInterface> ModelInterfaceWeakPtr;
+
++class Model;
+ typedef std::shared_ptr<Model> ModelSharedPtr;
+ typedef std::shared_ptr<const Model> ModelConstSharedPtr;
+ typedef std::weak_ptr<Model> ModelWeakPtr;
diff --git a/dev-ros/urdf/urdf-1.12.10.ebuild b/dev-ros/urdf/urdf-1.12.10.ebuild
index 7e228f156c7..260fee45fc0 100644
--- a/dev-ros/urdf/urdf-1.12.10.ebuild
+++ b/dev-ros/urdf/urdf-1.12.10.ebuild
@@ -27,3 +27,5 @@ RDEPEND="
DEPEND="${RDEPEND}
dev-ros/cmake_modules
test? ( dev-ros/rostest[${PYTHON_USEDEP}] dev-cpp/gtest )"
+
+PATCHES=( "${FILESDIR}/forward_decl.patch" )