Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jkb@mrc-lmb.cam.ac.uk (James Bonfield)
Subject: Re: SunOS can't untar OSF/1 tar files?
Date: 1996/10/23	[thread overview]
Message-ID: <54lcod$5iq@lyra.csx.cam.ac.uk> (raw)
In-Reply-To: 54ifma$196@enva1.env.uea.ac.uk


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/



  parent reply	other threads:[~1996-10-23  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [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
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox