[php-maint] Bug#664853: php5-curl: update to 5.4.0-2 fails

J G Miller miller at yoyo.ORG
Wed Mar 21 11:20:09 UTC 2012


Package: php5-curl
Version: 5.4.0-2
Severity: critical


Having removed the incorrectly inserted "local" from the
post installation of php5-common in order to get that to install

diff    php5-common.postinst~   php5-common.postinst
21,22c21,22
< 	    local md5sum="$(md5sum ${inidir}/${inifile}.dpkg-new | sed -e 's/ .*//')"
< 	    local old_md5sum="$(md5sum ${inidir}/${inifile} | sed -e 's/ .*//')"
---
> 	    md5sum="$(md5sum ${inidir}/${inifile}.dpkg-new | sed -e 's/ .*//')"
> 	    old_md5sum="$(md5sum ${inidir}/${inifile} | sed -e 's/ .*//')"



I now discover that the postinstallation scripts for the other php5 components
also contain this error.


/var/lib/dpkg/info/php5-curl.postinst: 21: local: not in a function
dpkg: error processing php5-curl (--configure):

/var/lib/dpkg/info/php5-gd.postinst: 21: local: not in a function
dpkg: error processing php5-gd (--configure):
 subprocess installed post-installation script returned error exit status 2

/var/lib/dpkg/info/php5-intl.postinst: 21: local: not in a function
dpkg: error processing php5-intl (--configure):
 subprocess installed post-installation script returned error exit status 2

/var/lib/dpkg/info/php5-ldap.postinst: 21: local: not in a function
dpkg: error processing php5-ldap (--configure):
 subprocess installed post-installation script returned error exit status 2

/var/lib/dpkg/info/php5-mcrypt.postinst: 21: local: not in a function
dpkg: error processing php5-mcrypt (--configure):
 subprocess installed post-installation script returned error exit status 2

/var/lib/dpkg/info/php5-mysql.postinst: 21: local: not in a function
dpkg: error processing php5-mysql (--configure):
 subprocess installed post-installation script returned error exit status 2

/var/lib/dpkg/info/php5-pspell.postinst: 21: local: not in a function
dpkg: error processing php5-pspell (--configure):
 subprocess installed post-installation script returned error exit status 2

/var/lib/dpkg/info/php5-sqlite.postinst: 22: local: not in a function
dpkg: error processing php5-sqlite (--configure):
 subprocess installed post-installation script returned error exit status 2

/var/lib/dpkg/info/php5-xmlrpc.postinst: 21: local: not in a function
dpkg: error processing php5-xmlrpc (--configure):
 subprocess installed post-installation script returned error exit status 2

The use of the key word local in this context is an error in Bourne shell scripts.

Does nobody actually check the installation of updates before they are released?


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-curl depends on:
ii  dpkg                                       1.16.1.2
ii  libapache2-mod-php5 [phpapi-20090626+lfs]  5.3.10-2
ii  libc6                                      2.13-27
ii  libcurl3                                   7.24.0-1
ii  php5-cli [phpapi-20090626+lfs]             5.3.10-2
ii  php5-common                                5.3.10-2

php5-curl recommends no packages.

php5-curl suggests no packages.

-- Configuration Files:
/etc/php5/conf.d/curl.ini changed [not included]

-- no debconf information





More information about the pkg-php-maint mailing list