*BSD News Article 4196


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!uunet!decwrl!deccrl!news.crl.dec.com!pa.dec.com!engage.pko.dec.com!newsdaemon
From: eje@irenaeus.mlo.dec.com (Eric James Ewanco)
Subject: Re: Extracting 386bsd bin01 on another machine
Message-ID: <1992Aug27.192704.5130@engage.pko.dec.com>
Sender: newsdaemon@engage.pko.dec.com (USENET News Daemon)
Reply-To: ewanco@kalvin.enet.dec.com
Organization: Digital Equipment Corporation
References: <babraham.714900677@unpcs1> <veit.714937780@du9ds3>
Date: Thu, 27 Aug 1992 19:27:04 GMT
Lines: 61


> In <babraham.714900677@unpcs1> babraham@unpcs1.cs.unp.ac.za (Bobby Abraham) writes:

> >Can someone tell me how to extract the bin01 files on another unix
> >machine.  

> >I don't have enough space for the unextracted files in addition
> >to the extracted files.  I would like to ftp only the extracted files.

> >thank you



> >--
> >Bobby Abraham
> >Computer Science
> >University of Natal, Pietermaritzburg
> >email: babraham@unpcs1.cs.unp.ac.za

> If you do not have some "braindead-cpio" system which swaps bytes (Sun3 and
> other 68xxx related systems have this "feature") you might try the following:

> # have the bin01.* files HERE
> mkdir distdir
> cd distdir
> cat ../bin01.* | uncompress | cpio -idvalmu

> into a directory under 'distdir'. But be warned: there may be complaints
> about some devices in distdir/dev/* which cannot be created if you are not
> root (depends on whether you may execute mknod). You may have to rebuild the
> devices on the 386bsd system manually.

> This procedure has been tested on a Sun4 Sparc.

I have heard you might need to add the -C option to cpio.

Nevertheless I myself said "Screw it" and solved the problem in another way.

FTP to gatekeeper.dec.com and get the SOURCES to real BSD cpio.  It's in
pub/bsd-sources-2/usr.bin/cpio.c.Z.  Create a .h file paths.h with 
#define _PATH_TTY "/dev/"

in it.  Compile it, ignoring the libraries in the initial comment.  It works
great.  

Eric

--
/=============================================================================\
| Eric Ewanco - Software Engineer     For the rash and outrageous opinions ex-|
| Digital Equipment Corp, Maynard MA  pressed herein I alone am responsible;  |
| ewanco@kalvin.enet.dec.com          they do not belong to DIGITAL(TM).      |
\==============================- 2 Th 2:15 -==================================/
    "...[T]he greatest and most ancient Church known to all, founded and
    organized at Rome by [] Peter and Paul, [is] that Church which has the
    tradition and faith which comes down to us after having been announced
    to men by the Apostles.  For with this Church, because of its superior
    origin, all Churches must agree ...  and it is in her that the
    faithful everywhere have maintained the Apostolic tradition."
       -- St. Irenaeus, Against Heresies, c. 180 A.D., 3,3,3.