Bug#673335: /etc/xen-tools/role.d/editor - bashism and other problems

May 17th, 2012 - 06:30 pm ET by David North | Report spam
Package: xen-tools
Version: 4.2-1
Severity: normal

The script /etc/xen-tools/role.d/editor has a #!/bin/sh bang line, however
/bin/sh is linked to /bin/dash by default on squeeze and the script appears
to have a bashism - running it as part of xen-create-image returns an error:

/etc/xen-tools/role.d/editor: 87: Bad substitution

Changing the bang line to invoke bash appears to fix the above problem and
replace it with a more cosmetic one which still allows the script to work:

/etc/xen-tools/role.d/editor: line 80: logPrint: command not found


Debian Release: 6.0.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xen-tools depends on:
ii debootstrap 1.0.26+squeeze1 Bootstrap a basic Debian system
ii libconfig-inifiles-per 2.52-1 Read .ini-style configuration file
ii libfile-slurp-perl 9999.13-1 single call read & write file rout
ii libtext-template-perl 1.45-1 Text::Template perl module
ii perl-modules 5.10.1-17squeeze3 Core Perl modules

Versions of packages xen-tools recommends:
ii libexpect-perl 1.20-2 Expect.pm - Perl Expect interface
ii rinse 1.7-1 RPM installation environment
ii xen-hypervisor-4.0-amd64 [xen 4.0.1-4 The Xen Hypervisor on AMD64
ii xen-shell 1.8-3 Console based Xen administration u

Versions of packages xen-tools suggests:
pn btrfs-tools <none> (no description available)
pn cfengine2 <none> (no description available)
pn evms-cli <none> (no description available)
pn reiserfsprogs <none> (no description available)
ii xen-utils-4.0 [xen-utils] 4.0.1-4 XEN administrative tools
pn xfsprogs <none> (no description available)

/etc/xen-tools/role.d/editor changed [not included]
/etc/xen-tools/xen-tools.conf changed [not included]
/etc/xen-tools/xm.tmpl changed [not included]




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Similar topics

Replies

#1 Axel Beckert
May 17th, 2012 - 06:50 pm ET | Report spam
Hi David,

David North wrote:
The script /etc/xen-tools/role.d/editor has a #!/bin/sh bang line, however
/bin/sh is linked to /bin/dash by default on squeeze and the script appears
to have a bashism [...]



This is been already fixed with 4.2.1-1 which is in Debian Testing and
has been reported at http://bugs.debian.org/605203 already.

Changing the bang line to invoke bash appears to fix the above problem and
replace it with a more cosmetic one which still allows the script to work:

/etc/xen-tools/role.d/editor: line 80: logPrint: command not found



Do you still experience this issue with 4.2.1-1 from Testing? (It
should be installable on Squeeze as well.)

Regards, Axel
,''`. | Axel Beckert , http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search