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 1SCCiw-0006Hv-7E for garchives@archives.gentoo.org; Mon, 26 Mar 2012 16:24:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 759DBE059C; Mon, 26 Mar 2012 16:24:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 514BDE0512 for ; Mon, 26 Mar 2012 16:23:39 +0000 (UTC) Received: from [10.0.0.33] (89-74-61-34.dynamic.chello.pl [89.74.61.34]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nelchael) by smtp.gentoo.org (Postfix) with ESMTPSA id B606C1B4006; Mon, 26 Mar 2012 16:23:36 +0000 (UTC) Message-ID: <4F709804.8060607@gentoo.org> Date: Mon, 26 Mar 2012 18:23:32 +0200 From: Krzysztof Pawlik Organization: Gentoo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120321 Thunderbird/11.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org CC: justin Subject: Re: [gentoo-dev] New eclass for Python References: <4F4D4380.9070909@gentoo.org> <4F6F6A6A.6050303@gentoo.org> <4F7018CA.80804@gentoo.org> <4F70954D.5000401@gentoo.org> In-Reply-To: <4F70954D.5000401@gentoo.org> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig9668B39126757850C58CFFFA" X-Archives-Salt: e384c41e-5de0-4e4e-8b1e-17a809953a0f X-Archives-Hash: 3788dbb5f6c993062387f9669506d222 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9668B39126757850C58CFFFA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 26/03/12 18:11, Krzysztof Pawlik wrote: > On 26/03/12 09:20, justin wrote: >> On 25/03/12 20:56, Krzysztof Pawlik wrote: >>> On 28/02/12 22:13, Krzysztof Pawlik wrote: >>>> If there are no objections then during the weekend (March 3, 4) I wi= ll add this >>>> to portage (after finishing remaining TODO items, PyPy requires 4G o= f RAM(!!)). >>> >>> Hello, >>> >>> Slightly late due to Real Life=E2=84=A2 but finally it's in the main = tree :) >>> >>> (and yes - I've tested it with pypy - works as expected :) >>> >> >> Hi, >> >> is there any documentation beside the man page somewhere? >=20 > No. >=20 >> I tried to port some ebuilds but as soon I set >> >> PYTHON_COMPAT=3D"python2_7 python2_6 python2_5 pypy1_8" >> >> inherit python-distutils-ng >> >> I get >> >> REQUIRED_USE: USE flag 'python_targets_python3_1' is not in IUSE >> >> Did I do something wrong, or is there something not straight in the ec= lass? >=20 > Can you send me the whole ebuild off-list? >=20 > There are two ebuilds using the eclass that I've used as tests: > http://git.overlays.gentoo.org/gitweb/?p=3Ddev/nelchael.git;a=3Dtree;f=3D= dev-python;h=3Df1a8e00e3e6df33806d8972c8898f1187163bd3d;hb=3DHEAD Ok, found a bug: REQUIRED_USE can't contain elements not in USE, so if yo= u excluded python3_1 from PYTHON_COMPAT it didn't appear in IUSE too -> REQUIRED_USE contained invalid value. Fixed by below patch: nelchael@s-lappy ~/.../gentoo-x86/eclass$ cvs diff Index: python-distutils-ng.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v retrieving revision 1.2 diff -u -r1.2 python-distutils-ng.eclass --- python-distutils-ng.eclass 26 Mar 2012 06:12:53 -0000 1.2 +++ python-distutils-ng.eclass 26 Mar 2012 16:20:52 -0000 @@ -105,11 +105,11 @@ esac } -required_use_str=3D" || ( - python_targets_python2_5 python_targets_python2_6 python_targets_= python2_7 - python_targets_python3_1 python_targets_python3_2 - python_targets_jython2_5 - python_targets_pypy1_7 python_targets_pypy1_8 )" +required_use_str=3D"" +for impl in ${PYTHON_COMPAT}; do + required_use_str=3D"${required_use_str} python_targets_${impl}" +done +required_use_str=3D" || ( ${required_use_str} )" if [[ "${PYTHON_OPTIONAL}" =3D "yes" ]]; then IUSE+=3D"python" REQUIRED_USE+=3D" python? ( ${required_use_str} )" --=20 Krzysztof Pawlik key id: 0xF6A80E46 desktop-misc, java, vim, kernel, python, apache... --------------enig9668B39126757850C58CFFFA 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.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCgAGBQJPcJgEAAoJEBZyv1r2qA5GDVMH/Aq2F0tzr9TAUWGC1DSCNV7N 79NoQQfheL6ay+LTC5B2engKFR7PU5UT2e0u01Af2D8FyymXWgReEr7r910MOyyr c+d5wC1ZgBaNdDm1HKmQH9AQ9AlHS4Dcm5jvNOZTSQrO8NXwkC5goQRsK2Qp7Mp8 +H4M30o4RXwn4PoQoPQpWLMHGtZIoHGP1G7Rk2A4B2/+hgJNhdyfugRMRtuIhyW0 8XQuzB8K0l4sEHEgSXJwCz98nAfEdvX8Q4Bo1j8H8XI49tAqeGi2UfUnyxOruOQs jq6SvXUDo9yqzajP7Z7dhcmbjXbOXilW6D05sw8ixeBGDsH0DgnhVD05nyVOecw= =F0+0 -----END PGP SIGNATURE----- --------------enig9668B39126757850C58CFFFA--