Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot unmerge due to missing eclass
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
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Wed Jan 21, 2004 9:15 pm    Post subject: Cannot unmerge due to missing eclass Reply with quote

Mod edit: Changed title from package specific to problem specific. --kallamej

raid kdelibs # emerge -c kdelibs

kde-base/kdelibs
selected: 3.1
protected: 2.2.2a 3.0.4 3.1.5
omitted: none

>>> '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 kde-base/kdelibs-3.1...
No package files given... Grabbing a set.
Lockfile removed: /var/db/pkg/kde-base/kdelibs-3.1.portage_lockfile
Lockfile removed: /var/db/pkg/kde-base/kdelibs-3.1.portage_lockfile
/usr/sbin/ebuild.sh: /usr/portage/eclass/kde.org.eclass: No such file or directory

!!! ERROR: kde-base/kdelibs-3.1 failed.
!!! Function inherit, Line 83, Exitcode 1
!!! died sourcing /usr/portage/eclass/kde.org.eclass in inherit()

!!! FAILED prerm: 1
raid kdelibs #

Any ideas on this... I searched the forums, and am kinda stuck.

Thanks a ton guys.
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Wed Jan 21, 2004 9:56 pm    Post subject: Reply with quote

-c is not -C


Carlo
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Sun Jan 25, 2004 1:02 am    Post subject: Autocleaning packages.... Reply with quote

This was first noticed when portage tries to auto clean this package. -C gives the error message also... Thanks for the update though ;)

Anybody else got any ideas on this one?
Back to top
View user's profile Send private message
spitzwegerich
l33t
l33t


Joined: 04 Mar 2003
Posts: 697
Location: Lower Bavaria, Central Europe

PostPosted: Sat Feb 07, 2004 12:50 pm    Post subject: Reply with quote

I have the same problem.

The first line of code in kdelibs-3.1-r2.ebuild is
Code:
 inherit kde kde.org


But in /usr/portage/eclass I only found the file kde.eclass.
kde.org.eclass does not exist - neither in this directory nor in anywhere else. I also searched on two other Gentoo boxes - no kde.org.eclass.

So what to do?
_________________
"Work is the curse of the drinking classes."
-Oskar Wilde
Back to top
View user's profile Send private message
spitzwegerich
l33t
l33t


Joined: 04 Mar 2003
Posts: 697
Location: Lower Bavaria, Central Europe

PostPosted: Sat Feb 07, 2004 12:54 pm    Post subject: Reply with quote

I changed the line in the kdelibs ebuild to
Code:
inherit kde

and did the unmerge.
It seems to have worked without problems.
_________________
"Work is the curse of the drinking classes."
-Oskar Wilde
Back to top
View user's profile Send private message
Gigantopithicus
n00b
n00b


Joined: 05 Aug 2002
Posts: 17
Location: Chicago, IL

PostPosted: Tue Apr 20, 2004 4:56 pm    Post subject: Reply with quote

I also had the same problem. However, I did not find the inherit statement in any of the kdelib ebuilds that contained kde.org. So, as a quick fix, I symlinked them as such:

ln -s /usr/portage/eclass/kde.eclass /usr/portage/eclass/kde.org.eclass

... worked fine.
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Tue Apr 20, 2004 5:26 pm    Post subject: Reply with quote

Thanks for pointing me to this topic again!

edit: Portage doesn't keep up with eclasses, which do not exist anymore. This can happen, because Portage doesn't reflect the removal of eclasses in already installed ebuilds.

There are three alternative ways to fix this:
1. grab the old eclass from cvs and put it in /usr/portage/eclass, before unmerging
2. edit the saved ebuild in /var/db/pkg/<foo>/<bar>
3. remove the files installed by the ebuild by hand

The first alternative is the best of course.

:arrow: Bug 46223


Carlo
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
joehni
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 175

PostPosted: Sun Aug 29, 2004 10:28 pm    Post subject: Reply with quote

Just for the records: One suggestion to deal with the problem was to create the missing eclass file with touch. I had the problem with package app-i18n/kde-i18n-de that referenced removed kde-i18n.eclass. After creating the empty file, I was able to unmerge the package - at least emerge told me, that it had successfully removed it. Unfortunately I had to detect later, that the package was still referenced in my system. Only after restoring the kde-i18n.eclass with the latest version from CVS enabled emerge to unmerge kde-i18n-de in a permanent way.
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