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 1SOBEN-0007go-Lg for garchives@archives.gentoo.org; Sat, 28 Apr 2012 17:14:48 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7325BE05E4; Sat, 28 Apr 2012 17:14:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E046FE05E4 for ; Sat, 28 Apr 2012 17:14:43 +0000 (UTC) Received: from [192.168.0.4] (d14-69-47-19.try.wideopenwest.com [69.14.19.47]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 376401B404F; Sat, 28 Apr 2012 17:14:43 +0000 (UTC) Message-ID: <4F9C257E.1060305@gentoo.org> Date: Sat, 28 Apr 2012 13:14:38 -0400 From: Mike Gilbert User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120422 Thunderbird/11.0.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org MIME-Version: 1.0 To: djc@gentoo.org CC: gentoo-python@lists.gentoo.org Subject: Re: [gentoo-python] Testing dev-lang/python version bumps References: <4F935B10.1030206@gentoo.org> <4F9AB7AB.3050807@gentoo.org> <4F9AD4C5.6060701@gentoo.org> <4F9AD65B.3090903@gentoo.org> In-Reply-To: <4F9AD65B.3090903@gentoo.org> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig9E8ECBE7BF8EEDD35143E2AD" X-Archives-Salt: cdb6e351-9ae4-46b4-979e-ccd0ee40241e X-Archives-Hash: 1d9ad85a21cc6bff9d8a9ea860deb863 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9E8ECBE7BF8EEDD35143E2AD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 04/27/2012 01:24 PM, Mike Gilbert wrote: > On 04/27/2012 01:17 PM, Mike Gilbert wrote: >> On 04/27/2012 12:35 PM, Dirkjan Ochtman wrote: >>>>> 3. Added 61_all_process_data.patch, for which the goal seems somewh= at unclear. >>>> This is some logic for python-wrapper that was in the 2.7.2 patchset= as >>>> well. If you want to drop it, I'm sure that will require some >>>> re-engineering of python-wrapper. >>> >>> Right. Do you know what this fixes, and how/why it will be >>> re-engineered? As long as we don't know these things, I'd prefer to >>> leave the patch out rather than include it. >>> >> >> I have been bitten in the past by removing things that I don't fully >> understand, so I'm trying to avoid doing that. I guess I can drop it a= nd >> see what happens. >> >=20 > I will add investigating this patch to my todo list. Hopefully Arfrever= > can explain the rationale to me, and I can relay that. >=20 > Otherwise, I will have to figure it out the hard way. >=20 Had a chat with Arfrever last night about this. The variables introduced in 61_all_process_data.patch are there to make the scripts created by python_generate_wrapper_scripts as transparent as possible. Specifically, they are used to manipulate sys.argv[0] in python, argv[1] in C, and the "process name" as set by prctl(PR_SET_NAME, ...). This allows /usr/bin/A (wrapper) to call /usr/bin/A-2.7 (real script), but still have /usr/bin/A in sys.argv[0]. This is mainly useful for supporting python scripts which vary their behavior based on sys.argv[0]. The eclean program from gentoolkit does this, for example. That's probably not the best example since it does not use a python.eclass generated wrapper, but it illustrates the concept= =2E The process name is used by utilities like killall to find the process to kill. I believe it is also used in top's display. Arfrever also claims that this should help start-stop-daemon to detect which process to kill, but I have not been able to verify this claim. See bug 286191 for reference. --------------enig9E8ECBE7BF8EEDD35143E2AD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iF4EAREIAAYFAk+cJX8ACgkQC77qH+pIQ6QmNwD/WrafoIvG1nzfNWqxuNVNXjN5 bDnUkaRfw0WXkIawF9IBAJD/nMjETO0gCEO+541sfwUHLnSETz2laXQyntXincZZ =kApd -----END PGP SIGNATURE----- --------------enig9E8ECBE7BF8EEDD35143E2AD--