[php-maint] Bug#627937: Bug#627937: php-pear should depend on php5-dev

Ondřej Surý ondrej at debian.org
Thu May 26 15:57:57 UTC 2011


On Wed, May 25, 2011 at 19:23, Clint Byrum <clint at ubuntu.com> wrote:
> Package: php5
> Version: 5.3.5-1
> Severity: normal
> Tags: patch
> User: ubuntu-devel at lists.ubuntu.com
> Usertags: origin-ubuntu oneiric ubuntu-patch
>
>
> Forwarded from Ubuntu:
>
> https://launchpad.net/bugs/634359
>
> In Ubuntu, the attached patch was applied to achieve the following:
>
> Binary package hint: php-pear
>
> Quoting from the bug report:
>> Most of PECL packages require /usr/bin/phpize and some other php5-dev
>> files to get installed/compiled (i.e. pecl/fribidi), but php5-dev is
>> not always installed.

Are there any PECL packages which don't require php5-dev?  The most
elegant solution would be to move /usr/bin/pecl to php5-dev and maybe
add some note about missing php5-dev when installing PECL package via
pear install.

Or what about adding those two prints to PEAR/Builder.php:

        $err = $this->_runCommand($this->config->get('php_prefix')
                                . "phpize" .
                                $this->config->get('php_suffix'),
                                array(&$this, 'phpizeCallback'));
        if (PEAR::isError($err)) {
            return $err;
        }

        if (!$err) {
            print "If the command failed with 'phpize: not found' then
you need to install php5-dev package";
            print "You can do it by running 'apt-get install php5-dev'
as a root user";
            return $this->raiseError("`phpize' failed");
        }

This seems less intrusive then installing php5-dev for all php-pear users.

What do you think?

O.
-- 
Ondřej Surý <ondrej at sury.org>
http://blog.rfc1925.org/





More information about the pkg-php-maint mailing list