[Bug 72937] Re: tar error when running make -f debian/rules binary
Phillip Susi
psusi at ubuntu.com
Thu May 9 18:08:26 UTC 2013
I'm unable to reproduce this. Does this still happen for you?
** Changed in: tar (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to tar in Ubuntu.
https://bugs.launchpad.net/bugs/72937
Title:
tar error when running make -f debian/rules binary
Status in “tar” package in Ubuntu:
Incomplete
Status in “tar” package in Debian:
New
Bug description:
Binary package hint: dpkg
Maybe this is a tar bug. It gives an unsettling error message under
dpkg. One or the other should probably change.
First noticed on 6.10 amd64 however can be reproduced on x86 version
also.
Steps to reproduce:
apt-get source <almost any package>
cd <where you build it>
make -f debian/rules binary
...
dpkg-deb: building package `whatever' in `someplace'.
tar: -: file name read contains nul character
For example:
cd /usr/src
mkdir login
cd login
apt-get build-dep login
apt-get source login
cd shadow-4.0.16
make -f debian/rules binary
...
dh_builddeb -plogin
dpkg-deb: building package `login' in `../login_4.0.16-2ubuntu4_amd64.deb'.
tar: -: file name read contains nul character
From an 'strace -f' of the above:
execve("/bin/tar", ["tar", "-cf", "-", "-T", "-", "--null", "--no-recursion"], [/* 20 vars */]) = 0
which from the rest of the strace looks like the tar in question. The "tar" manpage appears to support this usage. However if I run the following
script:
#!/bin/bash
# Script: breaktar.sh
rm -f t1 t2 t3.tar
cat <<EOF >t1
some stuff
EOF
cat <<EOF >t2
more stuff
EOF
printf "%s\0%s\0" t1 t2 |
/bin/tar -cf - -T - --null --no-recursion >t3.tar
I get:
breaktar.sh
/bin/tar: -: file name read contains nul character
although oddly enough t3.tar has the expected contents. The tar
version on 6.10:
$ tar --version
tar (GNU tar) 1.15.91
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
An older version of tar does not give this error message:
$ tar --version
tar (GNU tar) 1.15.1
breaktar.sh
(no error message)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tar/+bug/72937/+subscriptions
More information about the foundations-bugs
mailing list