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)
(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.
(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]
(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.
seems to be fixed, then.