source: chapter06/texinfo.xml@ be7082f

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 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/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since be7082f was 50993e3, checked in by Archaic <archaic@…>, 19 years ago

Added patch to fix vulnerable tempfile creation texinfo.

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

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