[php-maint] Bug#496775: dist-upgrading php5 will attempt to remove apache2-mpm-worker

Bjørn Mork bjorn at mork.no
Wed Aug 27 10:59:39 UTC 2008


Package: php5
Version: 5.2.6-3
Severity: minor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am a bit unsure about this, but at least it surprised me as a user so
an explanation could be needed.  Please point me in the correct
direction in case it's a FAQ...

I prefer the threaded apache2-mpm-worker and am therefore using php5-cgi
instead of libapache2-mod-php5.  When running "apt-get dist-upgrade" I
was presented with

canardo:/home/bjorn# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  apache2-mpm-worker
The following NEW packages will be installed:
  apache2-mpm-prefork libapache2-mod-php5
The following packages will be upgraded:
  checksecurity freeradius freeradius-common gpsd gpsd-clients
libfreeradius2 libgps17 libgraphviz4 php-pear php5 php5-cgi
  php5-cli php5-common php5-gd php5-imap php5-ldap php5-mcrypt
php5-mysql php5-pspell php5-snmp php5-tidy php5-xmlrpc reportbug
  rhino x11-xserver-utils
25 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 14.1MB of archives.
After this operation, 6234kB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.

I know I could (and should?) have avoided this by doing "apt-get upgrade",
but the point is that the suggested removal of apache2-mpm-worker is
completely unnecessary.  It seems to be caused by php5 depending on 
specific versions of libapache2-mod-php5 | php5-cgi.  This means that the 
dependendcy is unsatisfied at the point of upgrade and apt-get will try
to satisfy it by installing the first option it finds: The newer version
of libapache2-mod-php5.

I believe the versioned dependecy is unnecessary.  php5 could just as
well depend on 
 libapache2-mod-php5 | libapache2-mod-php5filter | php5-cgi, php5-common
and thereby avoid apt-get dragging in libapache2-mod-php5 when
libapache2-mod-php5filter or php5-cgi is already installed.


Bjørn

- -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (700, 'testing'), (650, 'stable'), (600, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5 depends on:
ii  php5-cgi                      5.2.6-3    server-side, HTML-embedded scripti
ii  php5-common                   5.2.6-3    Common files for packages built fr

php5 recommends no packages.

php5 suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAki1M5gACgkQ10rqkowbIsnNuACffbLJpIl1GXVONgtn5l1tESif
/uEAniERGEvRTanmPTdFTTGCjhuuV9a8
=8lnI
-----END PGP SIGNATURE-----





More information about the pkg-php-maint mailing list