Cpio: Difference between revisions

From CBLFS
Jump to navigationJump to search
Manphiz (talk | contribs)
No edit summary
 
Line 30: Line 30:


== Multilib ==
== Multilib ==
'''''This package does not provide any libraries so only one installation is needed.'''''


=== 32Bit ===
=== 32Bit ===
Line 41: Line 42:
  echo "#define HAVE_LSTAT 1" >> config.h &&
  echo "#define HAVE_LSTAT 1" >> config.h &&
  make
  make
Install the package:
make install


=== N32 ===
=== N32 ===
Line 53: Line 58:
  make
  make


Install the package
Install the package:


  make install
  make install
Line 70: Line 75:
  make
  make


Install the package
Install the package:


  make install
  make install

Revision as of 11:33, 28 October 2006

Download Source: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-2.6.tar.bz2
Download Patch: http://www.linuxfromscratch.org/patches/blfs/svn/cpio-2.6-security_fixes-1.patch

Dependencies

Non-Multilib

Compile the package:

sed -i "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

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

sed -i "s/invalid_arg/argmatch_invalid/" src/mt.c &&
patch -Np1 -i ../cpio-2.6-security_fixes-1.patch &&
CC="gcc ${BUILD32}" ./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

Install the package:

make install

N32

sed -i "s/invalid_arg/argmatch_invalid/" src/mt.c &&
patch -Np1 -i ../cpio-2.6-security_fixes-1.patch &&
CC="gcc ${BUILDN32}" ./configure CPIO_MT_PROG=mt --prefix=/usr --libdir=/usr/lib32 \
    --bindir=/bin --libexecdir=/tmp \
    --with-rmt=/usr/sbin/rmt &&
echo "#define HAVE_SETLOCALE 1" >> config.h &&
echo "#define HAVE_LSTAT 1" >> config.h &&
make

Install the package:

make install

64Bit

Compile the package:

sed -i "s/invalid_arg/argmatch_invalid/" src/mt.c &&
patch -Np1 -i ../cpio-2.6-security_fixes-1.patch &&
CC="gcc ${BUILD64}" ./configure CPIO_MT_PROG=mt --prefix=/usr --libdir=/usr/lib64 \
    --bindir=/bin --libexecdir=/tmp \
    --with-rmt=/usr/sbin/rmt &&
echo "#define HAVE_SETLOCALE 1" >> config.h &&
echo "#define HAVE_LSTAT 1" >> config.h &&
make

Install the package:

make install

Content

The cpio package contains tools for archiving.

Installed Programs: cpio and mt

Installed Libraries: None

Installed Directories: None

Short Descriptions

cpio: copies files to and from archives.

mt: controls magnetic tape drive operations.

Retrieved from "?title=Cpio&oldid=3426"