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 1OL9Ta-0006GZ-Oq for garchives@archives.gentoo.org; Sun, 06 Jun 2010 06:36:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CB5CE09F1; Sun, 6 Jun 2010 06:36:48 +0000 (UTC) Received: from newton.gmurray.org.uk (newton.gmurray.org.uk [81.2.114.237]) by pigeon.gentoo.org (Postfix) with ESMTP id 22DB8E088C for ; Sun, 6 Jun 2010 06:36:28 +0000 (UTC) Received: from newton.gmurray.org.uk (localhost [127.0.0.1]) by newton.gmurray.org.uk (8.14.4/8.14.4) with ESMTP id o566aRda031150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 6 Jun 2010 07:36:27 +0100 X-DKIM: OpenDKIM Filter v2.1.0 newton.gmurray.org.uk o566aRda031150 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmurray.org.uk; s=in200703; t=1275806187; bh=9dt+bTQkUVAmwHxAgzuyu4gyiR0zz/ndyTt5+MG7OuM=; l=1194; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=CtzhzfQD21HNfTXBKKYIVIb6iv9eMz5y8q4isUnSQHz3KDSdNBB4kjw3JulGhYzHW hOuJ1NxrBng39db5MDl9QMHMmfmsZVSXkH5yr+XtKHvXF2Hvo2WDlIRJOGFMWx6uYw FwY+uTh1qjgdAJkyHKmxiO6WZf2rktOjPgKhxNE0= X-BATV: Sendmail BATV Filter v0.4.0 newton o566aRda031150 Received: (from graham@localhost) by newton.gmurray.org.uk (8.14.4/8.14.4/Submit) id o566aQUd031149; Sun, 6 Jun 2010 07:36:26 +0100 X-Authentication-Warning: newton.gmurray.org.uk: graham set sender to graham@gmurray.org.uk using -f From: Graham Murray To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Actions of python team, especially Arfrever wrt python eclass and python-3* References: <4BFE82C3.2050400@gentoo.org> <201006051644.20150.Arfrever@gentoo.org> <4C0A720C.20300@gentoo.org> <20100605183154.GA19296@boostbox> <4C0AD7EC.2010700@gentoo.org> <20100605233806.GA17168@boostbox> <4C0B017B.40907@gentoo.org> Date: Sun, 06 Jun 2010 07:36:26 +0100 In-Reply-To: <4C0B017B.40907@gentoo.org> (Thomas Sachau's message of "Sun, 06 Jun 2010 04:01:31 +0200") Message-ID: <87r5kkacr9.fsf@newton.gmurray.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (i686-pc-linux-gnu) 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 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: clamav-milter 0.96.1 at newton X-Virus-Status: Clean X-Archives-Salt: 62743f0c-03c4-4e7c-82d0-099b7f15232e X-Archives-Hash: 58504e7cdc9a368a52536f77b03955a9 Thomas Sachau writes: > Since python-3* is currently useless and not required for any package, the dependency should by > default only pull in python-2* like this: > > =dev-lang/python-2* > > With that, the default way would not pull in a package, which is not needed or used. And if there > will be any package, which really requires python-3*, it simply requests it in (R)DEPEND of the > ebuild, which then would overwrite the default value of the eclass and pull in python-3*. That would not work. For example if package 'bar' supports both python-2 and python-3, your mechanism will only build in python-2 support. That is fine until package 'foo' comes along which uses 'bar' but also requires python-3 - thus not only must python-3 be pulled in as a result of foo's (R)DEPEND but also 'bar' must be rebuilt with python-3 support. This could be done by adding python2 and python3 USE flags to packages which support both and only have python2 enabled by default. Then 'foo' could have a conditional (R)DEPEMD on 'bar[python3]', but that would require the user to change the USE flags whereas the current system handles everything automatically.