Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247441 - dev-php5/jpgraph installed to /usr/share/php5
Summary: dev-php5/jpgraph installed to /usr/share/php5
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-18 16:54 UTC by reillyp
Modified: 2010-04-12 15:51 UTC (History)
1 user (show)

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 reillyp 2008-11-18 16:54:10 UTC
Emerging dev-php5/jpgraph gets it installed into the /usr/share/php5 directory, whereas everything else gets intalled into /usr/share/php

Reproducible: Always

Steps to Reproduce:
1.emerge jpgraph
2.
3.

Actual Results:  
End up with /usr/share/php5/jpgraph directory. No install, nor a symlink, in /usr/share/php. Requires setting the php include path to "/usr/share/php:/usr/spare/php5:..."

Expected Results:  
Installed with everything else in /usr/share/php
Comment 1 Doktor Notor 2010-02-15 13:59:53 UTC
This is per design and not any bug. PHP5-specific stuff (that in dev-php5) has always installed to /usr/share/php5 to avoid collisions with PHP4 - see the relevant eclasses. And yes, it requires proper settings on your side. 
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2010-03-30 22:26:59 UTC
I will bring this up with the PHP team.

There two probable solutions to this:

(1) include /usr/share/php5 in the include path by default
(2) move everything to /usr/share/php

With php4 gone and php6 not in sight, (2) could be done but requires reworking a very complex set of eclasses (and will require another rework when php6 rolls around). So maybe (1) is the better way to go.
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-04-12 15:37:25 UTC
The php team has decided to not do (2), so that leaves us with (1). I've added this to https://overlays.gentoo.org/proj/php/wiki/TodoList so we don't forget.

In the meantime, please modify your include path and add the php5 directory.
Leaving the bug open until we decide on adding this to the default include path.
Comment 4 Matti Bickel (RETIRED) gentoo-dev 2010-04-12 15:51:47 UTC
Well, olemarkus just noticed me /usr/share/php5 IS included in the default include path. So no action needed. Please update your php.ini, it should be there.