Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144681 - Wrong placement of a single file in dev-php5/pecl-apc
Summary: Wrong placement of a single file in dev-php5/pecl-apc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 12:32 UTC by Kasper K. Grubbe
Modified: 2006-08-22 06:29 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 Kasper K. Grubbe 2006-08-21 12:32:43 UTC
I noticed a little
flaw in one of the packages.
I installed  dev-php5/pecl-apc and it told me:
 * The apc.php file shipped with this release of PECL-APC was
 * installed into /usr/share/php5/apc/.

After some investigation i notices that this wasn't true, i searched, and it was extracted here instead:
>>> /usr/share/apc/
>>> /usr/share/apc/apc.php
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-21 13:13:42 UTC
Certainly not here... Make sure you don't have any stale eclasses from overlays anywhere.
Comment 2 Kasper K. Grubbe 2006-08-21 15:19:27 UTC
I did have a overlay, but it was only containing some audio packages (xmms2). I commented the overlay dir, emerge syncronized, emerge dev-php5/pecl-apc again, and it placed it the same place.

Is there some more information i can provide you with to spot the problem?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-22 01:55:16 UTC
Please, apply the following patch to /usr/portage/eclass/depend.php.eclass and try again:

<snip>
--- depend.php.eclass.orig	2006-08-07 09:36:43.000000000 +0200
+++ depend.php.eclass	2006-08-22 10:52:24.000000000 +0200
@@ -50,6 +50,7 @@
 	PHPCGI="/usr/${libdir}/php4/bin/php-cgi"
 	PHP_PKG="`best_version =dev-lang/php-4*`"
 	PHPPREFIX="/usr/${libdir}/php4"
+	PHP_SHARED_CAT="php4"
 
 	einfo
 	einfo "Using ${PHP_PKG}"
@@ -87,6 +88,7 @@
 	PHPCGI="/usr/${libdir}/php5/bin/php-cgi"
 	PHP_PKG="`best_version =dev-lang/php-5*`"
 	PHPPREFIX="/usr/${libdir}/php5"
+	PHP_SHARED_CAT="php5"
 
 	einfo
 	einfo "Using ${PHP_PKG}"
</snip>
Comment 4 Luca Longinotti (RETIRED) gentoo-dev 2006-08-22 06:29:59 UTC
This is fixed in CVS now, please emerge --sync in a couple of hours to get the fix.
The problem was the dev-php5/pecl-apc ebuild, it didn't use any need_php* function and thus didn't define $PHP_SHARED_CAT, resulting in the wrong placement of the file, this was now fixed. :) The dependency functions will soon need a little overhaul, but for now this works.
Best regards, CHTEKK.