Your message dated Thu, 22 Mar 2012 15:14:53 +0100
with message-id <[email protected]>
and subject line Re: [php-maint] Bug#665088: php5: Install fails due to errors
(dash-isms?) in post-install scripts
has caused the Debian Bug report #665088,
regarding php5: Install fails due to errors (dash-isms?) in post-install scripts
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
665088: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665088
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php5
Version: 5.4.0
Severity: important
I'm seeing the following on a system when upgrading to 5.4.0-2:
Setting up php5-gd (5.4.0-2) ...
/var/lib/dpkg/info/php5-gd.postinst: line 21: local: can only be used in a
function
dpkg: error processing php5-gd (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up php5-ldap (5.4.0-2) ...
/var/lib/dpkg/info/php5-ldap.postinst: line 21: local: can only be used in a
function
dpkg: error processing php5-ldap (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up php5-imap (5.4.0-2) ...
/var/lib/dpkg/info/php5-imap.postinst: line 21: local: can only be used in a
function
dpkg: error processing php5-imap (--configure):
subprocess installed post-installation script returned error exit status 1
I assumed this was a bash-ism that had crept into the scripts being
run on a system with /bin/sh linked to dash, but actually, this system
has /bin/sh linked to bash, so I guess this ends up being a dash-ism.
I simply edited the scripts to remove the 'local' modifiers and they
seem to have run fine, but I could easily see this being confusing to
other users.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 3.2.0-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/dash
--- End Message ---
--- Begin Message ---
Version: 5.4.0-3
On Thu, March 22, 2012 14:11, Michael Alan Dorman wrote:
> Package: php5
> Version: 5.4.0
> Severity: important
>
> I'm seeing the following on a system when upgrading to 5.4.0-2:
>
> Setting up php5-gd (5.4.0-2) ...
> /var/lib/dpkg/info/php5-gd.postinst: line 21: local: can only be used in a
> function
Thanks - this problem has meanwhile been solved in PHP 5.4.0-3 which will
arrive in testing within a day or two.
Cheers,
Thijs
--- End Message ---