sci-electronics/gazebo: fix build with tinyxml2 4.0
authorAlexis Ballier <aballier@gentoo.org>
Thu, 4 Aug 2016 12:48:56 +0000 (14:48 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Thu, 4 Aug 2016 12:49:03 +0000 (14:49 +0200)
Package-Manager: portage-2.3.0

sci-electronics/gazebo/files/tinyxml2.patch [new file with mode: 0644]
sci-electronics/gazebo/gazebo-7.3.1.ebuild

diff --git a/sci-electronics/gazebo/files/tinyxml2.patch b/sci-electronics/gazebo/files/tinyxml2.patch
new file mode 100644 (file)
index 0000000..b829201
--- /dev/null
@@ -0,0 +1,22 @@
+Index: gazebo-7.3.1/gazebo/util/LogPlay.cc
+===================================================================
+--- gazebo-7.3.1.orig/gazebo/util/LogPlay.cc
++++ gazebo-7.3.1/gazebo/util/LogPlay.cc
+@@ -72,7 +72,7 @@ void LogPlay::Open(const std::string &_l
+ 
+   // Flag use to indicate if a parser failure has occurred
+   bool xmlParserFail = this->dataPtr->xmlDoc.LoadFile(_logFile.c_str()) !=
+-    tinyxml2::XML_NO_ERROR;
++    tinyxml2::XML_SUCCESS;
+ 
+   // Parse the log file
+   if (xmlParserFail)
+@@ -105,7 +105,7 @@ void LogPlay::Open(const std::string &_l
+ 
+           // Retry loading the log file.
+           xmlParserFail = this->dataPtr->xmlDoc.LoadFile(_logFile.c_str()) !=
+-            tinyxml2::XML_NO_ERROR;
++            tinyxml2::XML_SUCCESS;
+         }
+       }
+     }
index c3b8b54a0534a01bbea52a77dac7922cee9fb508..cdc015cda205e60df74b54308c935f1e6cd6b968 100644 (file)
@@ -54,6 +54,7 @@ DEPEND="${RDEPEND}
        test? ( dev-libs/libxslt )
 "
 CMAKE_BUILD_TYPE=RelWithDebInfo
+PATCHES=( "${FILESDIR}/tinyxml2.patch" )
 
 src_configure() {
        # doesnt build without it