View previous topic :: View next topic |
Author |
Message |
schmobag Tux's lil' helper
Joined: 17 Feb 2004 Posts: 91 Location: Los Angeles
|
Posted: Tue Apr 04, 2006 6:15 pm Post subject: sdl-mixer-2.6.1 won't unmerge |
|
|
I just upgraded sdl-mixer from 1.2.6 to 1.2.6-r1, but portage crashes when it tries to unmerge the old version. What does the error below mean, and how can I fix it?
Code: |
root@computer schmobag # emerge --unmerge =media-libs/sdl-mixer-1.2.6
media-libs/sdl-mixer
selected: 1.2.6
protected: none
omitted: 1.2.6-r1
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging media-libs/sdl-mixer-1.2.6...
No package files given... Grabbing a set.
Traceback (most recent call last):
File "/usr/bin/emerge", line 3115, in ?
if 1==unmerge(myaction, myfiles):
File "/usr/bin/emerge", line 2350, in unmerge
retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action not in ["clean","prune"])
File "/usr/lib/portage/pym/portage.py", line 3085, in unmerge
mylink.unmerge(trimworld=mytrimworld,cleanup=1)
File "/usr/lib/portage/pym/portage.py", line 5693, in unmerge
a=doebuild(myebuildpath,"prerm",self.myroot,self.settings,cleanup=cleanup,use_cache=0,tree=self.treetype)
File "/usr/lib/portage/pym/portage.py", line 2712, in doebuild
mystatus = doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, tree)
File "/usr/lib/portage/pym/portage.py", line 2471, in doebuild_environment
raise portage_exception.UnsupportedAPIException(mycpv, eapi)
portage_exception.UnsupportedAPIException
|
|
|
Back to top |
|
|
icantux Tux's lil' helper
Joined: 25 Sep 2005 Posts: 122
|
Posted: Thu Apr 06, 2006 2:53 am Post subject: |
|
|
I don't believe you need to unmerge the old version when upgrading. Emerging an upgrade takes care of that for you. _________________ I am Bill of Borg. Resistance izkx GPF 0x5654 8820 Application
RESIST.EXE has performed an illegal operation and will be shut down. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Apr 06, 2006 5:40 am Post subject: Re: sdl-mixer-2.6.1 won't unmerge |
|
|
schmobag wrote: | portage_exception.UnsupportedAPIException |
Are you using any third-party portage-speedup utils? If not, it looks like a bug in portage. Try emerge --sync and then re-emerge portage. If the problem persists, file a bug. |
|
Back to top |
|
|
schmobag Tux's lil' helper
Joined: 17 Feb 2004 Posts: 91 Location: Los Angeles
|
Posted: Fri Apr 07, 2006 9:30 pm Post subject: |
|
|
icantux: I must not have been clear enough. Both automatic and manual unmerges failed with the same error.
After emerging the new version, portage tried to unmerge the old version, and crashed, as seen above. Portage is actually pretty smart. On subsequent emerges of different packages, portage would realize there was an old sdl-mixer install that needed to be cleaned up, and try to unmerge it again, and crash again, with the same error as seen above. If I tried to manually unmerge it, same result.
PaulBredbury: Good idea, but no, I'm not using any speedup utils.
I eventually solved the problem by manually removing the portage db reference to the old version:
Code: | rm /var/db/pkg/media-libs/sdl-mixer-1.2.6/ -rf
|
I figure that since it was only a minor version upgrade, the old files were probably all overwritten anyway. All I have to do to finish the cleanup is delete the documentation folder:
Code: | rm /usr/share/doc/sdl-mixer-1.2.6 -rf |
EDIT: I should add that doing an emerge --sync and remerging portage had no effect. |
|
Back to top |
|
|
|
|
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
|
|