php-pear installs a stale symlink
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: php-pear
So, I did a clean PEAR install, these are the steps:
till@till-laptop:~$ sudo apt-get remove php-pear
till@till-laptop:~$ sudo rm -rf /usr/share/php
till@till-laptop:~$ sudo apt-get install php-pear
After the (re-)install, the doc symlink is:
till@till-laptop:~$ ls -lah /usr/share/php/doc
lrwxrwxrwx 1 root root 20 2009-10-14 15:08 /usr/share/php/doc -> ../doc/
Let's try to install a package:
till@till-laptop:~$ sudo pear install Console_CommandLine
downloading Console_
Starting to download Console_
..........done: 37,554 bytes
Warning: mkdir(): File exists in System.php on line 277
Warning: mkdir(): File exists in /usr/share/
Call Stack:
0.0019 354672 1. {main}() /usr/share/
0.1112 4729504 2. PEAR_Command_
0.1112 4730016 3. PEAR_Command_
1.2047 14022904 4. PEAR_Installer-
1.6742 14312120 5. PEAR_Installer-
1.6748 14324424 6. PEAR_Installer-
1.6748 14325768 7. PEAR_Common-
1.6749 14326568 8. System->mkDir() /usr/share/
1.6753 14331480 9. mkdir() /usr/share/
ERROR: failed to mkdir /usr/share/
(To get a more detailed output run sudo pear -vvvv install Console_
Expected behavior is that the package installs. But it doesn't:
till@till-laptop:~$ pear list Console_CommandLine
`Console_
Intermediate fix:
till@till-laptop:~$ cd /usr/share/php
till@till-laptop:~$ sudo rm doc && sudo mkdir doc
Output after the "fix":
till@till-laptop:~$ sudo pear install Console_CommandLine
downloading Console_
Starting to download Console_
..........done: 37,554 bytes
install ok: channel:
till@till-
Installed Files For Console_CommandLine
=======
Type Install Path
php /usr/share/
php /usr/share/
php /usr/share/
[... truncated ...]
(Installed correctly.)
My system:
Linux till-laptop 2.6.31-14-generic #46-Ubuntu SMP Tue Oct 13 16:47:28 UTC 2009 x86_64 GNU/Linux
(Updated Karmic 5 minutes ago, so this should be pretty current.)
till@till-laptop:~$ apt-cache policy php-pear
php-pear:
Installed: 5.2.10.
Candidate: 5.2.10.
Version table:
*** 5.2.10.
500 http://
100 /var/lib/
We can reproduce this bug on 32bit and 64bit karmic installs.
ProblemType: Bug
Architecture: amd64
Date: Wed Oct 14 15:34:56 2009
DistroRelease: Ubuntu 9.10
Package: php-pear 5.2.10.
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: php5
Uname: Linux 2.6.31-14-generic x86_64
Thanks for the bug report Im trying to work on a fix.
Regards
chuck