cpio-2.15

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-1303

### Chapter 12. System Utilities

- Prev

  Colord-1.4.8

- Next

  cups-pk-helper-0.2.7

- Up
- Home

# cpio-2.15

## Introduction to cpio

The cpio package contains tools for archiving.

### Note

This package is known to build and work properly using an LFS 13.1 platform.

### Package Information

- Download (HTTP): https://ftpmirror.gnu.org/cpio/cpio-2.15.tar.bz2

- Download MD5 sum: 3394d444ca1905ea56c94b628b706a0b

- Download size: 1.6 MB

- Estimated disk space required: 21 MB (with tests and docs)

- Estimated build time: 0.3 SBU (with tests and docs)

### CPIO Dependencies

#### Optional

texlive-20250308 (or install-tl-unx)

## Installation of cpio

Add a workaround for an issue shown by gcc15:

    sed -e "/^extern int (\*xstat)/s/()/(const char * restrict,  struct stat * restrict)/" \
        -i src/extern.h
    sed -e "/^int (\*xstat)/s/()/(const char * restrict,  struct stat * restrict)/" \
        -i src/global.c

Install cpio by running the following commands:

    ./configure --prefix=/usr \
                --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-20250308 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.15/html &&
    install -v -m644    doc/html/* \
                        /usr/share/doc/cpio-2.15/html &&
    install -v -m644    doc/cpio.{html,txt} \
                        /usr/share/doc/cpio-2.15

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.15

## Command Explanations

`--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.

## Contents

Installed Programs: cpio and mt
Installed Libraries: None
Installed Directories: /usr/share/doc/cpio-2.15

### Short Descriptions

cpio | copies files to and from archives
mt | controls magnetic tape drive operations

- Prev

  Colord-1.4.8

- Next

  cups-pk-helper-0.2.7

- Up
- Home