* [gentoo-commits] repo/gentoo:master commit in: dev-ros/gennodejs/, dev-ros/gennodejs/files/
@ 2016-05-11 8:45 Alexis Ballier
0 siblings, 0 replies; only message in thread
From: Alexis Ballier @ 2016-05-11 8:45 UTC (permalink / raw
To: gentoo-commits
commit: 333a819caae366e904ced3b01b303da67c2d0dde
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Wed May 11 08:19:32 2016 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Wed May 11 08:45:28 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=333a819c
dev-ros/gennodejs: apply upstream patch to fix py3 compatibility
Package-Manager: portage-2.2.28
dev-ros/gennodejs/files/py3.patch | 28 ++++++++++++++++++++++++++++
dev-ros/gennodejs/gennodejs-1.0.1.ebuild | 1 +
2 files changed, 29 insertions(+)
diff --git a/dev-ros/gennodejs/files/py3.patch b/dev-ros/gennodejs/files/py3.patch
new file mode 100644
index 0000000..900ad52
--- /dev/null
+++ b/dev-ros/gennodejs/files/py3.patch
@@ -0,0 +1,28 @@
+commit bbefafa66ec031f81ca1d7b0b904d6ddc1bab8d9
+Author: Maarten de Vries <maarten@de-vri.es>
+Date: Thu May 5 23:08:22 2016 +0200
+
+ Fix python3 incompatibility in generate.py.
+
+diff --git a/src/gennodejs/generate.py b/src/gennodejs/generate.py
+index cf372d4..5245998 100644
+--- a/src/gennodejs/generate.py
++++ b/src/gennodejs/generate.py
+@@ -14,6 +14,8 @@
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+
++from __future__ import print_function
++
+ import sys
+ import os
+ import traceback
+@@ -212,7 +214,7 @@ def find_requires(spec):
+ else:
+ path = find_path_for_package(field_type_package)
+ if path is None:
+- print 'Couldn\'t find path for type ', field.base_type
++ print('Couldn\'t find path for type {}'.format(field.base_type))
+ else:
+ found_packages[field_type_package] = path
+
diff --git a/dev-ros/gennodejs/gennodejs-1.0.1.ebuild b/dev-ros/gennodejs/gennodejs-1.0.1.ebuild
index a005a24..78fd900 100644
--- a/dev-ros/gennodejs/gennodejs-1.0.1.ebuild
+++ b/dev-ros/gennodejs/gennodejs-1.0.1.ebuild
@@ -18,3 +18,4 @@ IUSE=""
RDEPEND="dev-ros/genmsg[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/py3.patch" )
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-11 8:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-11 8:45 [gentoo-commits] repo/gentoo:master commit in: dev-ros/gennodejs/, dev-ros/gennodejs/files/ Alexis Ballier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox