[Pkg-samba-maint] Bug#771689: samba-common: preinst syntax errors

Andreas Henriksson andreas at fatal.se
Mon Dec 1 17:12:45 UTC 2014


Package: samba-common
Version: 2:4.1.13+dfsg-2
Severity: normal

Dear Maintainer,

While building a new debian jessie docker container I spotted:

Preparing to unpack .../samba-common_2%3a4.1.13+dfsg-2_all.deb ...
/var/lib/dpkg/tmp.ci/preinst: 5: [: =: unexpected operator
Unpacking samba-common (2:4.1.13+dfsg-2) ...

This seems to be caused by the underquoted subshell invocation for readlink.
The file it tries to read is from the samba-common package itself and
thus does not exist on new installs. Just adding quotes around the
subshell in the if on line 5 should fix this.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages samba-common depends on:
ii  debconf [debconf-2.0]  1.5.54
ii  dpkg                   1.17.21
ii  ucf                    3.0030

Versions of packages samba-common recommends:
ii  samba-common-bin  2:4.1.13+dfsg-2

samba-common suggests no packages.

-- debconf information excluded



More information about the Pkg-samba-maint mailing list