Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Samba wants to downgrade my python....
Date: Sun, 16 Sep 2012 11:26:27
Message-Id: 20120916132101.147a750f@khamul.example.com
In Reply to: [gentoo-user] Samba wants to downgrade my python.... by Andrew Lowe
1 On Sun, 16 Sep 2012 18:59:33 +0800
2 Andrew Lowe <agl@×××××××.au> wrote:
3
4 > Hi all,
5 > I've got a media server that I'm in the process of installing
6 > Samba on. When I do:
7 >
8 > emerge -NuD --pretend samba
9 >
10 > I get a list of stuff that portage wants to install, including
11 > Python, V2.7.3, even though the machine already has V3.2.3 installed.
12 > I've also stripped down the USE variables to basically "server" and
13 > that's all and still for some reason portage wants to bring in Python
14 > - the older version, V2. I've even added a "-python" to packages.use
15 > and it still wants python, V2. I've had a look at the USE variables
16 > for the packages that follow Python in the emerge list and they
17 > either don't want python or already have "-python" set.
18 >
19 > Having a play around with equery also didn't reveal anything.
20 > Does anyone have any ideas as to what's causing old Python to be
21 > brought in? I haven't posted the whole "emerge --info" stuff yet as
22 > hopefully someone has come across this problem before.
23 >
24 > Any thoughts greatly appreciated,
25 >
26 > Andrew
27 >
28
29 Python is slotted (see gentoo docs for more info on SLOTS).
30
31 Samba is not downgrading python, it is asking for python-2.7 to be
32 installed alongside python-3.2 (so you will then have both).
33
34 Just accept what portage says and let it do it;s thing - there are many
35 packages out there that are not ported to python-3 yet so you almost
36 certainly are going to need python-2.7 at some point anyway.
37
38 --
39 Alan McKinnon
40 alan.mckinnon@×××××.com