Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ancient ebuilds don't unmerge.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
rasmus
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2002
Posts: 77

PostPosted: Tue May 03, 2005 9:00 pm    Post subject: Ancient ebuilds don't unmerge. Reply with quote

Hi Gentooers.

I have a few ancient ebuilds still lying around because I can't figure out a way to unmerge them. What they have in common is that the ebuilds are no longer in the portage database and that the ebuild in /var/db/pkg is broken or (more likely) not compatible with newer versions of portage. For example, when I try to unmerge app-i18n/kde-i18n-sv-3.0.2 this happens:

Code:
root@balder Hämtningar # emerge -C app-i18n/kde-i18n-sv-3.0.2
 app-i18n/kde-i18n-sv
    selected: 3.0.2
   protected: none
     omitted: 3.0.5a 3.1.1

>>> '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 app-i18n/kde-i18n-sv-3.0.2...
No package files given... Grabbing a set.

QA Notice: ECLASS 'kde-i18n' inherited illegally in app-i18n/kde-i18n-sv-3.0.2

/usr/lib/portage/bin/ebuild.sh: line 1458: /usr/portage/eclass/kde-i18n.eclass: Filen eller katalogen finns inte

!!! ERROR: app-i18n/kde-i18n-sv-3.0.2 failed.
!!! Function inherit, Line 1459, Exitcode 1
!!! died sourcing /usr/portage/eclass/kde-i18n.eclass in inherit()
!!! If you need support, post the topmost build error, NOT this status message.

!!! FAILED prerm: 1


(by the way, "Filen eller katalogen finns inte" is swedish for "No such file or directory") and unmerging media-plugins/gst-plugins-mad-0.6.4 results in this:

Code:
 media-plugins/gst-plugins-mad
    selected: 0.6.4
   protected: none
     omitted: 0.8.8

>>> '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-plugins/gst-plugins-mad-0.6.4...
No package files given... Grabbing a set.

QA Notice: ECLASS 'gst-plugins' inherited illegally in media-plugins/gst-plugins-mad-0.6.4


QA Notice: ECLASS 'eutils' inherited illegally in media-plugins/gst-plugins-mad-0.6.4


QA Notice: ECLASS 'multilib' inherited illegally in media-plugins/gst-plugins-mad-0.6.4

/usr/lib/portage/bin/ebuild.sh: /var/db/pkg/media-plugins/gst-plugins-mad-0.6.4/gst-plugins-mad-0.6.4.ebuild: line 10: unexpected EOF while looking for matching `"'
/usr/lib/portage/bin/ebuild.sh: /var/db/pkg/media-plugins/gst-plugins-mad-0.6.4/gst-plugins-mad-0.6.4.ebuild: line 12: syntax error: unexpected end of file

!!! ERROR: media-plugins/gst-plugins-mad-0.6.4 failed.
!!! Function , Line 1702, Exitcode 1
!!! error sourcing ebuild
!!! If you need support, post the topmost build error, NOT this status message.

!!! FAILED prerm: 1


I suppose I could do it the hard way, i.e delete every file in the builds by hand and deleting the ebuilds manually from /var/db/pkg, but it sounds like a lot of work and a potentially a way to trash a little bit of the system. I could of course also leave them there, they don't seem to have caused any harm during the years they have been installed, but I don't like the idea. An old gcc I had lying around made it impossible to build Openoffice.org for over a year before I found out why. And yeah, there's also the Microsoft solution (format and reinstall), but I won't do that. :) Any better Ideas?
Back to top
View user's profile Send private message
UncleOwen
Veteran
Veteran


Joined: 27 Feb 2003
Posts: 1493
Location: Germany, Hamburg

PostPosted: Tue May 03, 2005 9:52 pm    Post subject: Reply with quote

You could try getting the missing files from http://www.gentoo.org/cgi-bin/viewcvs.cgi/
Back to top
View user's profile Send private message
Jeffrey0
n00b
n00b


Joined: 31 Dec 2004
Posts: 68

PostPosted: Tue May 03, 2005 10:04 pm    Post subject: Reply with quote

You can also try:
touch /usr/portage/eclass/kde-i18n.eclass
and
cp /usr/portage/media-plugins/gst-plugins-mad/gst-plugins-mad-0.8.8.ebuild /var/db/pkg/media-plugins/gst-plugins-mad/gst-plugins-mad-0.6.4.ebuild

Neither are nice solutions, but they're likely to work.
Back to top
View user's profile Send private message
teknomage1
Veteran
Veteran


Joined: 05 Aug 2003
Posts: 1239
Location: Los Angeles, CA

PostPosted: Wed May 04, 2005 9:49 pm    Post subject: Reply with quote

Maybe there should be an official bug report on this problem? As more and more gentoo machines become dependable and settle into their roles this problem is going to get bigger. Maybe we could add an option for portage to fetch the ebuild form CVS if the oldest ebuilds left are newer than what's being uninstalled.
Back to top
View user's profile Send private message
rivetwa
n00b
n00b


Joined: 06 Jan 2004
Posts: 5
Location: USA - Eastern

PostPosted: Sat May 07, 2005 3:51 am    Post subject: Reply with quote

UncleOwen wrote:
You could try getting the missing files from http://www.gentoo.org/cgi-bin/viewcvs.cgi/


Thanks! I was having this problem too...this was a pragmatic solution which worked fine for me.

It seems portage does have a problem in this area....but I have to admit searching the forums and finding this thread is all I've done to try to understand it so far ;-)

Thanks guys.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Sat May 07, 2005 6:50 am    Post subject: Reply with quote

teknomage1 wrote:
Maybe there should be an official bug report on this problem? As more and more gentoo machines become dependable and settle into their roles this problem is going to get bigger. Maybe we could add an option for portage to fetch the ebuild form CVS if the oldest ebuilds left are newer than what's being uninstalled.
The removed eclasses problem is well-known and is being worked upon, please don't file yet another bug on it. AFAIK ferringb's hard at work on using the information from environment.bz2 in order to reconstruct what existed in the (now missing) eclass at merge time.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4920
Location: Gothenburg, Sweden

PostPosted: Sun May 08, 2005 9:48 pm    Post subject: Reply with quote

Moved from Portage & Programming in favour of the FAQ GF19: Emerge fails to unmerge a package.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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