Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406591 - dev-lang/php - missing RDEPENDs: ?
Summary: dev-lang/php - missing RDEPENDs: ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 12:58 UTC by Nicolas Perrenoud
Modified: 2012-03-09 22:35 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 Nicolas Perrenoud 2012-03-02 12:58:16 UTC
When emerging PHP to an alternative ROOT (e.g. when bootstrapping custom distributions), a lot of the dependencies are installed into the / system (for example dev-db/postgresql-base when USE-ing postgres).

This results in an error on the target system when executing php because it cannot load all shared object files (because they were not installed into ROOT). 

The PHP ebuild uses mostly DEPEND and not RDEPEND to specify it's dependencies, which is ok for compiling PHP, but fails when executing the php binary.

Tested with PHP 5.4 (with 5.3, i was not able to install it in an alternative ROOT and therefore could not test it, see #392719)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-04 18:35:46 UTC
(In reply to comment #0)
> When emerging PHP to an alternative ROOT (e.g. when bootstrapping custom
> distributions), a lot of the dependencies are installed into the / system
> (for example dev-db/postgresql-base when USE-ing postgres).

This cannot be simply fixed in dev-lang/php ebuilds. It's a broad issue that cannot be handled in a single bug report.

> This results in an error on the target system when executing php because it
> cannot load all shared object files (because they were not installed into
> ROOT). 
> 
> The PHP ebuild uses mostly DEPEND and not RDEPEND to specify it's
> dependencies, which is ok for compiling PHP, but fails when executing the
> php binary.

Please tell which DEPENDs should be in RDEPEND as well.
Comment 2 Nicolas Perrenoud 2012-03-05 08:06:41 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > When emerging PHP to an alternative ROOT (e.g. when bootstrapping custom
> > distributions), a lot of the dependencies are installed into the / system
> > (for example dev-db/postgresql-base when USE-ing postgres).
> 
> This cannot be simply fixed in dev-lang/php ebuilds. It's a broad issue that
> cannot be handled in a single bug report.
> 
> > This results in an error on the target system when executing php because it
> > cannot load all shared object files (because they were not installed into
> > ROOT). 
> > 
> > The PHP ebuild uses mostly DEPEND and not RDEPEND to specify it's
> > dependencies, which is ok for compiling PHP, but fails when executing the
> > php binary.
> 
> Please tell which DEPENDs should be in RDEPEND as well.

I'm currently specifiyng the following ebuilds manually 

dev-libs/oniguruma
dev-libs/libxml2
dev-db/postgresql-base

to get all ldepds working; my use flags are:

[ebuild   R   ~] dev-lang/php-5.4.0 to /opt/distro-builder/project/rootfs/ USE="bzip2 cgi cli ctype fileinfo filter hash iconv json pcntl phar posix postgres readline simplexml tokenizer unicode xml -apache2 -bcmath -berkdb -calendar -cdb -cjk -crypt -curl -curlwrappers -debug -doc -embed -enchant -exif -firebird -flatfile -fpm -frontbase -ftp -gd -gdbm -gmp -imap -inifile -intl -iodbc -ipv6 -kerberos -kolab -ldap -ldap-sasl -libedit -mhash -mssql -mysql -mysqli -mysqlnd -nls -oci8-instant-client -odbc -pdo -pic -qdbm -recode -session -sharedmem -snmp -soap -sockets -spell -sqlite3 -ssl -sybase-ct -sysvipc -threads -tidy -truetype -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -zip -zlib" 0 kB [1]
Comment 3 Nicolas Perrenoud 2012-03-05 08:07:28 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > (In reply to comment #0)
> > > When emerging PHP to an alternative ROOT (e.g. when bootstrapping custom
> > > distributions), a lot of the dependencies are installed into the / system
> > > (for example dev-db/postgresql-base when USE-ing postgres).
> > 
> > This cannot be simply fixed in dev-lang/php ebuilds. It's a broad issue that
> > cannot be handled in a single bug report.
> > 
> > > This results in an error on the target system when executing php because it
> > > cannot load all shared object files (because they were not installed into
> > > ROOT). 
> > > 
> > > The PHP ebuild uses mostly DEPEND and not RDEPEND to specify it's
> > > dependencies, which is ok for compiling PHP, but fails when executing the
> > > php binary.
> > 
> > Please tell which DEPENDs should be in RDEPEND as well.
> 
> I'm currently specifiyng the following ebuilds manually 
> 
> dev-libs/oniguruma
> dev-libs/libxml2
> dev-db/postgresql-base
> 
> to get all ldepds working; my use flags are:
> 
> [ebuild   R   ~] dev-lang/php-5.4.0 to /opt/distro-builder/project/rootfs/
> USE="bzip2 cgi cli ctype fileinfo filter hash iconv json pcntl phar posix
> postgres readline simplexml tokenizer unicode xml -apache2 -bcmath -berkdb
> -calendar -cdb -cjk -crypt -curl -curlwrappers -debug -doc -embed -enchant
> -exif -firebird -flatfile -fpm -frontbase -ftp -gd -gdbm -gmp -imap -inifile
> -intl -iodbc -ipv6 -kerberos -kolab -ldap -ldap-sasl -libedit -mhash -mssql
> -mysql -mysqli -mysqlnd -nls -oci8-instant-client -odbc -pdo -pic -qdbm
> -recode -session -sharedmem -snmp -soap -sockets -spell -sqlite3 -ssl
> -sybase-ct -sysvipc -threads -tidy -truetype -wddx -xmlreader -xmlrpc
> -xmlwriter -xpm -xsl -zip -zlib" 0 kB [1]

UPDATE: I just saw that the RDEPEND option has been updated in the newest ebuild. Thanks, that should do the trick.
Comment 4 Matti Bickel (RETIRED) gentoo-dev 2012-03-09 22:35:45 UTC
seems to be fixed, then.