source: general/sysutils/cpio.xml@ 56762b82

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 56762b82 was 56762b82, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Adding automatized scripts generation related tags. Sysutils chapter.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5344 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.0 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[35f3cb4]7 <!ENTITY cpio-download-http "http://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.gz">
8 <!ENTITY cpio-download-ftp "ftp://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.gz">
9 <!ENTITY cpio-md5sum "76b4145f33df088a5bade3bf4373d17d">
10 <!ENTITY cpio-size "561 KB">
11 <!ENTITY cpio-buildsize "5.3 MB">
[82941804]12 <!ENTITY cpio-time "0.1 SBU">
[52d29f7]13]>
14
[1df9017f]15<sect1 id="cpio" xreflabel="cpio-&cpio-version;">
[35f3cb4]16 <?dbhtml filename="cpio.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
[56762b82]21 <keywordset>
22 <keyword role="package">cpio-&cpio-version;.tar</keyword>
23 <keyword role="ftptdir">cpio</keyword>
24 </keywordset>
[35f3cb4]25 </sect1info>
26
27 <title>Cpio-&cpio-version;</title>
28
29 <indexterm zone="cpio">
30 <primary sortas="a-Cpio">Cpio</primary>
31 </indexterm>
32
[4e82a189]33 <sect2 role="package">
[35f3cb4]34 <title>Introduction to Cpio</title>
35
36 <para>The <application>cpio</application> package contains
37 tools for archiving.</para>
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&cpio-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&cpio-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &cpio-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &cpio-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &cpio-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &cpio-time;</para>
58 </listitem>
59 </itemizedlist>
60
[82941804]61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>Required Patch: <ulink
[dbacbd80]65 url="&patch-root;/cpio-&cpio-version;-security_fixes-1.patch"/></para>
[82941804]66 </listitem>
67 </itemizedlist>
68
[35f3cb4]69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of Cpio</title>
73
[4e82a189]74 <para>Install <application>cpio</application> by running the following
[35f3cb4]75 commands:</para>
76
77<screen><userinput>sed -i -e "s/invalid_arg/argmatch_invalid/" src/mt.c &amp;&amp;
[82941804]78patch -Np1 -i ../cpio-&cpio-version;-security_fixes-1.patch &amp;&amp;
[0882c90]79./configure CPIO_MT_PROG=mt --prefix=/usr \
80 --bindir=/bin --libexecdir=/tmp \
81 --with-rmt=/usr/sbin/rmt &amp;&amp;
[49625cbc]82echo "#define HAVE_SETLOCALE 1" >> config.h &amp;&amp;
[cc7e9e2]83echo "#define HAVE_LSTAT 1" >> config.h &amp;&amp;
[35f3cb4]84make</userinput></screen>
[6587e936]85
[bccbdaea]86 <para>To test the results, issue:</para>
[04301c7d]87<screen><userinput>sed -i -e 's/static const char \*argp_program_version/ \
[0768a9f]88 const char \*argp_program_version/' \
89 -e 's/static const char \*argp_program_bug_address/ \
90 const char \*argp_program_bug_address/' \
91 tests/genfile.c &amp;&amp;
[b56f868b]92make check</userinput></screen>
[bccbdaea]93
[35f3cb4]94 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[6587e936]95
[35f3cb4]96<screen role="root"><userinput>make install</userinput></screen>
[0882c90]97
[35f3cb4]98 </sect2>
[52d29f7]99
[35f3cb4]100 <sect2 role="commands">
101 <title>Command Explanations</title>
[0882c90]102
[5ee44e37]103 <para><command>sed -i -e "s/invalid_arg/argmatch_invalid/"
104 src/mt.c</command>: This command fixes a build problem with the
105 <command>mt</command> program.</para>
[bccbdaea]106
[0768a9f]107
[0882c90]108
[4e82a189]109 <para><parameter>CPIO_MT_PROG=mt</parameter>: This parameter forces the
[35f3cb4]110 building and installation of the <command>mt</command> program.</para>
[0882c90]111
[4e82a189]112 <para><parameter>--bindir=/bin</parameter>: This parameter installs
[5ee44e37]113 <command>cpio</command> to <filename class="directory">/bin</filename>
114 instead of <filename class="directory">/usr/bin</filename> as recommended
115 by the FHS guidelines.</para>
[0882c90]116
[4e82a189]117 <para><parameter>--libexecdir=/tmp</parameter>: This parameter is used so
[5ee44e37]118 that <filename class='directory'>/usr/libexec</filename> is not
119 created.</para>
[0882c90]120
[5ee44e37]121 <para><parameter>--with-rmt=/usr/sbin/rmt</parameter>: This parameter
122 inhibits building the <command>rmt</command> program as it is already
123 installed by the <application>Tar</application> package in LFS.</para>
[0882c90]124
[5ee44e37]125 <para><command>echo "#define HAVE_SETLOCALE 1" >> config.h</command>: This
126 command specifies that the system <application>Libc</application>
127 implements the setlocale function since it is not detected by
128 <command>configure</command>.</para>
[bccbdaea]129
[5ee44e37]130 <para><command>echo "#define HAVE_LSTAT 1" >> config.h</command>: This
131 define fixes a bug that causes <command>cpio</command> to convert symlinks
132 into regular files during archive creation.</para>
[bccbdaea]133
[0768a9f]134 <para><command>sed -i -e 's/static const ...</command>: This command fixes a build problem when
135 compiling the tests with gcc-4.0.1</para>
[49625cbc]136
[35f3cb4]137 </sect2>
[52d29f7]138
[35f3cb4]139 <sect2 role="content">
140 <title>Contents</title>
[0882c90]141
[35f3cb4]142 <segmentedlist>
143 <segtitle>Installed Programs</segtitle>
144 <segtitle>Installed Libraries</segtitle>
145 <segtitle>Installed Directories</segtitle>
[6587e936]146
[35f3cb4]147 <seglistitem>
148 <seg>cpio and mt</seg>
149 <seg>None</seg>
150 <seg>None</seg>
151 </seglistitem>
152 </segmentedlist>
[6587e936]153
[35f3cb4]154 <variablelist>
155 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
156 <?dbfo list-presentation="list"?>
157 <?dbhtml list-presentation="table"?>
[6587e936]158
[35f3cb4]159 <varlistentry id="cpio-prog">
160 <term><command>cpio</command></term>
161 <listitem>
162 <para>copies files to and from archives.</para>
163 <indexterm zone="cpio cpio-prog">
164 <primary sortas="b-cpio">cpio</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
[6587e936]168
[35f3cb4]169 <varlistentry id="mt">
170 <term><command>mt</command></term>
171 <listitem>
172 <para>controls magnetic tape drive operations.</para>
173 <indexterm zone="cpio mt">
174 <primary sortas="b-mt">mt</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
[0882c90]178
[35f3cb4]179 </variablelist>
180
181 </sect2>
[1df9017f]182
183</sect1>
Note: See TracBrowser for help on using the repository browser.