From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RWJjs-0007V3-EG for garchives@archives.gentoo.org; Fri, 02 Dec 2011 03:24:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61A9C21C03A; Fri, 2 Dec 2011 03:24:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 16EF321C03A for ; Fri, 2 Dec 2011 03:24:21 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8D48D1B4005 for ; Fri, 2 Dec 2011 03:24:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 9344D80044 for ; Fri, 2 Dec 2011 03:24:19 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/process.py X-VCS-Directories: pym/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: caea9ee807eba03118564030a166f9856d4439de Date: Fri, 2 Dec 2011 03:24:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 06a3b010-fd61-436a-99a0-18b04df10374 X-Archives-Hash: 336af9ffba9f0f5aa82ffcfe1c4905cf commit: caea9ee807eba03118564030a166f9856d4439de Author: Zac Medico gentoo org> AuthorDate: Fri Dec 2 03:24:10 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Dec 2 03:24:10 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dcaea9ee8 process._exec: tweak opt_name for PyPy PyPy 1.7 will die due to "libary path not found" if argv[0] does not contain the full path of the binary. --- pym/portage/process.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/pym/portage/process.py b/pym/portage/process.py index 3c15370..1ee5b9a 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -343,7 +343,12 @@ def _exec(binary, mycommand, opt_name, fd_pipes, env= , gid, groups, uid, umask, # If the process we're creating hasn't been given a name # assign it the name of the executable. if not opt_name: - opt_name =3D os.path.basename(binary) + if binary is portage._python_interpreter: + # NOTE: PyPy 1.7 will die due to "libary path not found" if argv[0] + # does not contain the full path of the binary. + opt_name =3D binary + else: + opt_name =3D os.path.basename(binary) =20 # Set up the command's argument list. myargs =3D [opt_name]