The cpio package contains tools for archiving.
This package is known to build and work properly using an LFS-10.1 platform.
Download (HTTP): https://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.bz2
Download (FTP): ftp://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.bz2
Download MD5 sum: f3438e672e3fa273a7dc26339dd1eed6
Download size: 1.3 MB
Estimated disk space required: 17 MB (with tests and docs)
Estimated build time: 0.3 SBU (with tests and docs)
texlive-20200406 (or install-tl-unx)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/cpio
First, fix a build issue when using GCC-10 and higher:
sed -i '/The name/,+2 d' src/global.c
Install cpio by running the following commands:
./configure --prefix=/usr \ --bindir=/bin \ --enable-mt \ --with-rmt=/usr/libexec/rmt && make && makeinfo --html -o doc/html doc/cpio.texi && makeinfo --html --no-split -o doc/cpio.html doc/cpio.texi && makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi
If you have texlive-20200406 installed and wish to create PDF or Postscript documentation, issue one or both of the following commands:
make -C doc pdf && make -C doc ps
To test the results, issue: make check.
Now, as the root
user:
make install && install -v -m755 -d /usr/share/doc/cpio-2.13/html && install -v -m644 doc/html/* \ /usr/share/doc/cpio-2.13/html && install -v -m644 doc/cpio.{html,txt} \ /usr/share/doc/cpio-2.13
If you built PDF or Postscript documentation, install it by issuing
the following commands as the root
user:
install -v -m644 doc/cpio.{pdf,ps,dvi} \ /usr/share/doc/cpio-2.13
--bindir=/bin
: This
parameter installs cpio to /bin
instead of /usr/bin
as recommended by the FHS guidelines.
--enable-mt
: This parameter
forces the building and installation of the mt program.
--with-rmt=/usr/libexec/rmt
: This
parameter inhibits building the rmt program as it is already
installed by the Tar package in
LFS.
Last updated on 2021-02-20 11:35:58 -0800