Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
upgrading to python 2.5 and python-updater
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
doro1211
Guru
Guru


Joined: 06 Jun 2004
Posts: 303

PostPosted: Sat Jul 19, 2008 3:41 am    Post subject: upgrading to python 2.5 and python-updater Reply with quote

Ok, so I upgraded to python-2.5. No problem, everything seemed ok. Then I pruned python 2.4. Ok, as expected, that will cause some issues with packages built against python 2.4. So I though, no problem, just run python-updater, and it will fix the problem. I tried this, but it just pauses for about a half a second then returns me to the prompt, having rebuilt nothing. Adding -v (verbose) adds no more info. revdep-rebuild now freaks and finds a ton of packages to rebuild with python 2.5. However, it dies every time on epiphany with an error about libxml2.

Am I not understanding how to use python-updater? I can't help but feel I'm missing some really obvious point and that's why I'm having these issues. On one box, I just reinstalled python 2.4 (slotted) and the problems went away. Is it not a good idea to prune off 2.4 yet, or can I if I'm willing to do some recompiling?
Back to top
View user's profile Send private message
uaeb
n00b
n00b


Joined: 28 May 2008
Posts: 27

PostPosted: Sat Jul 19, 2008 5:32 am    Post subject: Reply with quote

I believe your supposed to run python-updater before pruning the old version of Python that way you'd have a working version of python to do what needs to be done.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5609
Location: Dallas

PostPosted: Sat Jul 19, 2008 7:05 am    Post subject: Reply with quote

You believe correctly. Python-updater must be run when you are upgrading python from 2.4 to 2.5. You might be able to get it to run...but I don't know for sure. I ran python-updater when I went to 2.5.

Good luck.

Blessed be!
Pappy
_________________
SITE LIST:
Main: http://www.kernel-seeds.org
Mirror: http://kernel-seeds.bloodnoc.org/
Mirror 2: http://kernel-seeds.audiodef.com/
Mirror 3: http://www.elilabs.com/~pappy/
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Sat Jul 19, 2008 7:19 am    Post subject: Reply with quote

Just enforce the old version with the "-o x.x" switch:
Code:
fabio@gentoo-node2 ~ $ sudo python-updater -o 2.4
 * Starting Python Updater from 2.4 to 2.5 :
 * Couldn't find old libpython soname
 * Disabling soname check.
 *   Adding to list: =app-office/dia-0.96.1-r1
 *   Adding to list: =dev-libs/boost-1.35.0-r1

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD] app-portage/portage-utils-0.1.29 [20070504-r3] 0 kB [?=>0]
[ebuild   R   ] dev-libs/boost-1.35.0-r1  USE="expat icu tools -debug -doc -mpi" 0 kB
[ebuild   R   ] app-office/dia-0.96.1-r1  USE="cairo doc png python zlib -debug -gnome -gnome-print" 0 kB

As you can see it will complain about not finding the previous version installed but it should correctly rebuild the packages (I already did it before, don't know why some packages still show up).
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
doro1211
Guru
Guru


Joined: 06 Jun 2004
Posts: 303

PostPosted: Sat Jul 19, 2008 7:29 am    Post subject: Reply with quote

Oh, I tried that too. I tried it with and without 2.4 installed (I have over 10 Gentoo systems, all with this issue, so I experimented in trying it a number of ways). Same deal either way... it just does nothing.

revdep-rebuild does catch the packages that need rebuilding, and so I'm rebuilding those now on one PC (I'll emerge -k on the rest). It doesn't quite work though... it can't seem to figure out some of the packages needing rebuilding. This line worked for me:

FEATURES="-distlocks buildpkg -sandbox" emerge libxml2 libxslt XML-LibXSLT file-roller

which was based on a combination of bugzilla reports on others having this issue, guesswork/intuition, and trial and error. I'm not 100% sure all of those things are needed. The buildpkg and -distlocks I always use, but -sandbox was necessary or the build dies.

Then revdep-rebuild is able to take it from there and rebuild the rest.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum