home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4024 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!uunet.ca!canrem!telly!robohack!becker!bdb
  3. From: bdb@becker.GTS.ORG (Bruce Becker)
  4. Subject: Re: Reading 386bsd dist files (bin,src,etc)
  5. Message-ID: <1992Aug11.235434.22128@becker.GTS.ORG>
  6. Keywords: byte swapping problem
  7. Organization: G. T. S., Toronto, Ontario
  8. References: <1992Aug6.224348.16769@noose.ecn.purdue.edu>
  9. Distribution: usa
  10. Date: Tue, 11 Aug 1992 23:54:34 GMT
  11. Lines: 28
  12.  
  13. In article <1992Aug6.224348.16769@noose.ecn.purdue.edu> tgt@neon.ecn.purdue.edu (Conan the Librarian) writes:
  14. |Attempting to use cpio to extract the files in the various
  15. |386bsd dists, I ran into a byte swapping problem (running on both a Gould
  16. |and a SUN3).  CPIO generates the wonderfully-descript error message "Out of
  17. |phase -- get help" and then exits.  (Someday, I aspire to write code with
  18. |lots of abstruse error messages like this... :-)
  19. |
  20. |Since I really want to look at the srcdist stuff off-line from my PC
  21. |(not enough memory yet!) but couldn't find any flag to massage cpio into
  22. |appropriate behavior on the Gould or the SUN (so much for archive portability)
  23. |I wrote the following program to do the necessary header "fix" (26 shorts in
  24. |each cpio header need to be byte-swapped).  I've tested it on srcdist on my
  25. |SUN3, and it appears to work properly (I am extracting the src files as I
  26. |write this).
  27.  
  28.  
  29.  
  30.     So, why in the world isn't everybody using
  31.     "cpio -oc" (or "cpio -o -Hodc" for SysVr4)
  32.     to create cpio archives? It's specifically
  33.     for this type of problem that it exists...
  34.  
  35.  
  36. -- 
  37.   ,u,     Bruce Becker            Toronto, Ontario
  38. a /i/     Internet: bdb@becker.gts.org    Uucp: ...!web!becker!bdb
  39.  `\o\-e     "The word 'AT&T' is made up of letters, which are the
  40.  _< /_     intellectual property of Vanna White" - A. Coopersmith
  41.