The cpio package contains tools for archiving.
Download (HTTP): http://ftp.gnu.org/pub/gnu/cpio/cpio-2.6.tar.gz
Download (FTP): ftp://ftp.gnu.org/pub/gnu/cpio/cpio-2.6.tar.gz
Download MD5 sum: 76b4145f33df088a5bade3bf4373d17d
Download size: 561 KB
Estimated disk space required: 5.3 MB
Estimated build time: 0.1 SBU
Install cpio by running the following commands:
sed -i -e "s/invalid_arg/argmatch_invalid/" src/mt.c && patch -Np1 -i ../cpio-2.6-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
To test the results, issue: make check.
Now, as the root user:
make install
sed -i -e "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.
Last updated on 2005-08-01 13:29:19 -0600