Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69813 - Can't unmerge old package where eclass no longer exists
Summary: Can't unmerge old package where eclass no longer exists
Status: RESOLVED DUPLICATE of bug 46223
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-02 02:15 UTC by Stuart Shelton
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2004-11-02 02:15:31 UTC
I have an old package which I installed from a Portage overlay directory, which used a custom eclass.  This eclass (and, indeed, the entire overlay) has now been removed.

However, when I try to remove this package from my system, emerge aborts with the following error:

>>> Unmerging x11-themes/lila-backgrounds-0.3.1...
No package files given... Grabbing a set.

QA Notice: ECLASS 'lila-artwork' inherited illegally in x11-themes/lila-backgrounds-0.3.1

/usr/lib/portage/bin/ebuild.sh: line 1319: /usr/portage/eclass/lila-artwork.eclass: No such file or directory

!!! ERROR: x11-themes/lila-backgrounds-0.3.1 failed.
!!! Function inherit, Line 1320, Exitcode 1
!!! died sourcing /usr/portage/eclass/lila-artwork.eclass in inherit()

!!! FAILED prerm: 1

... now I anticipate remarks about unsupported and out-of-tree ebuilds, etc.  But my point is that if we're trying to *remove* a package, then shouldn't the packages files and metadata be removed even if the class is no longer available?

Perhaps the eclass inherited by any installed ebuild should be stored alongside the package metadata if it is *vital* to the subsequent removal of said package?  At least this way people aren't left with a stuck package.

Note that I've solved this problem myself (I had a backup of the old eclass lying around - but I guess I could just have edited the installed ebuild to remove the inherit line) and have removed the package, but thought I'd report this as it seems to be a problem in portage that shouldn't be encountered.

Thoughts?

Cheers,

    Stuart
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-11-02 05:55:43 UTC

*** This bug has been marked as a duplicate of 46223 ***