Package: apt-listbugs
Version: 0.0.48
Severity: normal

Recently I started getting the error messages during my apt-get call.
I tracked them down to the following call in apt-listbugs:

changelog = `/usr/bin/dpkg-deb --fsys-tarfile #{pkgpath} | tar -x -O 
./usr/share/doc/#{field["package"]}/#{chfile} -f - 2> /dev/null | gzip -d 2> 
/dev/null`

The tar program is called in the following way:

$ tar -x -O dummy -f -

This works fine as long as the TAPE environment variable is not set,
however:

$ TAPE=/dev/nst0 tar -x -O dummy -f -
tar: /dev/nst0: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

This is the reason for the error message shown in the subject line.

This problem can simply be solved by changing the order of the parameters:

$ TAPE=/dev/nst0 tar -x -f - -O dummy
... Waiting for input

I assume tar stops parsing the flags after the first pathname
parameter (dummy in the example) like it should according to the
single unix specification, so it nevers sees the "-f -" option to read
from stdin.  It just reads from stdin if the TAPE variable is unset
which should never be assumed by a software.

        Torsten

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.10
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages apt-listbugs depends on:
ii  apt                           0.5.28.6   Advanced front-end for dpkg
ii  libdpkg-ruby1.8               0.3.1      modules/classes for dpkg on ruby 1
ii  libintl-gettext-ruby1.8       0.11-5     Gettext wrapper for Ruby 1.8
ii  libruby1.8 [libzlib-ruby1.8]  1.8.2-7    Libraries necessary to run Ruby 1.
ii  libxml-parser-ruby1.8         0.6.8-1    Interface of expat for the scripti
ii  ruby                          1.8.2-1    An interpreter of object-oriented 
ii  tar                           1.15.1-1   GNU tar

-- no debconf information


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

Reply via email to