%general-entities; ]> $LastChangedBy$ $Date$ cpio-&cpio-version; Cpio Introduction to cpio The cpio package contains tools for archiving. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &cpio-md5sum; Download size: &cpio-size; Estimated disk space required: &cpio-buildsize; Estimated build time: &cpio-time; Additional Downloads Required Patch: User Notes: Installation of cpio Install cpio by running the following commands: sed -i "s/invalid_arg/argmatch_invalid/" src/mt.c && patch -Np1 -i ../cpio-&cpio-version;-security_fixes-1.patch && ./configure CPIO_MT_PROG=mt --prefix=/usr \ --bindir=/bin --libexecdir=/tmp \ --with-rmt=/usr/sbin/rmt && echo "#define HAVE_SETLOCALE 1" >> config.h && echo "#define HAVE_LSTAT 1" >> config.h && make If you have installed and wish to create alternate forms of the documentation, issue the any or all of the following commands: make -C doc pdf && make -C doc ps && texi2html -o doc/cpio.html doc/cpio.texi && makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi To test the results, issue: sed -i 's/static const char/const char/' tests/genfile.c && make check Now, as the root user: make install If you built any of the alternate forms of documentation, install it by issuing the following commands as the root user: install -v -m755 -d /usr/share/doc/cpio-&cpio-version; && install -v -m644 doc/cpio.{pdf,ps,dvi,html,txt} \ /usr/share/doc/cpio-&cpio-version; Command Explanations sed -i "s/invalid_arg/argmatch_invalid/" src/mt.c: This command fixes a build problem with the mt program. CPIO_MT_PROG=mt: This parameter forces the building and installation of the mt program. --bindir=/bin: This parameter installs cpio to /bin instead of /usr/bin as recommended by the FHS guidelines. --libexecdir=/tmp: This parameter is used so that /usr/libexec is not created. --with-rmt=/usr/sbin/rmt: This parameter inhibits building the rmt program as it is already installed by the Tar package in LFS. echo "#define HAVE_SETLOCALE 1" >> config.h: This command specifies that the system Libc implements the setlocale function since it is not detected by configure. echo "#define HAVE_LSTAT 1" >> config.h: This define fixes a bug that causes cpio to convert symlinks into regular files during archive creation. sed -i 's/static const ...: This command fixes a build problem when compiling the tests with GCC-&gcc-version;. Contents Installed Programs Installed Libraries Installed Directories cpio and mt None None Short Descriptions cpio copies files to and from archives. cpio mt controls magnetic tape drive operations. mt