Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it OK to remove python-2.3.5 once 2.4.1-r1 is emerged?
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
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1213

PostPosted: Sun Oct 09, 2005 6:20 pm    Post subject: Is it OK to remove python-2.3.5 once 2.4.1-r1 is emerged? Reply with quote

I noticed today that python-2.4.1-r1 became stable. It, hower, has different slot than 2.3.5 that I have currently installed, so emerge would leave me with both versions installed, which I do not like.
So the question is: Is it OK to unmerge 2.3 once 2.4 is installed? I am only worried about portage, I do not program in python.

Has anyone tried this? I want to have only one version of python, but I do not want to break my system.
Back to top
View user's profile Send private message
itsmegawtf
Apprentice
Apprentice


Joined: 01 Oct 2005
Posts: 150

PostPosted: Sun Oct 09, 2005 6:32 pm    Post subject: Reply with quote

emerge --pretend python, and see :)
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sun Oct 09, 2005 6:40 pm    Post subject: Reply with quote

You need to run python-updater first to rebuild everything that uses the old python. Then you can unmerge it.
Back to top
View user's profile Send private message
JSharku
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 189
Location: Belgium

PostPosted: Sun Oct 09, 2005 6:41 pm    Post subject: Reply with quote

I'm not a python expert, but I think /usr/sbin/python-updater is your friend here.

Sharku
_________________
If only life were portage-driven:
Code:
USE="-bitch -in-laws nice gorgeous smart" emerge girlfriend
*sigh*
--
Open Source for Windows!
Back to top
View user's profile Send private message
Raftysworld
Apprentice
Apprentice


Joined: 27 Feb 2005
Posts: 236
Location: Snohomish, WA

PostPosted: Sun Oct 09, 2005 6:53 pm    Post subject: Reply with quote

Search is your friend
_________________
emerge --info
Portage 2.1.4 (default-linux/x86/dev/2007.1, gcc-4.2.2, glibc-2.7-r1, 2.6.24-gentoo i686)
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1213

PostPosted: Sun Oct 09, 2005 6:56 pm    Post subject: Reply with quote

nxsty wrote:
You need to run python-updater first to rebuild everything that uses the old python. Then you can unmerge it.

This seems like the way to go. Have you (or anyone else) done this particular transition? I just want to make sure that there isn't a hidden problem somewhere.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sun Oct 09, 2005 7:04 pm    Post subject: Reply with quote

No problem here, I updated python to 2.4 as a requirement for kde-3.5_alpha1 and have been without python-2.3 since then.

Code:

python-updater
emerge -C =python-2.3.5

_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1213

PostPosted: Mon Oct 10, 2005 5:44 am    Post subject: Reply with quote

It worked out OK, running python-updater I was able to remove old python-2.3.5 without problems. After that, revdep-rebuild found that 3 packages were broken, but that was easily fixed.

Thanks for help.
Back to top
View user's profile Send private message
odborg
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2002
Posts: 89
Location: Aalborg, Denmark

PostPosted: Mon Oct 10, 2005 11:59 am    Post subject: Reply with quote

after running python-update and emerge -C =python-2.3.5-r2 i discovered that i still have e few files in /usr/lib/python2.3/site-packages/:
Code:

ls -l  /usr/lib/python2.3/site-packages/
-rw-r--r--  1 root root 1061  6 sep 17:50 _lcms.la
drwxr-xr-x  2 root root  272 10 okt 05:12 libsvn
lrwxrwxrwx  1 root root   13 22 jul 20:49 pygtk.pth -> pygtk.pth-2.0
lrwxrwxrwx  1 root root   12 22 jul 20:49 pygtk.py -> pygtk.py-2.0
drwxr-xr-x  2 root root  272 10 okt 05:12 svn
-rw-r--r--  1 root root   20 13 sep 13:20 wx.pth

Is it safe to delete /usr/lib/python2.3?

i also have files in /usr/lib/python2.2 (not only in /usr/lib/python2.2/site-packages). Too many (234) to list. Most files are of type .py and .pyc
is it safe to delete /usr/lib/python2.2?
Back to top
View user's profile Send private message
ndarlow
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2004
Posts: 89

PostPosted: Mon Oct 10, 2005 12:36 pm    Post subject: Reply with quote

You will probably need to unmask (~arch in /etc/portage/package.keywords) dev-python/pyxml and emerge it after python-update. Otherwise your next --update will want to emerge python-2.3.5-r2 due to a hardcoded dependency on python-2.3.5 in the older pyxml ebuild. python-update didn't handle this situation for me.

Regards,
Neil Darlow
Back to top
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Wed Oct 12, 2005 9:22 am    Post subject: Reply with quote

Well I can't complete python-updater because it can't rebuilt an ancient version of pdflib.

I do have a recent version of pdflib installed, though.

Now the question is, can I prune python and just get rid of that problem or am I going to b0rk something?
_________________
"Failure is not an option!"
"Sir, we are out of further options."
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Wed Oct 12, 2005 9:52 am    Post subject: Reply with quote

wgi wrote:
Well I can't complete python-updater because it can't rebuilt an ancient version of pdflib.

I do have a recent version of pdflib installed, though.

Now the question is, can I prune python and just get rid of that problem or am I going to b0rk something?


Recompile pdflib manualy then make sure python-updater finishes before you prune the old python. But it'll probably not break your sytem if you if you have at least reemerged portage and gentoolkit against the new python before you prune the old.
Back to top
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Wed Oct 12, 2005 10:11 am    Post subject: Reply with quote

nxsty wrote:
Recompile pdflib manualy then make sure python-updater finishes before you prune the old python. But it'll probably not break your sytem if you if you have at least reemerged portage and gentoolkit against the new python before you prune the old.


That's the whole point. I *have* a recent version, but the update still wants to build the old one:

Code:
# python-updater
 * Logging disabled due to permissions
 * Starting Python Updater from 2.3 to 2.4 :
 * Searching for packages with files in /usr/lib/python2.3 /usr/lib32/python2.3 /usr/lib64/python2.3 ..
   Adding to list: media-libs/pdflib-4.0.3-r1
 * Calculating Upgrade Package List ..
 * Re-ordering packages to merge ..
 * Preparing to merge these packages in this order:
   media-libs/pdflib-4.0.3-r1
 * Starting to merge (1/1) media-libs/pdflib-4.0.3-r1 ..
Calculating dependencies
emerge: there are no ebuilds to satisfy "=media-libs/pdflib-4.0.3-r1".

 * Failed merging media-libs/pdflib-4.0.3-r1 (1/1)!

 * ************************************************************
 * * Packages that still need to be manually emerged :        *
 * ************************************************************

 *  Failed Packaged:
 *  ----------------
 *  These packages have failed and need to be re-emerged again.
 *  Alternatively, try re-running this script again to see if it
 *  can be fixed.

 *  emerge -p  \=media-libs/pdflib-4.0.3-r1


Code:
etcat -v pdflib
[ Results for search key           : pdflib ]
[ Candidate applications found : 4 ]

 Only printing found installed programs.

*  media-libs/pdflib :
        [   ] 5.0.2 (5)
        [   ] 5.0.4_p1 (5)
        [  I] 5.0.4_p1-r1 (5)
        [M~ ] 6.0.1 (5)

_________________
"Failure is not an option!"
"Sir, we are out of further options."
Back to top
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Wed Oct 12, 2005 11:05 am    Post subject: Reply with quote

Well I felt brave today so I pruned it regardlessly. Looks like it still works 8)
_________________
"Failure is not an option!"
"Sir, we are out of further options."
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