dev-ros/urdf: avoid forward declaration of class
authorAlexis Ballier <aballier@gentoo.org>
Tue, 27 Jun 2017 09:58:54 +0000 (11:58 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 27 Jun 2017 10:01:27 +0000 (12:01 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-ros/urdf/files/forward_decl.patch [new file with mode: 0644]
dev-ros/urdf/urdf-1.12.10.ebuild

diff --git a/dev-ros/urdf/files/forward_decl.patch b/dev-ros/urdf/files/forward_decl.patch
new file mode 100644 (file)
index 0000000..8aef13e
--- /dev/null
@@ -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;
index 7e228f156c7d4fdd83c9e435387b276e759a734a..260fee45fc0f42875099a5318c95a5f65e4a3668 100644 (file)
@@ -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" )