[ignition-transport3] 02/03: Added a patch to fix build

Jose Luis Rivero jrivero-guest at moszumanska.debian.org
Fri Aug 11 11:09:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

jrivero-guest pushed a commit to branch master
in repository ignition-transport3.

commit 2858300ec58e0738423fbdecab8f0d7a2517a503
Author: Jose Luis Rivero <jrivero at osrfoundation.org>
Date:   Thu Aug 10 18:12:10 2017 +0000

    Added a patch to fix build
---
 debian/patches/0002-fix-equal-operator-gtest.patch | 30 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/0002-fix-equal-operator-gtest.patch b/debian/patches/0002-fix-equal-operator-gtest.patch
new file mode 100644
index 0000000..2867ace
--- /dev/null
+++ b/debian/patches/0002-fix-equal-operator-gtest.patch
@@ -0,0 +1,30 @@
+Description: Declare the boolean operator overload as const to fix Debian build
+Author: Jose Luis Rivero <jrivero at osrfoundation.org>
+Forwarded: https://bitbucket.org/ignitionrobotics/ign-transport/pull-requests/215
+
+diff --git a/include/ignition/transport/Node.hh b/include/ignition/transport/Node.hh
+index 0e7f00e..562e5a5 100644
+--- a/include/ignition/transport/Node.hh
++++ b/include/ignition/transport/Node.hh
+@@ -93,7 +93,7 @@ namespace ignition
+         /// \brief Allows this class to be evaluated as a boolean.
+         /// \return True if valid
+         /// \sa Valid
+-        public: operator bool();
++        public: operator bool() const;
+ 
+         /// \brief Return true if valid information, such as a non-empty
+         /// topic name, is present.
+diff --git a/src/Node.cc b/src/Node.cc
+index 742e6f9..ebcc5fc 100644
+--- a/src/Node.cc
++++ b/src/Node.cc
+@@ -157,7 +157,7 @@ Node::Publisher::~Publisher()
+ }
+ 
+ //////////////////////////////////////////////////
+-Node::Publisher::operator bool()
++Node::Publisher::operator bool() const
+ {
+   return this->Valid();
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 71969d0..2b36784 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-c++11_unconditional
 0003-respect-cmake-c-flags.patch
 0004_use_system_gtest.patch
+0002-fix-equal-operator-gtest.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ignition-transport3.git



More information about the debian-science-commits mailing list