php5 should provide php5-mhash transitional package to remove mhash.ini conffile

Bug #541439 reported by Daniel Hahler
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Triaged
Low
Chuck Short
Lucid
Invalid
Low
Chuck Short

Bug Description

Binary package hint: php5

When upgrading php5 in Jaunty, php5-mhash gets removed because of a Conflicts.

mhash is provided by PHP itself now and therefore this is OK.

However, there's the mhash.ini conffile left, which causes a warning on startup:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mhash.so' - /usr/lib/php5/20090626+lfs/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0

The conffile should probably get removed by shipping an empty php5-mhash transitional package.

Alternatively, php5-common might remove the conffile itself?!

Apart from that, I could not "apt-get purge php5-mhash", because it selects php5-common instead! ("dpkg -P php5-mhash" works though), filed as bug 541438.

ProblemType: Bug
Architecture: i386
Date: Thu Mar 18 19:40:22 2010
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: nvidia
Package: php5 5.3.1-5ubuntu1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
SourcePackage: php5
Uname: Linux 2.6.32-16-generic i686

Revision history for this message
Daniel Hahler (blueyed) wrote :
description: updated
Chuck Short (zulcss)
Changed in php5 (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
shake.chen (shake-chen) wrote :

php5-common: Conflicts: php5-mhash
php5-mhash: Depends: php5 but it is not going to be installed or
phpapi-20060613+lfs but it is not installable
Depends: php5-common (= 5.2.12.dfsg.1-2ubuntu2) but 5.3.1-5ubuntu1 is to be installed

Revision history for this message
Daniel Hahler (blueyed) wrote :

shake.chen, what are you trying to say / point out?

Changed in php5 (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
shake.chen (shake-chen) wrote :

I just want to confirm I can not install php5-mhash,

# apt-get install php5-mhash
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  php5-mhash: Depends: php5 but it is not going to be installed or
                       phpapi-20060613+lfs but it is not installable
              Depends: php5-common (= 5.2.12.dfsg.1-2ubuntu2) but it is not going to be installed
E: Broken packages

Daniel Hahler (blueyed)
Changed in php5 (Ubuntu):
milestone: none → ubuntu-10.04-beta-2
Thierry Carrez (ttx)
Changed in php5 (Ubuntu Lucid):
milestone: ubuntu-10.04-beta-2 → none
Thierry Carrez (ttx)
Changed in php5 (Ubuntu Lucid):
assignee: nobody → Chuck Short (zulcss)
Thierry Carrez (ttx)
Changed in php5 (Ubuntu Lucid):
importance: Wishlist → Low
Revision history for this message
Chuck Short (zulcss) wrote :

This needs to be fixed in maverick before it can be nominated for a release.

Changed in php5 (Ubuntu Lucid):
status: Triaged → Invalid
Revision history for this message
jeffreyguo (govip) wrote :

This my configure :
php5-common: Conflicts: php5-mhash

help me
Thanks

Changed in php5 (Ubuntu):
assignee: Chuck Short (zulcss) → jeffreyguo (govip)
Revision history for this message
DigiAngel (jlay) wrote :

I'm in the same boat after upgrading to 10.10..I get emails stating:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mhash.so' - /usr/lib/php5/20090626/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0

mhash.so doesn't exist.

Revision history for this message
Daniel Hahler (blueyed) wrote :

@Jeffrey: please do not assign bug to yourself, when you're not planning to work on it. Re-assigning Chuck.

The workaround is to remove the mhash.ini file:
rm /etc/php5/conf.d/mhash.ini (not verified)

Changed in php5 (Ubuntu):
assignee: jeffreyguo (govip) → Chuck Short (zulcss)
Revision history for this message
anibal-sanchez (anibal-sanchez-oquma) wrote :

workaround works OK!

Txs

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.