Debian Bug report logs -
#665088
php5: Install fails due to errors (dash-isms?) in post-install scripts
Reported by: Michael Alan Dorman <mdorman@ironicdesign.com>
Date: Thu, 22 Mar 2012 13:21:02 UTC
Severity: important
Found in version 5.4.0
Fixed in version 5.4.0-3
Done: "Thijs Kinkhorst" <thijs@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#665088; Package php5.
(Thu, 22 Mar 2012 13:21:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Alan Dorman <mdorman@ironicdesign.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Thu, 22 Mar 2012 13:21:13 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
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
Reply sent
to "Thijs Kinkhorst" <thijs@debian.org>:
You have taken responsibility.
(Thu, 22 Mar 2012 14:18:57 GMT) (full text, mbox, link).
Notification sent
to Michael Alan Dorman <mdorman@ironicdesign.com>:
Bug acknowledged by developer.
(Thu, 22 Mar 2012 14:19:02 GMT) (full text, mbox, link).
Message #10 received at 665088-done@bugs.debian.org (full text, mbox, reply):
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
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#665088; Package php5.
(Thu, 22 Mar 2012 15:00:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Alan Dorman <mdorman@ironicdesign.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Thu, 22 Mar 2012 15:00:07 GMT) (full text, mbox, link).
Message #15 received at 665088@bugs.debian.org (full text, mbox, reply):
owner@bugs.debian.org (Debian Bug Tracking System) writes:
> This is an automatic notification regarding your Bug report
> which was filed against the php5 package:
>
> #665088: php5: Install fails due to errors (dash-isms?) in post-install scripts
>
> It has been closed by "Thijs Kinkhorst" <thijs@debian.org>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact "Thijs Kinkhorst" <thijs@debian.org> by
> replying to this email.
Oops, sorry if this was a dup---I looked at open bugs, but didn't think
to look at already-closed ones.
Thanks,
Mike.
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 20 Apr 2012 07:36:50 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 01:57:10 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.