Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sdl-mixer-2.6.1 won't unmerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
schmobag
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2004
Posts: 91
Location: Los Angeles

PostPosted: Tue Apr 04, 2006 6:15 pm    Post subject: sdl-mixer-2.6.1 won't unmerge Reply with quote

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
View user's profile Send private message
icantux
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2005
Posts: 122

PostPosted: Thu Apr 06, 2006 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Apr 06, 2006 5:40 am    Post subject: Re: sdl-mixer-2.6.1 won't unmerge Reply with quote

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
View user's profile Send private message
schmobag
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2004
Posts: 91
Location: Los Angeles

PostPosted: Fri Apr 07, 2006 9:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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