Package: dash
Version: 0.5.2-1
Severity: important

I've been using dash as sh for quite some time now with no problems at
all, but recently I tried to install the sun-jre package built by
make-jpkg, and the following error resulted:

dpkg: error processing downloads/sun-j2re1.5_1.5.0+update01_i386.deb
(--install):
  subprocess post-installation script returned error exit status 2
/var/lib/dpkg/info/sun-j2re1.5.postinst: 14: Syntax error: "(" unexpected 
(expecting "fi")

The exact same package installed fine on another box, and when I checked
the differences it turned out that on the other machine I hadn't
selected dash to provide /bin/sh. Switching back to bash did indeed fix
the issue, and I was able to install without a hitch.

The part of the postinst script that dash choked on seems to be the
following:

if [ "$1" = configure ]; then
j2se_base="/usr/lib/j2re1.5-sun"
priority=200

< some stuff >  

# alternative <program>
function program_alternative() {

... Etc. In short, there is a function being declared while it's not out
of the if block yet, and dash doesn't accept that. I've checked with the
POSIX standard and while I don't disgagree that it's risky and sloppy
programming, it's not actually against the standards.



-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF8)

Versions of packages dash depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- debconf information:
* dash/sh: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to