Bug 144681 - Wrong placement of a single file in dev-php5/pecl-apc
Bug#: 144681 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: php-bugs@gentoo.org Reported By: kawsper@gmail.com
Component: Ebuilds
URL: 
Summary: Wrong placement of a single file in dev-php5/pecl-apc
Keywords:  
Status Whiteboard: 
Opened: 2006-08-21 12:32 0000
Description:   Opened: 2006-08-21 12:32 0000
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 From Jakub Moc (RETIRED) 2006-08-21 13:13:42 0000 -------
Certainly not here... Make sure you don't have any stale eclasses from overlays
anywhere.

------- Comment #2 From Kasper K. Grubbe 2006-08-21 15:19:27 0000 -------
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 From Jakub Moc (RETIRED) 2006-08-22 01:55:16 0000 -------
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 From Luca Longinotti 2006-08-22 06:29:59 0000 -------
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.