* SunOS can't untar OSF/1 tar files?
@ 1996-10-22 4:00 J.S.Brainard
1996-10-23 4:00 ` James Bonfield
1996-10-23 4:00 ` Kevin P. Neal
0 siblings, 2 replies; 5+ messages in thread
From: J.S.Brainard @ 1996-10-22 4:00 UTC (permalink / raw)
We have made the recent discovery that SunOS 4.1.3/4 can't tar -xvf
tar files created under OSF/1 3.x. This is a real nuisance since these
two are the dominant OS's at our site. Also, I have recently written
some software I would like to distribute by anon. ftp. Working mostly
on alpha platforms I naturally used the alpha to tar my code up --
but this means SunOS users can't untar it! And there are an awful lot
of SunOS users out there.
The error messages we get are:
> tar -xvf FS99b.tar
x ./arc, 0 bytes, 0 tape blocks
tar: can't create ./arc/fsquantiles.aml: Not a directory
tar: can't create ./arc/fscorrcoef.aml: Not a directory
tar: can't create ./arc/fsttest.aml: Not a directory
tar: can't create ./arc/fsdelinf.aml: Not a directory
...........
If we create the directories ahead of time tar seems to fill them up for
us, and tar -tvf has no problems, providing a tedious work around, if
necessary. We have played with options like tar -o, to no avail.
Versions of Solaris that we have access to have (almost) no problems
untarring the Alpha-origin files. And GNU tar in SunOS _can_ also handle
them. But a Cray in Edinburgh running Unicos (UNIX + Cray OS) can't.
I've checked the FAQ, but there doesn't seem to be an entry about this
problem. Have others encountered it? Do you know of any patches
or efficient, simple work arounds?
Very obliged for any feedback. -julii
--
---- Julii Brainard, Environmental Sciences, University of East Anglia
Norwich NR4 7TJ, UK. phone +44-1603-593402. email: j.brainard@uea.ac.uk ---
-------------------------------------------------------------------------
Life is the only adventure so you might as well go for it.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: SunOS can't untar OSF/1 tar files?
1996-10-22 4:00 SunOS can't untar OSF/1 tar files? J.S.Brainard
@ 1996-10-23 4:00 ` James Bonfield
[not found] ` <tm.846099599@deepika>
1996-10-23 4:00 ` Kevin P. Neal
1 sibling, 1 reply; 5+ messages in thread
From: James Bonfield @ 1996-10-23 4:00 UTC (permalink / raw)
In article <54ifma$196@enva1.env.uea.ac.uk> zebra@enva1.env.uea.ac.uk (J.S.Brainard) writes:
>We have made the recent discovery that SunOS 4.1.3/4 can't tar -xvf
>tar files created under OSF/1 3.x. This is a real nuisance since these
>two are the dominant OS's at our site. Also, I have recently written
>some software I would like to distribute by anon. ftp. Working mostly
>on alpha platforms I naturally used the alpha to tar my code up --
>but this means SunOS users can't untar it! And there are an awful lot
>of SunOS users out there.
We had this problem too, although we didn't finmd out until we'd distributed
quite a large number of tapes to people. To fix this we took two measures.
1. Copy the old tar program from OSF/1 V2.x and use this instead.
2. Wrote a converter program. To get a copy see:
ftp://ftp.mrc-lmb.cam.ac.uk/ftp/pub/staden/src/tarfix-1.2.shar
It's actually a modified copy of another program, but it does the job.
The problem is that the SunOS 4 systems look at the filename to figure out
whether something is a directory or not. If it is, then it'll have a / on the
end. In addition to this the file type info should also contain the ISDIR flag
set. However SunOS 4 only checks the file name. OSF/1 only adds the ISDIR bit.
Arguably the OSF system is correct - most other systems seem to cope happily
with it.
Anyway, with a conversion program there's no need to recreate all your
existing tars. I suspect gnu tar would work too, which is a 3rd option only if
these tars are for your own local use.
James
--
James Bonfield (jkb@mrc-lmb.cam.ac.uk) Tel: 01223 402499 Fax: 01223 412282
Medical Research Council - Laboratory of Molecular Biology,
Hills Road, Cambridge, CB2 2QH, England.
Also see Staden Package WWW site at http://www.mrc-lmb.cam.ac.uk/pubseq/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: SunOS can't untar OSF/1 tar files?
1996-10-22 4:00 SunOS can't untar OSF/1 tar files? J.S.Brainard
1996-10-23 4:00 ` James Bonfield
@ 1996-10-23 4:00 ` Kevin P. Neal
1 sibling, 0 replies; 5+ messages in thread
From: Kevin P. Neal @ 1996-10-23 4:00 UTC (permalink / raw)
zebra@enva1.env.uea.ac.uk (J.S.Brainard) wrote:
>We have made the recent discovery that SunOS 4.1.3/4 can't tar -xvf
>tar files created under OSF/1 3.x. This is a real nuisance since these
>two are the dominant OS's at our site. Also, I have recently written
>some software I would like to distribute by anon. ftp. Working mostly
>on alpha platforms I naturally used the alpha to tar my code up --
>but this means SunOS users can't untar it! And there are an awful lot
>of SunOS users out there.
1) What happens if you use GNU tar to untar the files?
2) What is the possibility of you switching to GNU tar?
I generally use GNU tar for all of my tar'ing. It has that handy -z
option (compress on the fly via gzip), and I know that I can compile
tar on most other systems and untar my files.
--
XCOMM Kevin P. Neal, Sophomore, Comp. Sci. \ kpneal@pobox.com
XCOMM "Corrected!" -- Old Amiga tips file \ kpneal@eos.ncsu.edu
XCOMM Visit the House of Retrocomputing: / Perm. Email:
XCOMM http://www.pobox.com/~kpn/ / kevinneal@bix.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SunOS can't untar OSF/1 tar files?
@ 1996-10-23 4:00 Mark Bartelt
0 siblings, 0 replies; 5+ messages in thread
From: Mark Bartelt @ 1996-10-23 4:00 UTC (permalink / raw)
[ J.S.Brainard ]
>> We have made the recent discovery that SunOS 4.1.3/4 can't tar -xvf
>> tar files created under OSF/1 3.x.
[...]
>> If we create the directories ahead of time tar seems to fill them up for
>> us, and tar -tvf has no problems, providing a tedious work around, if
>> necessary.
[...]
>> I've checked the FAQ, but there doesn't seem to be an entry about this
>> problem. Have others encountered it? Do you know of any patches
>> or efficient, simple work arounds?
Yeah, we've encountered it, and it is a nuisance. I haven't checked whether
gnutar can deal with the OSF-created tar archives, but if it can, that would
probably be a good way to go.
As for "an efficient, simple workaround", I generally do something like
mkdir -p `tar tf tarfile|sed 's+/[^/]* *$++'|sort|uniq`
tar xf tarfile
That's not *too* tedious, especially if you encapsulate it in a shell script.
(The "mkdir -p" could probably be just "mkdir", now that I think about it.)
Anyway, this creates all necessary directories (except, possibly, empty ones
which exist in the archive). The "tar x" will spit out an error message for
every directory ...
tar: foo/bar - cannot create -- Is a directory
... but you can just ignore them.
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.utoronto.ca
Theoretical Astrophysics http://www.cita.utoronto.ca/~mark
"Sheep not busy being shorn are busy frying" -- Dylan, at a NZ lamb barbecue
[ singing "It's all right, ma (I'm only bleating)" ]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-10-30 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-22 4:00 SunOS can't untar OSF/1 tar files? J.S.Brainard
1996-10-23 4:00 ` James Bonfield
[not found] ` <tm.846099599@deepika>
1996-10-30 5:00 ` James Bonfield
1996-10-23 4:00 ` Kevin P. Neal
-- strict thread matches above, loose matches on Subject: below --
1996-10-23 4:00 Mark Bartelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox