From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C81EC138252 for ; Wed, 11 May 2016 08:45:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CECCCE0826; Wed, 11 May 2016 08:45:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0F348E0826 for ; Wed, 11 May 2016 08:45:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 376F5340BA2 for ; Wed, 11 May 2016 08:45:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0EEA4966 for ; Wed, 11 May 2016 08:45:38 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1462956328.333a819caae366e904ced3b01b303da67c2d0dde.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ros/gennodejs/, dev-ros/gennodejs/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ros/gennodejs/files/py3.patch dev-ros/gennodejs/gennodejs-1.0.1.ebuild X-VCS-Directories: dev-ros/gennodejs/ dev-ros/gennodejs/files/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 333a819caae366e904ced3b01b303da67c2d0dde X-VCS-Branch: master Date: Wed, 11 May 2016 08:45:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5066b6ce-e4bd-484d-9dd0-f6c5aceefd4b X-Archives-Hash: 1c579be73991872be6b7e6b12989f4a8 commit: 333a819caae366e904ced3b01b303da67c2d0dde Author: Alexis Ballier gentoo org> AuthorDate: Wed May 11 08:19:32 2016 +0000 Commit: Alexis Ballier gentoo 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 +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" )