texinfo.xml 6.9 KB

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