[Pkg-php-pecl] [php-maint] Help needed: automatic dependency on phpapi-20131226 and php5enmod

Ondřej Surý ondrej at sury.org
Tue Jan 12 13:23:05 UTC 2016


Hi Gert,

we are in middle of transition to PHP 7.0 and new packaging
infrastructure, so some breakages are expected.

As a temporary workaround add "php5-common, php5 | php5-cli" to Depends,
but this will break soon enough anyway as src:php5 will be removed from
unstable in upcoming weeks.

Stretch will carry only PHP 7.0, so you should start migrating to PHP
7.0 right away (and I recommend subscribing to pkg-php-pecl if you are
packaging binary extension and pkg-php-pear if you are maintaining PEAR
packages). 

Examples of packaging that can be used before pkg-php-tools are fixed
can be found here:

for a extension that supports both PHP 5.6 and 7.0: 
http://anonscm.debian.org/cgit/pkg-php/xdebug.git/log/?h=master-7.0

or here for packaging that has different sources for different PHP
versions:
http://anonscm.debian.org/cgit/pkg-php/php-apcu.git/log/?h=master-7.0

Please note that dual builds are just a proof of concept that can be
used by outside repositories and we intend to build extensions only for
PHP 7.0 in Debian stretch.

Cheers,
Ondrej

On Tue, Jan 12, 2016, at 13:05, Gert Wollny wrote:
> Dear all, 
> 
> in one of the team maintained packages of debian-med that I recently
> started top work on, gdcm, currently the following error happens at
> install time if php5-common is not installed (Bug #810668): 
> 
> var/lib/dpkg/info/php5-gdcm.postinst: 4: /var/lib/dpkg/info/php5
> -gdcm.postinst: php5enmod: not found
>   dpkg: error processing package php5-gdcm (--configure):
>    subprocess installed post-installation script returned error exit
> status 127
>   Errors were encountered while processing:
> 
> The according code has been manually added to the postinst script. 
> 
> The package build-depends on php5-dev and php5-cli, and the control
> file adds a dependency to the virtual package phpapi-20131226 via
> ${php:Depends}. Now it seems that php5-common is the only package that
> provides php5enmod and it is not the default that gets pulled in by
> phpapi-20131226, instead php5.6-phpdbg is installed. 
> 
> Since php5-common is the only package that provides php5enmod and php5
> -common is not in the default dependency chain of phpapi-20131226, I
> have the following questions: 
> 
> Is the calls to  php5enmod and php5dismod in postinst and postrm
> actually necessary, or can I remove these calls savely? 
> 
> If these calls are needed: Should I file a bug report against dh-php5
> so that ${php:Depends} will be made to add the dependency on 
> php5-common, or rather against php so that the dependency chain is set
> properly to alway pull in php5-common via phpapi-20131226? 
> 
> Many thanks, 
> Gert 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint


-- 
Ondřej Surý <ondrej at sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



More information about the Pkg-php-pecl mailing list