Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* SunOS can't untar OSF/1 tar files?
@ 1996-10-22  4:00 J.S.Brainard
  1996-10-23  4:00 ` Kevin P. Neal
  1996-10-23  4:00 ` James Bonfield
  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-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 ` Kevin P. Neal
1996-10-23  4:00 ` James Bonfield
     [not found]   ` <tm.846099599@deepika>
1996-10-30  5:00     ` James Bonfield
  -- 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