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