The current ebuilds (2.11.23 and 2.11.32) call php-ext-base_addtoinifiles "[Debugger]" to add a section to the php.ini files. This fails because the eclass functions expects key value parameters: ... * Added 'extension=/etc/php4/lib/dbg.so' to /etc/php/apache2-php4/php.ini * Added 'extension=/etc/php4/lib/dbg.so' to /etc/php/cli-php4/php.ini /usr/lib/portage/bin/ebuild.sh: line 125: $3: ambiguous redirect * Added '[Debugger]=etc/php/apache2-php4/php.ini' to / dirname: too few arguments Try `dirname --help' for more information. /usr/lib/portage/bin/doins: at least one argument needed ... Perhaps we need a "addsectiontoini" function. But the Extension runs fine without the [Debugger] line in the php.ini file. Also, the php.ini modification stay in the sandbox, because they are done in pkg_postinst. We need to do this in src_install (like mmcache ebuild). The line php-ext-base_addtoinifiles "extension" "/etc/php4/lib/dbg.so" is unnecessary because the extension is already added in php-ext-source_src_install. Patches enclosed. Cheers, J
The current ebuilds (2.11.23 and 2.11.32) call php-ext-base_addtoinifiles "[Debugger]" to add a section to the php.ini files. This fails because the eclass functions expects key value parameters: ... * Added 'extension=/etc/php4/lib/dbg.so' to /etc/php/apache2-php4/php.ini * Added 'extension=/etc/php4/lib/dbg.so' to /etc/php/cli-php4/php.ini /usr/lib/portage/bin/ebuild.sh: line 125: $3: ambiguous redirect * Added '[Debugger]=etc/php/apache2-php4/php.ini' to / dirname: too few arguments Try `dirname --help' for more information. /usr/lib/portage/bin/doins: at least one argument needed ... Perhaps we need a "addsectiontoini" function. But the Extension runs fine without the [Debugger] line in the php.ini file. Also, the php.ini modification stay in the sandbox, because they are done in pkg_postinst. We need to do this in src_install (like mmcache ebuild). The line php-ext-base_addtoinifiles "extension" "/etc/php4/lib/dbg.so" is unnecessary because the extension is already added in php-ext-source_src_install. Patches enclosed. Cheers, Jürgen
Created attachment 53332 [details, diff] move php.ini modifications to src_install
The proposed changes to the dev-php/phpdbg-* ebuilds have been made.