source: chapter06/texinfo.xml@ 5536f74

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 12.2 12.2-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 5536f74 was 5536f74, checked in by Archaic <archaic@…>, 19 years ago

Applied Alexander Patrakov's patch which adds UTF-8 capability to the
development branch of the LFS Book.

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

  • Property mode set to 100644
File size: 5.8 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 %general-entities;
5]>
6<sect1 id="ch-system-texinfo" role="wrap">
7<title>Texinfo-&texinfo-version;</title>
8<?dbhtml filename="texinfo.html"?>
9
10<indexterm zone="ch-system-texinfo"><primary sortas="a-Texinfo">Texinfo</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Texinfo package contains programs for reading, writing, and
14converting info pages.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.2 SBU</seg><seg>14.7 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils,
25Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Texinfo</title>
31
32<para>The <command>info</command> program makes assumptions such as "a string
33occupies the same number of character cells on the screen and bytes in memory"
34and "one can break the string anywhere" that are incorrect in UTF-8 locales.
35While the patch below is not the proper solution, it at least hides the problem
36by falling back to English messages when a multibyte locale is in use:</para>
37
38<screen><userinput>patch -Np1 -i ../&texinfo-multibyte-patch;</userinput></screen>
39
40<para>Texinfo allows local users to overwrite arbitrary files via a symlink
41attack on temporary files. Apply the following patch to fix this:</para>
42
43<screen><userinput>patch -Np1 -i ../&texinfo-tempfile_fix-patch;</userinput></screen>
44
45<para>Prepare Texinfo for compilation:</para>
46
47<screen><userinput>./configure --prefix=/usr</userinput></screen>
48
49<para>Compile the package:</para>
50
51<screen><userinput>make</userinput></screen>
52
53<para>To test the results, issue:
54<userinput>make check</userinput>.</para>
55
56<para>Install the package:</para>
57
58<screen><userinput>make install</userinput></screen>
59
60<para>Optionally, install the components belonging in a TeX installation:</para>
61
62<screen><userinput>make TEXMF=/usr/share/texmf install-tex</userinput></screen>
63
64<para>The meaning of the make parameter:</para>
65
66<variablelist>
67<varlistentry>
68<term><parameter>TEXMF=/usr/share/texmf</parameter></term>
69<listitem><para>The <envar>TEXMF</envar> makefile variable holds the location of the
70root of the TeX tree if, for example, a TeX package will be installed
71later.</para></listitem>
72</varlistentry>
73</variablelist>
74
75<para>The Info documentation system uses a plain text file to hold its
76list of menu entries. The file is located at
77<filename>/usr/share/info/dir</filename>. Unfortunately, due to
78occasional problems in the Makefiles of various packages, it can
79sometimes get out of sync with the info pages installed on the
80system. If the <filename>/usr/share/info/dir</filename> file ever
81needs to be recreated, the following optional commands will accomplish
82the task:</para>
83
84<screen role="nodump"><userinput>cd /usr/share/info
85rm dir
86for f in *
87do install-info $f dir 2&gt;/dev/null
88done</userinput></screen>
89
90</sect2>
91
92<sect2 id="contents-texinfo" role="content"><title>Contents of Texinfo</title>
93
94<segmentedlist>
95<segtitle>Installed programs</segtitle>
96<seglistitem><seg>info, infokey, install-info,
97makeinfo, texi2dvi, texi2pdf, and texindex</seg></seglistitem>
98</segmentedlist>
99
100<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
101<?dbfo list-presentation="list"?>
102<?dbhtml list-presentation="table"?>
103
104<varlistentry id="info">
105<term><command>info</command></term>
106<listitem>
107<para>Used to read info pages which are similar to man pages, but often go much
108deeper than just explaining all the available command line options. For example,
109compare <command>man bison</command> and <command>info bison</command>.</para>
110<indexterm zone="ch-system-texinfo info"><primary sortas="b-info">info</primary></indexterm>
111</listitem>
112</varlistentry>
113
114<varlistentry id="infokey">
115<term><command>infokey</command></term>
116<listitem>
117<para>Compiles a source file containing Info customizations into a
118binary format</para>
119<indexterm zone="ch-system-texinfo infokey"><primary sortas="b-infokey">infokey</primary></indexterm>
120</listitem>
121</varlistentry>
122
123<varlistentry id="install-info">
124<term><command>install-info</command></term>
125<listitem>
126<para>Used to install info pages; it updates entries in the
127<command>info</command> index file</para>
128<indexterm zone="ch-system-texinfo install-info"><primary sortas="b-install-info">install-info</primary></indexterm>
129</listitem>
130</varlistentry>
131
132<varlistentry id="makeinfo">
133<term><command>makeinfo</command></term>
134<listitem>
135<para>Translates the given Texinfo source documents into
136info pages, plain text, or HTML</para>
137<indexterm zone="ch-system-texinfo makeinfo"><primary sortas="b-makeinfo">makeinfo</primary></indexterm>
138</listitem>
139</varlistentry>
140
141<varlistentry id="texi2dvi">
142<term><command>texi2dvi</command></term>
143<listitem>
144<para>Used to format the given Texinfo document into a
145device-independent file that can be printed</para>
146<indexterm zone="ch-system-texinfo texi2dvi"><primary sortas="b-texi2dvi">texi2dvi</primary></indexterm>
147</listitem>
148</varlistentry>
149
150<varlistentry id="texi2pdf">
151<term><command>texi2pdf</command></term>
152<listitem>
153<para>Used to format the given Texinfo document into a
154Portable Document Format (PDF) file</para>
155<indexterm zone="ch-system-texinfo texi2pdf"><primary sortas="b-texi2pdf">texi2pdf</primary></indexterm>
156</listitem>
157</varlistentry>
158
159<varlistentry id="texindex">
160<term><command>texindex</command></term>
161<listitem>
162<para>Used to sort Texinfo index files</para>
163<indexterm zone="ch-system-texinfo texindex"><primary sortas="b-texindex">texindex</primary></indexterm>
164</listitem>
165</varlistentry>
166</variablelist>
167
168</sect2>
169
170</sect1>
171
Note: See TracBrowser for help on using the repository browser.