source: chapter06/tar.xml@ 93a5a04

Last change on this file since 93a5a04 was 4df5ff4, checked in by Matthew Burgess <matthew@…>, 19 years ago

Add GCC-4 patch to tar in chapter 6

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/gcc4/BOOK@6588 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 <!ENTITY % patches-entities SYSTEM "../patches.ent">
5 %general-entities;
6 %patches-entities;
7]>
8<sect1 id="ch-system-tar" role="wrap">
9<title>Tar-&tar-version;</title>
10<?dbhtml filename="tar.html"?>
11
12<indexterm zone="ch-system-tar"><primary sortas="a-Tar">Tar</primary></indexterm>
13
14<sect2 role="package"><title/>
15<para>The Tar package contains an archiving program.</para>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.2 SBU</seg><seg>12.7 MB</seg></seglistitem>
21</segmentedlist>
22
23<segmentedlist>
24<segtitle>&dependencies;</segtitle>
25<seglistitem><seg>Bash, Binutils, Coreutils,
26Diffutils, GCC, Gettext, Glibc, Grep, Make, and Sed</seg></seglistitem>
27</segmentedlist>
28</sect2>
29
30<sect2 role="installation">
31<title>Installation of Tar</title>
32
33<para>Apply a patch to Tar to enable it to compile with GCC-&gcc-version;:</para>
34
35<screen><userinput>patch -Np1 -i ../&tar-gcc4_fix-patch;</userinput></screen>
36
37<para>Tar has a bug when the <parameter>-S</parameter> option is used
38with files larger than 4 GB. The following patch properly fixes this issue:</para>
39
40<screen><userinput>patch -Np1 -i ../&tar-sparse_fix-patch;</userinput></screen>
41
42<para>Prepare Tar for compilation:</para>
43
44<screen><userinput>./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</userinput></screen>
45
46<para>Compile the package:</para>
47
48<screen><userinput>make</userinput></screen>
49
50<para>To test the results, issue:
51<userinput>make check</userinput>.</para>
52
53<para>Install the package:</para>
54
55<screen><userinput>make install</userinput></screen>
56
57</sect2>
58
59
60<sect2 id="contents-tar" role="content"><title>Contents of Tar</title>
61
62<segmentedlist>
63<segtitle>Installed programs</segtitle>
64<seglistitem><seg>rmt and tar</seg></seglistitem>
65</segmentedlist>
66
67<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
68<?dbfo list-presentation="list"?>
69<?dbhtml list-presentation="table"?>
70
71<varlistentry id="rmt">
72<term><command>rmt</command></term>
73<listitem>
74<para>Remotely manipulates a magnetic
75tape drive through an interprocess communication connection</para>
76<indexterm zone="ch-system-tar rmt"><primary sortas="b-rmt">rmt</primary></indexterm>
77</listitem>
78</varlistentry>
79
80<varlistentry id="tar">
81<term><command>tar</command></term>
82<listitem>
83<para>Creates, extracts files from, and lists the contents of archives,
84also known as tarballs</para>
85<indexterm zone="ch-system-tar tar"><primary sortas="b-tar">tar</primary></indexterm>
86</listitem>
87</varlistentry>
88</variablelist>
89
90</sect2>
91
92</sect1>
93
Note: See TracBrowser for help on using the repository browser.