Debian bug report logs - #783
tar --same-order doesn't work

Package: tar; Reported by: iwj10@cus.cam.ac.uk (Ian Jackson); 204 days old.

Message received at debian-bugs:


From cus.cam.ac.uk!iwj10 Mon Apr 10 04:29:50 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0ryHfB-0006g5C; Mon, 10 Apr 95 04:29 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA07141
  (5.65c/IDA-1.4.4 for <debian-bugs@pixar.com>); Mon, 10 Apr 1995 04:29:43 -0700
Received: by bootes.cus.cam.ac.uk 
	(Smail-3.1.29.0 #30) id m0ryHL0-000BzlC; Mon, 10 Apr 95 12:08 BST
Received: by chiark
	id m0ryGZh-0000YCZ
	(Debian /\oo/\ Smail3.1.29.1 #29.30); Mon, 10 Apr 95 11:20 BST
Message-Id: <m0ryGZh-0000YCZ.ijackson@nyx.cs.du.edu>
Date: Mon, 10 Apr 95 11:20 BST
From: iwj10@cus.cam.ac.uk (Ian Jackson)
To: Debian bugs submission address <debian-bugs@pixar.com>
Subject: tar --same-order doesn't work

Package: tar
Version: 1.11.5-2

According to tar --help:
      --same-owner             create extracted files with the same ownership 
  -p, --same-permissions       extract all protection information
      --preserve-permissions   same as -p
  -s, --same-order             sort names to extract to match archive
      --preserve-order         same as -s
      --preserve               same as both -p and -s

I find this suspicious - in particular, I'd expect -s to do
--same-owner, not --same-order.  However, even --same-order doesn't
appear to work.  See below.

In one window (p is a named pipe):

chiark:rjk> dd bs=10240 if=/dev/st0 | tee p | dd bs=10240 | tar -T ~/junk/xfiles --same-order -vvxf -
^C
0+16102 records in
0+16102 records out
3570+0 records in
3570+0 records out
chiark:rjk> cat ~/junk/xfiles 
debfiles/x11/conflicting/XpmR6-3.4c-3.deb
debfiles/x11/conflicting/Xpm_compR6-3.4c-3.deb
debfiles/x11/conflicting/Xpm_develR6-3.4c-3.deb
debfiles/devel/librl-2.0.3-2.deb
debfiles/text/gs_both-2.6.1pl4-4.deb
debfiles/text/gs_svga-2.6.1pl4-4.deb
debfiles/tex/mfxno-2.71.deb
debfiles/tex/mfxyes-2.71.deb
debfiles/devel/tclX-7.3b-2.deb
debfiles/x11/conflicting/xr5shlib-2.1.1-1.deb
chiark:rjk> 

In another:

chiark:rjk> dd if=p bs=10240 | tar vvtf -
drwxr-xr-x 1376/0            0 Apr  3 16:36 1995 additional/
-rw-r--r-- 1376/0     16692989 Apr  3 16:32 1995 additional/XFree86-3.1.1-1.tar.gz
-rw-r--r-- 1376/0       366348 Apr  3 16:33 1995 additional/ncurses-developer-1.8.7-2.deb
-rw-r--r-- 1376/0       322221 Apr  3 16:33 1995 additional/ncurses-runtime-1.8.7-2.deb
-rw-r--r-- 1376/0       312636 Apr  3 16:34 1995 additional/ncurses-1.8.7-2.tar.gz
-rw-r--r-- 1376/0      1905932 Apr  3 16:39 1995 additional/libc-4.6.27-4.tar.gz
drwxr-xr-x 1376/0            0 Mar 30 18:00 1995 debfiles/
drwxr-xr-x 1376/0            0 Mar 30 17:42 1995 debfiles/editors/
-rw-r--r-- 1376/0        51071 Mar 30 17:09 1995 debfiles/editors/beav-140-2.deb
-rw-r--r-- 1376/0        38389 Mar 30 17:09 1995 debfiles/editors/ee-1.72-2.deb
-rw-r--r-- 1376/0         6976 Mar 30 17:09 1995 debfiles/editors/elv-ctags-18pl4-7.deb
-rw-r--r-- 1376/0       137353 Mar 30 17:10 1995 debfiles/editors/elv-doc-18pl4-7.deb
-rw-r--r-- 1376/0         3856 Mar 30 17:10 1995 debfiles/editors/elv-fmt-18pl4-7.deb
-rw-r--r-- 1376/0        62741 Mar 30 17:11 1995 debfiles/editors/elv-vi-18pl4-7.deb
-rw-r--r-- 1376/0      3111231 Mar 30 17:28 1995 debfiles/editors/emacs-19.28-3.deb
-rw-r--r-- 1376/0      2054033 Mar 30 17:37 1995 debfiles/editors/emacs-el-19.28-3.deb
-rw-r--r-- 1376/0       548010 Mar 30 17:39 1995 debfiles/editors/emacs-nox-19.28-3.deb
-rw-r--r-- 1376/0       639065 Mar 30 17:42 1995 debfiles/editors/emacs-x-19.28-3.deb
-rw-r--r-- 1376/0       179765 Mar 30 17:42 1995 debfiles/editors/nvi-1.34-4.deb
-rw-r--r-- 1376/0        60465 Mar 30 17:42 1995 debfiles/editors/pico-2.5-1.deb
-rw-r--r-- 1376/0       109043 Mar 30 17:43 1995 debfiles/editors/vim-3.0-0.deb
drwxr-xr-x 1376/0            0 Mar 30 17:11 1995 debfiles/electronics/
-rw-r--r-- 1376/0       196926 Mar 30 17:11 1995 debfiles/electronics/acs-016-0.deb
-rw-r--r-- 1376/0       136891 Mar 30 17:12 1995 debfiles/electronics/pcb-1.1.1.2-1.deb
drwxr-xr-x 1376/0            0 Mar 30 17:24 1995 debfiles/misc/
-rw-r--r-- 1376/0        37664 Mar 30 17:12 1995 debfiles/misc/dialog-0.5-1.deb
-rw-r--r-- 1376/0       769202 Mar 30 17:17 1995 debfiles/misc/doc-0.93-3.deb
-rw-r--r-- 1376/0        37695 Mar 30 17:17 1995 debfiles/misc/file-3.15-1.deb
-rw-r--r-- 1376/0       535860 Mar 30 17:21 1995 debfiles/misc/jargon-3.1.0-1.deb
-rw-r--r-- 1376/0        49401 Mar 30 17:21 1995 debfiles/misc/less-278-1.deb
-rw-r--r-- 1376/0        20522 Mar 30 17:21 1995 debfiles/misc/mkisofs-1.03-1.deb
-rw-r--r-- 1376/0        24297 Mar 30 17:22 1995 debfiles/misc/mtools-2.0.7-9.deb
-rw-r--r-- 1376/0        23995 Mar 30 17:22 1995 debfiles/misc/patch-2.1-6.deb
-rw-r--r-- 1376/0       168965 Mar 30 17:24 1995 debfiles/misc/screen-3.6.0-1.deb
-rw-r--r-- 1376/0        25441 Mar 30 17:24 1995 debfiles/misc/shar-4.0-2.deb
-rw-r--r-- 1376/0         3500 Mar 30 17:24 1995 debfiles/misc/symlinks-0.4-3.deb
-rw-r--r-- 1376/0         8773 Mar 30 17:24 1995 debfiles/misc/time-1.6-2.deb
-rw-r--r-- 1376/0         6053 Mar 30 17:24 1995 debfiles/misc/uuencode-1.0-8.deb
drwxr-xr-x 1376/0            0 Mar 30 17:14 1995 debfiles/math/
-rw-r--r-- 1376/0        35797 Mar 30 17:12 1995 debfiles/math/bc-1.03-3.deb
-rw-r--r-- 1376/0        18992 Mar 30 17:12 1995 debfiles/math/dc-1.03-3.deb
-rw-r--r-- 1376/0       248152 Mar 30 17:14 1995 debfiles/math/gnuplot-3.5-2.deb
-rw-r--r-- 1376/0       201192 Mar 30 17:14 1995 debfiles/math/oleo-1.6-2.deb
drwxr-xr-x 1376/0            0 Mar 30 18:00 1995 debfiles/news/
-rw-r--r-- 1376/0        22876 Mar 30 17:15 1995 debfiles/news/inewsinn-1.4sec-7.deb
-rw-r--r-- 1376/0       462243 Mar 30 17:17 1995 debfiles/news/inn-1.4sec-7.deb
-rw-r--r-- 1376/0       176166 Mar 30 17:19 1995 debfiles/news/trn-3.6-1.deb
drwxr-xr-x 1376/0            0 Mar 30 17:16 1995 debfiles/shells/
-rw-r--r-- 1376/0        79570 Mar 30 17:15 1995 debfiles/shells/es-0.84-1.deb
-rw-r--r-- 1376/0       112494 Mar 30 17:16 1995 debfiles/shells/pdksh-5.1.3-1.deb
-rw-r--r-- 1376/0        42550 Mar 30 17:16 1995 debfiles/shells/rc-1.4-1.deb
-rw-r--r-- 1376/0       169296 Mar 30 17:17 1995 debfiles/shells/tcsh-6.05-4.deb
drwxr-xr-x 1376/0            0 Mar 14 17:25 1995 debfiles/admin/
-rw-r--r-- 1376/0        26186 Mar 14 17:17 1995 debfiles/admin/acct-alpha-5-5.deb
-rw-r--r-- 1376/0        13501 Mar  3 00:15 1995 debfiles/admin/at-2.7a-5.deb
-rw-r--r-- 1376/0        27606 Mar 14 17:17 1995 debfiles/admin/cron-3.0pl1-13.deb
-rw-r--r-- 1376/0        25426 Jan  7 23:40 1995 debfiles/admin/cpio-2.3-2.deb
drwxr-xr-x 1376/0            0 Mar 23 16:17 1995 debfiles/base/
-rw-r--r-- 1376/0        59909 Mar 23 00:46 1995 debfiles/base/ld.so-1.5.2-2.deb
-rw-r--r-- 1376/0       212151 Feb 26 13:34 1995 debfiles/base/bash-1.14.3-2.deb
-rw-r--r-- 1376/0          170 Mar 23 16:17 1995 debfiles/base/.message
-rw-r--r-- 1376/0         6723 Feb 26 13:34 1995 debfiles/base/chfn-1.0-3.deb
-rw-r--r-- 1376/0        89122 Oct 31 08:37 1994 debfiles/base/diffutils-2.7-1.deb
lrwxrwxrwx 1376/0            0 Mar 30 17:03 1995 debfiles/base/README -> .message
-rw-r--r-- 1376/0        45608 Nov 30 09:50 1994 debfiles/base/ed-0.2-1.deb
-rw-r--r-- 1376/0        99651 Jan 23 09:56 1995 debfiles/base/fileutils-3.12-2.deb
-rw-r--r-- 1376/0        76499 Jan 23 09:56 1995 debfiles/base/findutils-4.1-2.deb
-rw-r--r-- 1376/0        32170 Jan 23 09:56 1995 debfiles/base/grep-2.0-3.deb
-rw-r--r-- 1376/0        49677 Jan 23 09:56 1995 debfiles/base/gzip-1.2.4-6.deb
-rw-r--r-- 1376/0         3940 Jan 23 09:56 1995 debfiles/base/hostname-1.6-1.deb
-rw-r--r-- 1376/0        49944 Feb 26 13:34 1995 debfiles/base/procps-0.97-4.deb
-rw-r--r-- 1376/0        33898 Jan 23 09:56 1995 debfiles/base/sed-2.05-4.deb
-rw-r--r-- 1376/0        99842 Feb 26 13:34 1995 debfiles/base/sh-utils-1.12-3.deb
-rw-r--r-- 1376/0        77869 Jan 23 09:56 1995 debfiles/base/tar-1.11.5-2.deb
-rw-r--r-- 1376/0       147572 Jan 23 09:56 1995 debfiles/base/textutils-1.11-2.deb
-rw-r--r-- 1376/0        18412 Jan 23 09:56 1995 debfiles/base/tput-1.0-3.deb
-rw-r--r-- 1376/0         6776 Mar 22 23:41 1995 debfiles/base/adduser-1.93.deb
-rw-r--r-- 1376/0        95326 Mar 22 23:41 1995 debfiles/base/bsdutils-1.1-1.deb
-rw-r--r-- 1376/0        50040 Mar 22 23:41 1995 debfiles/base/dpkg-0.93.31.deb
-rw-r--r-- 1376/0       126560 Mar 22 23:41 1995 debfiles/base/e2fsprogs-0.5b-2.deb
-rw-r--r-- 1376/0       210065 Mar 22 23:41 1995 debfiles/base/gawk-2.15.6-1.deb
-rw-r--r-- 1376/0       677156 Mar 22 23:41 1995 debfiles/base/image-1.2.1-1.deb
-rw-r--r-- 1376/0       175807 Mar 22 23:41 1995 debfiles/base/kbd-0.90-1.deb
-rw-r--r-- 1376/0        98764 Mar 22 23:41 1995 debfiles/base/miscutils-1.2-1.deb
-rw-r--r-- 1376/0        36411 Mar 22 23:41 1995 debfiles/base/modules-1.1.87-2.deb
-rw-r--r-- 1376/0        23816 Mar 22 23:41 1995 debfiles/base/mount-2.2-1.deb
-rw-r--r-- 1376/0        18559 Mar 22 23:41 1995 debfiles/base/sysklogd-1.2-9.deb
-rw-r--r-- 1376/0        51974 Mar 22 23:41 1995 debfiles/base/sysvinit-2.56-3.deb
-rw-r--r-- 1376/0       265503 Mar 22 23:41 1995 debfiles/base/timezone-7.8-1.deb
drwxr-xr-x 1376/0            0 Mar  3 00:21 1995 debfiles/comm/
-rw-r--r-- 1376/0       210353 Feb 21 15:27 1995 debfiles/comm/term-2.3.5-2.deb
-rw-r--r-- 1376/0        50693 Mar  3 00:15 1995 debfiles/comm/minicom-1.6.deb
-rw-r--r-- 1376/0        29260 Aug 27 06:07 1994 debfiles/comm/lrzsz-0.11.deb
drwxr-xr-x 1376/0            0 Mar 30 17:16 1995 debfiles/sound/
-rw-r--r-- 1376/0         8973 Mar 30 17:16 1995 debfiles/sound/workbone-2.3-2.deb
drwxr-xr-x 1376/0            0 Mar 30 17:54 1995 debfiles/devel/
-rw-r--r-- 1376/0       879320 Mar 30 17:40 1995 debfiles/devel/perl-5.000-5.deb
-rw-r--r-- 1376/0       219027 Mar 30 17:48 1995 debfiles/devel/xwpe-1.4.1-1.deb
-rw-r--r-- 1376/0       640448 Mar 30 17:47 1995 debfiles/devel/tk-3.6-2.deb
-rw-r--r-- 1376/0       738327 Mar 30 17:46 1995 debfiles/devel/tclX-7.3b-2.deb
-rw-r--r-- 1376/0       215842 Mar 30 17:26 1995 debfiles/devel/autoconf-2.2-1.deb
-rw-r--r-- 1376/0        28003 Mar 30 17:26 1995 debfiles/devel/bin86-0.1-2.deb
-rw-r--r-- 1376/0       961652 Mar 30 17:35 1995 debfiles/devel/binutils-2.5.2-2.deb
0+16143 records in
0+16143 records out
tar: Unexpected EOF on archive file
chiark:rjk> 

When I saw that it had gone well past tclX and it wasn't being
extracted I hit ^C in the first session.

Ian.

Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson):
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#783; Package tar. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov