source: general/sysutils/cpio.xml@ a2ae800

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 a2ae800 was a2ae800, checked in by Randy McMurchy <randy@…>, 18 years ago

Condensed the sed commands and changed a hard-coded GCC version to an entity in the cpio instructions

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

  • Property mode set to 100644
File size: 5.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
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">
12 <!ENTITY cpio-time "0.1 SBU">
13]>
14
15<sect1 id="cpio" xreflabel="cpio-&cpio-version;">
16 <?dbhtml filename="cpio.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">cpio-&cpio-version;.tar</keyword>
23 <keyword role="ftptdir">cpio</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>cpio-&cpio-version;</title>
28
29 <indexterm zone="cpio">
30 <primary sortas="a-Cpio">Cpio</primary>
31 </indexterm>
32
33 <sect2 role="package">
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
61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>Required Patch: <ulink
65 url="&patch-root;/cpio-&cpio-version;-security_fixes-1.patch"/></para>
66 </listitem>
67 </itemizedlist>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of cpio</title>
73
74 <para>Install <application>cpio</application> by running the following
75 commands:</para>
76
77<screen><userinput>sed -i "s/invalid_arg/argmatch_invalid/" src/mt.c &amp;&amp;
78patch -Np1 -i ../cpio-&cpio-version;-security_fixes-1.patch &amp;&amp;
79./configure CPIO_MT_PROG=mt --prefix=/usr \
80 --bindir=/bin --libexecdir=/tmp \
81 --with-rmt=/usr/sbin/rmt &amp;&amp;
82echo "#define HAVE_SETLOCALE 1" >> config.h &amp;&amp;
83echo "#define HAVE_LSTAT 1" >> config.h &amp;&amp;
84make</userinput></screen>
85
86 <para>To test the results, issue:</para>
87
88<screen><userinput>sed -i 's/static const char/const char/' tests/genfile.c &amp;&amp;
89make check</userinput></screen>
90
91 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
92
93<screen role="root"><userinput>make install</userinput></screen>
94
95 </sect2>
96
97 <sect2 role="commands">
98 <title>Command Explanations</title>
99
100 <para><command>sed -i "s/invalid_arg/argmatch_invalid/"
101 src/mt.c</command>: This command fixes a build problem with the
102 <command>mt</command> program.</para>
103
104 <para><parameter>CPIO_MT_PROG=mt</parameter>: This parameter forces the
105 building and installation of the <command>mt</command> program.</para>
106
107 <para><parameter>--bindir=/bin</parameter>: This parameter installs
108 <command>cpio</command> to <filename class="directory">/bin</filename>
109 instead of <filename class="directory">/usr/bin</filename> as recommended
110 by the FHS guidelines.</para>
111
112 <para><parameter>--libexecdir=/tmp</parameter>: This parameter is used so
113 that <filename class='directory'>/usr/libexec</filename> is not
114 created.</para>
115
116 <para><parameter>--with-rmt=/usr/sbin/rmt</parameter>: This parameter
117 inhibits building the <command>rmt</command> program as it is already
118 installed by the <application>Tar</application> package in LFS.</para>
119
120 <para><command>echo "#define HAVE_SETLOCALE 1" >> config.h</command>: This
121 command specifies that the system <application>Libc</application>
122 implements the setlocale function since it is not detected by
123 <command>configure</command>.</para>
124
125 <para><command>echo "#define HAVE_LSTAT 1" >> config.h</command>: This
126 define fixes a bug that causes <command>cpio</command> to convert symlinks
127 into regular files during archive creation.</para>
128
129 <para><command>sed -i 's/static const ...</command>: This command fixes
130 a build problem when compiling the tests with GCC-&gcc-version;.</para>
131
132 </sect2>
133
134 <sect2 role="content">
135 <title>Contents</title>
136
137 <segmentedlist>
138 <segtitle>Installed Programs</segtitle>
139 <segtitle>Installed Libraries</segtitle>
140 <segtitle>Installed Directories</segtitle>
141
142 <seglistitem>
143 <seg>cpio and mt</seg>
144 <seg>None</seg>
145 <seg>None</seg>
146 </seglistitem>
147 </segmentedlist>
148
149 <variablelist>
150 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
151 <?dbfo list-presentation="list"?>
152 <?dbhtml list-presentation="table"?>
153
154 <varlistentry id="cpio-prog">
155 <term><command>cpio</command></term>
156 <listitem>
157 <para>copies files to and from archives.</para>
158 <indexterm zone="cpio cpio-prog">
159 <primary sortas="b-cpio">cpio</primary>
160 </indexterm>
161 </listitem>
162 </varlistentry>
163
164 <varlistentry id="mt">
165 <term><command>mt</command></term>
166 <listitem>
167 <para>controls magnetic tape drive operations.</para>
168 <indexterm zone="cpio mt">
169 <primary sortas="b-mt">mt</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 </variablelist>
175
176 </sect2>
177
178</sect1>
Note: See TracBrowser for help on using the repository browser.