[ros-genpy] 01/03: Add patch for Hurd
Jochen Sprickerhof
jspricke at moszumanska.debian.org
Tue Sep 26 08:39:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
jspricke pushed a commit to branch master
in repository ros-genpy.
commit 8c6a27eb2d448058fe7cf971bc545b1d2c58dc59
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date: Tue Sep 26 09:41:15 2017 +0200
Add patch for Hurd
Closes: #876745
---
.../0002-Fix-exception-handling-on-Hurd.patch | 22 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 23 insertions(+)
diff --git a/debian/patches/0002-Fix-exception-handling-on-Hurd.patch b/debian/patches/0002-Fix-exception-handling-on-Hurd.patch
new file mode 100644
index 0000000..3251bc3
--- /dev/null
+++ b/debian/patches/0002-Fix-exception-handling-on-Hurd.patch
@@ -0,0 +1,22 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Tue, 26 Sep 2017 09:38:37 +0200
+Subject: Fix exception handling on Hurd
+
+Hurd uses a different errno, so testing for the string as well.
+---
+ src/genpy/generator.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/genpy/generator.py b/src/genpy/generator.py
+index 4a70653..773785c 100644
+--- a/src/genpy/generator.py
++++ b/src/genpy/generator.py
+@@ -957,7 +957,7 @@ class Generator(object):
+ # you can't just check first... race condition
+ os.makedirs(outdir)
+ except OSError as e:
+- if e.errno != 17: # file exists
++ if e.errno != 17 and e.strerror != 'File exists': # file exists
+ raise
+ # generate message files for request/response
+ spec = self.spec_loader_fn(msg_context, f, full_type)
diff --git a/debian/patches/series b/debian/patches/series
index de2d3ac..6452401 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-Fix-location-of-genmsg_py.py.patch
+0002-Fix-exception-handling-on-Hurd.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ros/ros-genpy.git
More information about the debian-science-commits
mailing list