[Bug 574685] [NEW] php5-cgi installs duplicate executables, should use symlink

Mark A. Ziesemer online at mark.ziesemer.com
Mon May 3 19:54:00 BST 2010


Public bug reported:

Binary package hint: php5

On Ubuntu 10.04 (lucid), installed php5-cgi .  Observed that the
php5-cgi is copied as both /usr/bin/php5-cgi and /usr/lib/cgi-bin/php5 .
One of these should be a symbolic link instead - probably /usr/lib/cgi-
bin/php5 to /usr/bin/php5-cgi ?  This executable is ~7.5 MB, so there is
some space savings along with shared maintenance to consider.

Note that the only visible difference between the 2 is a difference in
the build time by a few seconds:

$ ls -l /usr/bin/php5-cgi /usr/lib/cgi-bin/php5
-rwxr-xr-x 1 root root 7824328 2010-04-09 03:32 /usr/bin/php5-cgi
-rwxr-xr-x 1 root root 7824328 2010-04-09 03:32 /usr/lib/cgi-bin/php5

$ sha1sum /usr/bin/php5-cgi /usr/lib/cgi-bin/php5
df2ec0cd02e540ef1133d045fe950165ad33e032  /usr/bin/php5-cgi
e861dc88fa2db179f24c76cd7f2246b6a428b610  /usr/lib/cgi-bin/php5

$ /usr/bin/php5-cgi --version
PHP 5.3.2-1ubuntu4 with Suhosin-Patch (cgi-fcgi) (built: Apr  9 2010 08:17:53)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

$ /usr/lib/cgi-bin/php5 --version
PHP 5.3.2-1ubuntu4 with Suhosin-Patch (cgi-fcgi) (built: Apr  9 2010 08:17:41)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies


$ lsb_release -rd
Description:    Ubuntu 10.04 LTS
Release:        10.04

php5-cgi:  5.3.2-1ubuntu4

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
php5-cgi installs duplicate executables, should use symlink
https://bugs.launchpad.net/bugs/574685
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list