site  contact  subhomenews

Spup: tar error

June 28, 2010 — BarryK
How's this for a strange bug...

I'm running Spup. Do this in a terminal:

# tar --list -f gzip-1.4-i486-1.tgz | head -n 1

tar: write error

If I don't have '| head -n 1' on the end, no error. The first line of output is "./" so that is correct.

Try something else:
# tar --list -f gzip-1.4-i486-1.tgz | tail -n 1

install/slack-desc error.

I'm using 'head' from 'coreutils' 6.9 that is a PET compiled back in Puppy4.
'tail' is a Busybox 1.16.2 compiled in Quirky 1.2.

I tested with piping to '| busybox head -n 1', still get the error.


sed vs. head
Username: technosaurus
Is it all tgz & does the same thing happen with tar [b]-tf[/b] It works fine with busybox-1.16.1 tar and head [code]busybox tar -tf gzip-1.4-i486-1.tgz |busybox head -n 1[/code]from here: and gzip package from You can try using sed in place of tail and head (also grep, cat and others) ... but maybe -O or --to-stdout is required for that version of gnu tar"28 Jun 2010, 11:06"01683"'Busybox tar works"BarryK"This works ok: # busybox tar -z --list -f gzip-1.4-i486-1.tgz | head -n 1 ...note, Busybox tar needs an explicit '-z', whereas the full tar automatically determines correct compresion mode. (Actually, there was an option to turn that auto-detection on in Busybox config) Ok, I compiled tar 1.23 (same as used in Slackware 13.1), still get that error. I compiled tar 1.22, same that I have in Quirky (built from T2). No error message! So, I am going to roll back tar in Spup. Username: 28 Jun 2010, 11:32
"01683"'Bug already reported"BarryK"This bug has been encountered by many people, for example: Username: 28 Jun 2010, 14:14
"01683"'tar 1.23 patch"BarryK"This looks like the fix for tar 1.23: But I have already rolled Spup back to 1.22. Username: 28 Jun 2010, 14:23

Tags: puppy