1 |
Try this: |
2 |
|
3 |
> Get the post 2.6 python source and compile: |
4 |
|
5 |
emerge --fetchonly =dev-lang/python-2.7.1-r1 |
6 |
cd |
7 |
tar xjf /usr/portage/distfiles/Python-2.7.1.tar.bz2 |
8 |
cd Python-2.7.1/ |
9 |
./configure --with-fpectl --infodir=/usr/share/info/ |
10 |
--mandir=/usr/share/man |
11 |
make |
12 |
make install prefix=/usr |
13 |
rm /usr/bin/python 2>/dev/null |
14 |
ln -s /usr/bin/python2.7 /usr/bin/python |
15 |
|
16 |
> get portage bin, copy then compile on your own, just to be safe |
17 |
|
18 |
wget -P /usr/portage/distfiles |
19 |
http://distfiles.gentoo.org/distfiles/portage-2.1.9.42.tar.bz2 |
20 |
cd /root |
21 |
mkdir portage-recover |
22 |
cd portage-recover |
23 |
tar xfj /usr/portage/distfiles/portage-2.1.9.42.tar.bz2 |
24 |
cd /root/portage-recover/portage-2.1.9.42 |
25 |
rm -rf /usr/lib/portage/* |
26 |
cp -R pym bin /usr/lib/portage/ |
27 |
emerge sys-apps/portage |
28 |
|
29 |
> emerge python 2.7.1 just to be safe |
30 |
eselect python list |
31 |
eselect python set 3 |
32 |
emerge =dev-lang/python-2.7.1-r1 |
33 |
|
34 |
> Run Python Updater now that you have the new python set as the master |
35 |
python on your system |
36 |
python-updater |
37 |
|
38 |
> Then update any configs |
39 |
etc-update |
40 |
|
41 |
|
42 |
2011/6/29 Todd Hebert <todd@×××.ie> |
43 |
|
44 |
> Does anyone know of a howto etc.. for dropping a new portage version into a |
45 |
> system where you can't BUILD a new portage version due to license |
46 |
> restrictions. (Portage doesn't understand the EAPI 2 license scheme, and |
47 |
> there are items that require it in order to build.) |
48 |
> |
49 |
> |
50 |
> |
51 |
> |
52 |
> |
53 |
|
54 |
|
55 |
-- |
56 |
Kind regards, |
57 |
Denis Bondar |