home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.unix.bsd
- Subject: Re: Reading 386bsd dist files (bin,src,etc)
- Keywords: byte swapping problem
- Message-ID: <14184@auspex-gw.auspex.com>
- Date: 20 Aug 92 21:25:10 GMT
- References: <1992Aug6.224348.16769@noose.ecn.purdue.edu>
- Sender: news@auspex-gw.auspex.com
- Distribution: usa
- Organization: Auspex Systems, Santa Clara
- Lines: 23
- Nntp-Posting-Host: auspex.auspex.com
-
- >Attempting to use cpio to extract the files in the various
- >386bsd dists, I ran into a byte swapping problem (running on both a Gould
- >and a SUN3). CPIO generates the wonderfully-descript error message "Out of
- >phase -- get help" and then exits.
-
- If that's so, then unless your Sun-3 is running SunOS 3.0 or so, there's
- something broken in its "cpio". As of SunOS 3.2, "cpio" is supposed to
- automatically figure out if it's trying to read an old-format (not "-c")
- "cpio" file in the wrong byte order, and automatically swap the bytes
- for you. (The changes to do that should also be in the BSD "cpio".)
-
- >Since I really want to look at the srcdist stuff off-line from my PC
- >(not enough memory yet!) but couldn't find any flag to massage cpio into
- >appropriate behavior on the Gould or the SUN (so much for archive portability)
-
- SV's "cpio" is busted, and has some almost completely useless
- byte-swapping flags that don't help. Sun's (not "SUN", please) "cpio"
- should, as indicated, automatically figure out that it has to swap the
- bytes.
-
- As indicated elsewhere, the *correct* answer is to use "cpio -c" when
- creating "cpio" archives; that causes "cpio" to make text, rather than
- binary, headers, which obviates the need for byte-swapping.
-