Bug#345671: xbase-clients: [startx] uses non-POSIX statements (/bin/bash)

2006-01-02 Thread Jari Aalto
Package: xbase-clients
Version: 6.9.0.dfsg.1-1
Severity: serious

The new /usr/X11R6/bin/startx script contains statement that is
is not /bin/sh compatible. I use /bin/sh => /bin/dash and the
script fails to start.

The offending line is:

   147  add $displayname . $mcookie
   148  EOF
   149  removelist="$displayname $removelist"
   150  else
>> 151  dummy=$((dummy+1));
   152  /usr/X11R6/bin/xauth -q -f $xserverauthfile << EOF
   153  add :$dummy . $authcookie
   154  EOF
   155  fi
   156  done


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.14-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)

Versions of packages xbase-clients depends on:
ii  cpp   4:4.0.2-2  The GNU C preprocessor (cpp)
ii  libc6 2.3.5-9GNU C Library: Shared libraries an
ii  libdmx1   6.9.0.dfsg.1-1 Distributed Multihead X client lib
ii  libexpat1 1.95.8-3   XML parsing C library - runtime li
ii  libfontconfig12.3.2-1.1  generic font configuration library
ii  libfreetype6  2.1.10-1   FreeType 2 font engine, shared lib
ii  libfs66.9.0.dfsg.1-1 X Font Server library
ii  libglu1-xorg [libglu1]6.9.0.dfsg.1-1 Mesa OpenGL utility library [X.Org
ii  libice6   6.9.0.dfsg.1-1 Inter-Client Exchange library
ii  libncurses5   5.5-1  Shared libraries for terminal hand
ii  libpng12-01.2.8rel-5 PNG library - runtime
ii  libsm66.9.0.dfsg.1-1 X Window System Session Management
ii  libxau6   6.9.0.dfsg.1-1 X Authentication library
ii  libxaw8   6.9.0.dfsg.1-1 X Athena widget set library
ii  libxcursor1   1.1.3-1X cursor management library
ii  libxext6  6.9.0.dfsg.1-1 X Window System miscellaneous exte
ii  libxfixes36.9.0.dfsg.1-1 X Window System miscellaneous 'fix
ii  libxft2   2.1.7-1FreeType-based font drawing librar
ii  libxi66.9.0.dfsg.1-1 X Window System Input extension li
ii  libxinerama1  6.9.0.dfsg.1-1 X Window System multi-head display
ii  libxkbfile1   6.9.0.dfsg.1-1 X Keyboard Extension file parsing 
ii  libxkbui1 6.9.0.dfsg.1-1 X Keyboard Extension user interfac
ii  libxmu6   6.9.0.dfsg.1-1 X Window System miscellaneous util
ii  libxmuu1  6.9.0.dfsg.1-1 lightweight X Window System miscel
ii  libxp66.9.0.dfsg.1-1 X Window System printing extension
ii  libxpm4   6.9.0.dfsg.1-1 X pixmap library
ii  libxrandr26.9.0.dfsg.1-1 X Window System Resize, Rotate and
ii  libxrender1   1:0.9.0.2-1X Rendering Extension client libra
ii  libxss1   6.9.0.dfsg.1-1 X Screen Saver client-side library
ii  libxt66.9.0.dfsg.1-1 X Toolkit Intrinsics
ii  libxtrap6 6.9.0.dfsg.1-1 X Window System protocol-trapping 
ii  libxtst6  6.9.0.dfsg.1-1 X Window System event recording an
ii  libxv16.9.0.dfsg.1-1 X Window System video extension li
ii  libxxf86dga1  6.9.0.dfsg.1-1 X Direct Graphics Access extension
ii  libxxf86misc1 6.9.0.dfsg.1-1 X miscellaneous extensions library
ii  libxxf86vm1   6.9.0.dfsg.1-1 X Video Mode selection library
ii  xlibmesa-gl [libgl1]  6.9.0.dfsg.1-1 Mesa 3D graphics library [X.Org]
ii  xlibs 6.9.0.dfsg.1-1 X Window System client libraries m
ii  xlibs-data6.9.0.dfsg.1-1 X Window System client data
ii  zlib1g1:1.2.3-9  compression library - runtime

xbase-clients recommends no packages.

-- no debconf information


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



Bug#345671: xbase-clients: [startx] uses non-POSIX statements (/bin/bash)

2006-01-02 Thread Adam D. Barratt
package xbase-clients
severity 345671 normal
merge 345671 345446
thanks

On Mon, 2006-01-02 at 19:55 +0200, Jari Aalto wrote:
> Package: xbase-clients
> Version: 6.9.0.dfsg.1-1
> Severity: serious
> 
> The new /usr/X11R6/bin/startx script contains statement that is
> is not /bin/sh compatible. I use /bin/sh => /bin/dash and the
> script fails to start.

The only problem with the line is the fact that a $ was missed out
accidentally; this has already been reported as 345446 a few days ago,
and is already fixed in SVN.

$(()) for shell arithmetic is perfectly POSIX complaint.

Regards,

Adam


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