From: "Harald van Dijk" <truedfx@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Actions of python team, especially Arfrever wrt python eclass and python-3*
Date: Sun, 6 Jun 2010 01:38:06 +0200 [thread overview]
Message-ID: <20100605233806.GA17168@boostbox> (raw)
In-Reply-To: <4C0AD7EC.2010700@gentoo.org>
On Sun, Jun 06, 2010 at 01:03:48AM +0200, Thomas Sachau wrote:
> Am 05.06.2010 20:31, schrieb Harald van Dijk:
> > On Sat, Jun 05, 2010 at 05:49:08PM +0200, Thomas Sachau wrote:
> >> If any package does inherit python or distutils eclass, then those eclasses do pull in
> >> "dev-lang/python", which is unversioned, so it will always pull in the latest version, in this case
> >> python-3*. You could change this, so it allows any major installed slot to satisfy the python
> >> dependency.
> >
> > A dependency on dev-lang/python *is* satisfied by any slot, any version. You've
> > been told so already, if I recall correctly.
>
> Every slot and every version *should* satisfy a "dev-lang/python" dependency, but currently such
> unspecified version dependency does automaticly pull in the latest version/slot, which in case of
> python does mean python-3*, even when you have e.g. python:2.6 installed.
Fine, I'll be as explicit as possible: not quite. I have a Python 3-free system. I created
a dummy ebuild that does nothing but pull in unversioned python. Let's
see how it behaves.
$ emerge -pv python
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS ] dev-lang/python-3.1.2-r3 [2.6.5-r2] USE="gdbm ipv6 ncurses readline sqlite ssl threads tk (wide-unicode) xml -build -doc -examples -wininst" ELIBC="(-uclibc)" 9,558 kB
$ cat test-2.0.ebuild
KEYWORDS="~amd64"
SLOT="0"
DEPEND="dev-lang/python"
$ emerge -pv test
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] test/test-2.0 0 kB [1]
Total: 1 package (1 new), Size of downloads: 0 kB
Portage tree and overlays:
[0] /usr/portage
[1] /etc/portage/overlay
Note how python 3 is *not* pulled in, despite an unversioned dependency on dev-lang/python.
You only get that if you tell portage to try and update dependencies as
well, and yes, if you do that, it's only fair that it attempts to update python.
next prev parent reply other threads:[~2010-06-05 23:38 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-27 14:33 [gentoo-dev] Actions of python team, especially Arfrever wrt python eclass and python-3* Thomas Sachau
2010-05-27 15:30 ` Gilles Dartiguelongue
2010-06-05 14:43 ` Arfrever Frehtes Taifersar Arahesis
2010-06-05 15:49 ` Thomas Sachau
2010-06-05 18:31 ` Harald van Dijk
2010-06-05 23:04 ` Thomas Sachau
2010-06-05 23:38 ` Harald van Dijk [this message]
2010-06-06 2:01 ` Thomas Sachau
2010-06-06 2:19 ` Sebastian Pipping
2010-06-06 7:37 ` Michał Górny
2010-06-06 11:14 ` Dale
2010-06-06 11:23 ` Thomas Sachau
2010-06-06 6:36 ` Graham Murray
2010-06-06 10:40 ` Thomas Sachau
2010-06-06 11:09 ` Matti Bickel
2010-06-06 11:37 ` Thomas Sachau
2010-06-06 11:50 ` Domen Kožar
2010-06-06 12:31 ` Thomas Sachau
2010-06-06 12:41 ` Thomas Sachau
2010-06-06 13:35 ` Domen Kožar
2010-06-06 13:51 ` Thomas Sachau
2010-06-07 1:22 ` Brian Harring
2010-06-06 13:44 ` Arfrever Frehtes Taifersar Arahesis
2010-06-06 13:54 ` Thomas Sachau
2010-06-06 14:07 ` Arfrever Frehtes Taifersar Arahesis
2010-06-07 5:53 ` Alec Warner
2010-06-06 16:36 ` Hans de Graaff
2010-06-06 0:08 ` Sebastian Pipping
2010-06-06 11:48 ` Rémi Cardona
2010-06-05 20:06 ` Sebastian Pipping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100605233806.GA17168@boostbox \
--to=truedfx@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox