Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60919 - Older versions of packages fail to unmerge (e.g. mod_php-4.3.3-r3) -- died sourcing nonexistant /usr/portage/eclass/php.eclass
Summary: Older versions of packages fail to unmerge (e.g. mod_php-4.3.3-r3) -- died so...
Status: RESOLVED DUPLICATE of bug 46223
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-19 11:58 UTC by Aaron Brooks
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 Aaron Brooks 2004-08-19 11:58:27 UTC
Since /usr/portage/eclass/php.eclass has been split into the various
other eclass files (php-ext-base.eclass, php-ext-source.eclass,
php-lib.eclass, php-sapi.eclass, php-ext-pecl.eclass, php-ext.eclass,
php-pear.eclass, php5-sapi.eclass) unmerge fails on older ebuilds
which rely on php.eclass. 

This is actually a portage wide problem. ebuilds that depend on
eclasses that have been removed or replaced will break. Particularly
annoying is when (as mod_php) an eclass is a prerequisite for removing
the package. Perhaps the solution is to include eclasses in the
/var/db/pkg/...  database or keep an eclass graveyard for dead
classes. 

At any rate, I had success replacing the "include php ..." with
"include php-lib ..." in /var/db/pkg/dev-php/mod_php-4.3.3-r3/mod_php-4.3.3-r3.ebuild.



Reproducible: Always
Steps to Reproduce:
1. Start off having an old version of mod_php (e.g. 4.3.3-r3) installed
2. Wait until some point when php.eclass has been replaced with other eclasses such as ... now.
3. Try to unmerge mod_php

Actual Results:  
...
>>> Unmerging dev-php/mod_php-4.3.3-r3...
No package files given... Grabbing a set.
/usr/sbin/ebuild.sh: line 1101: /usr/portage/eclass/php.eclass: No such file or
directory
!!! ERROR: dev-php/mod_php-4.3.3-r3 failed.
!!! Function inherit, Line 1102, Exitcode 1
!!! died sourcing /usr/portage/eclass/php.eclass in inherit()
!!! FAILED prerm: 1



Expected Results:  
The command:

   emerge mod_php unmerge 

should've unmerged mod_php.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-08-19 12:04:37 UTC
Known issue I'm afraid.  This is a dupe of 46223 .

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