source: pst/typesetting/texlive.xml@ c84611be

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 c84611be was c84611be, checked in by Ken Moffat <ken@…>, 10 years ago

Patch texlive for poppler-0.26.

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

  • Property mode set to 100644
File size: 13.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY texlive-source-download-http " ">
8 <!ENTITY texlive-source-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
9 <!ENTITY texlive-source-md5sum "f52599c99fb1035399b907f4c54f1125">
10 <!ENTITY texlive-source-size "172 MB">
11
12 <!ENTITY texlive-buildsize "1.6 GB">
13 <!ENTITY texlive-time "9.6 SBU">
14]>
15
16<sect1 id="texlive" xreflabel="texlive-&texlive-version;">
17 <?dbhtml filename="texlive.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>texlive-&texlive-version;</title>
25
26 <indexterm zone="texlive">
27 <primary sortas="a-texlive">texlive</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to TeX Live from source</title>
32
33 <para>A binary version of the <application>TeX Live</application> package
34 is installed at <xref linkend="tl-installer"/>. Here, we use that to rebuild
35 the compiled programs from source.</para>
36
37 &lfs75_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&texlive-source-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&texlive-source-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &texlive-source-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &texlive-source-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &texlive-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &texlive-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>
65 Required patch:
66 <ulink url="&patch-root;/texlive-&texlive-version;-source-fix_asymptote-1.patch"/>
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Required patch:
72 <ulink url="&patch-root;/texlive-&texlive-version;-source-poppler26-1.patch"/>
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">TeX Live Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="freeglut"/> (for asy),
82 <xref linkend="gs"/>,
83 <xref linkend="x-window-system"/>
84 </para>
85 <para>
86 The source ships with its own versions of <emphasis>many</emphasis>
87 libraries, and will use them unless it is forced to use the system
88 versions. The following are recommended so that the system version
89 will be used:
90 <xref linkend="icu"/>,
91 <xref linkend="freetype2"/>,
92 <xref linkend="fontconfig"/>,
93 <xref linkend="graphite2"/>,
94 <xref linkend="harfbuzz"/> (linked to graphite2),
95 <xref linkend="libpng"/>,
96 <xref linkend="poppler"/>
97 </para>
98
99 <bridgehead renderas="sect4">Optional</bridgehead>
100 <para role="optional">
101 <ulink url="http://www.fftw.org/">FFTW</ulink> can be used by asy.
102 </para>
103 <para>
104 The source ships with its own versions of several libraries which are either
105 not under active development, or only used for limited functionality. If
106 you install these, as with some other optional dependencies in this book you
107 will need to tell <command>configure</command> to use the system versions.
108 <ulink url="http://libgd.bitbucket.org">GD</ulink>,
109 <ulink url="http://fossies.org/linux/misc/t1lib-5.1.2.tar.gz/">t1lib</ulink>,
110 <ulink url="http://sourceforge.net/projects/zziplib/">ZZIPlib</ulink>,
111 <ulink url="http://www.gnu.org/software/clisp/">CLISP</ulink>,
112 <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=TECkitDownloads">TECkit</ulink>
113 </para>
114
115 <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
116 <para role="recommended">
117 Some (re-installed) scripts will use
118 <xref linkend="ruby"/> and <xref linkend="tk"/> is used by epspdftk.
119 </para>
120
121 <para condition="html" role="usernotes">User Notes:
122 <ulink url="&blfs-wiki;/texlive"/></para>
123
124 </sect2>
125
126 <sect2 role="installation">
127 <title>Installation of TeX Live</title>
128
129 <para>These instructions will overwrite the corresponding files from the
130 binary installer. As with the installer, change x86_64-linux to whatever
131 matches your architecture.</para>
132
133 <para>Please note that installing from source will recompile the binary
134 programs and recreate the <literal>man</literal> and <literal>info</literal>
135 files. It will also overwrite the scripts - some of these may be older
136 versions than those from the newer installer. It will <emphasis>not</emphasis>
137 recreate any of the following: the more than 200 symlinks in the
138 x86_64-linux directory (some are alternate names, many are pointers to
139 the scripts), html files, PDF files, licenses, README files, two config
140 files (<filename>texmf.cnf</filename> and <filename>texmfcnf.lua</filename>),
141 nor the many package and font files in
142 <filename class="directory">texmf-dist</filename> and
143 <filename class="directory">texmf-var</filename>, nor the files recording
144 the actions of the installer, and the <filename>ls-R</filename> files listing
145 what was originally installed.</para>
146
147 <para>At the moment, these instructions do not rebuild
148 <application>xindy</application> which was installed by the binary installer,
149 due to a problem with the tarball's install procedure. Asy and the rest of
150 asymptote is by default not rebuilt, so we have to separately run
151 <command>configure</command> and <command>make</command> in its directory.
152 </para>
153
154<screen><userinput>patch -Np1 -i ../texlive-&texlive-version;-source-fix_asymptote-1.patch &amp;&amp;
155patch -Np1 -i ../texlive-&texlive-version;-source-poppler26-1.patch &amp;&amp;
156
157mkdir texlive-build &amp;&amp;
158cd texlive-build &amp;&amp;
159
160../configure \
161 --prefix=/opt/texlive/2013 \
162 --bindir=/opt/texlive/2013/bin/x86_64-linux \
163 --datarootdir=/opt/texlive/2013 \
164 --includedir=/usr/include \
165 --infodir=/opt/texlive/2013/texmf-dist/doc/info \
166 --libdir=/usr/lib \
167 --mandir=/opt/texlive/2013/texmf-dist/doc/man \
168 --disable-native-texlive-build \
169 --disable-static --enable-shared \
170 --with-system-libgs \
171 --with-system-poppler \
172 --with-system-freetype2 \
173 --with-system-fontconfig \
174 --with-system-libpng \
175 --with-system-icu \
176 --with-system-graphite2 \
177 --with-system-harfbuzz \
178 --with-system-xpdf \
179 --with-system-poppler \
180 --with-system-cairo \
181 --with-system-pixman \
182 --with-system-zlib \
183 --with-banner-add=" - BLFS" &amp;&amp;
184
185pushd ../utils/asymptote &amp;&amp;
186 echo "ac_cv_lib_m_sqrt=yes" >config.cache &amp;&amp;
187 echo "ac_cv_lib_z_deflate=yes" >>config.cache &amp;&amp;
188
189./configure LIBS="-ltirpc " \
190 --prefix=/opt/texlive/2013/ \
191 --bindir=/opt/texlive/2013/bin/x86_64-linux \
192 --enable-texlive-build \
193 --datarootdir=/opt/texlive/2013/texmf-dist \
194 --infodir=/opt/texlive/2013/texmf-dist/doc/info \
195 --mandir=/opt/texlive/2013/texmf-dist/doc/man \
196 --cache-file=config.cache &amp;&amp;
197popd &amp;&amp;
198
199make &amp;&amp;
200make -C ../utils/asymptote</userinput></screen>
201
202 <para>To test the results, issue: <command>make -k check &amp;&amp;
203 make -C utils/asymptote check</command>.</para>
204
205 <para>Now, as the <systemitem class="username">root</systemitem>
206 user:</para>
207
208<screen><userinput role="root">make install &amp;&amp;
209make -C ../utils/asymptote install</userinput></screen>
210
211 </sect2>
212
213 <sect2 role="commands">
214 <title>Command Explanations</title>
215
216 <para>
217 <parameter>patch -Np1 -i ../texlive-&texlive-version;-source-poppler26-1.patch</parameter>:
218 this allows luatex to build against poppler &gt;=0.26. Omit this if you
219 have not installed <application>poppler</application>.
220 </para>
221 <para>
222 <parameter>--prefix=, --bindir=, --datarootdir=, --infodir=, --mandir= ...
223 </parameter>: these switches ensure that the files installed from source
224 will overwrite the corresponding files previously installed by
225 <application>install-tl</application>.
226 </para>
227
228 <para>
229 <parameter>--includedir=, --libdir= ...</parameter> : these switches ensure
230 that the libraries will be found at runtime, and that programs can be
231 compiled against them.
232 </para>
233
234 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
235 href="../../xincludes/static-libraries.xml"/>
236
237 <para>
238 <parameter>--enable-shared</parameter>: Use shared versions of
239 <filename class="libraryfile">libkpathsea</filename> and
240 <filename class="libraryfile">libptexenc</filename>.
241 </para>
242
243 <para>
244 <parameter>--with-system-...</parameter>: Unless this parameter is used,
245 the included versions of these libraries will be statically compiled
246 into the programs which need them. If you decided not to install a
247 recommended library, omit the corresponding switches.
248 </para>
249
250 <para>
251 <parameter>--with-system-xpdf</parameter>: Uniquely, this parameter has
252 a non-standard meaning, it tells <command>configure</command> to use the
253 system-installed <application>poppler</application> headers and library.
254 Again, omit this if you have not installed
255 <application>poppler</application>.
256 </para>
257
258 <para>
259 <parameter>echo "ac_cv_lib_m_sqrt=yes" ... LIBS="-ltirpc " &gt;config.cache,
260 ... --cache-file=config.cache</parameter> : The configure scripts in
261 <application>TeX Live</application> are uncommon. Asymptote not only has to
262 be separately configured and built, the configure script fails to find the
263 shared <filename class="libraryfile">libtirpc.so</filename>. Passing that
264 in LIBS breaks the tests for (static) libm and (shared) libz, so we have to
265 fix things up, in much the same way as when cross-compiling.
266 </para>
267
268 <para>
269 <option>--without-x</option>: use this (and omit the configure and make in
270 <filename>utils/asymptote</filename> if you do not have Xorg installed.
271 </para>
272
273 </sect2>
274
275 <sect2 role="content">
276 <title>Contents</title>
277
278 <segmentedlist>
279 <segtitle>Installed Programs</segtitle>
280 <segtitle>Installed Libraries</segtitle>
281 <segtitle>Installed Directories</segtitle>
282
283 <seglistitem>
284 <seg>Over 300 binaries and symlinks to scripts</seg>
285 <seg>libkpathsea.so, libptexenc.so</seg>
286 <seg>/opt/texlive, /usr/include/kpathsea, /usr/include/ptexenc</seg>
287 </seglistitem>
288 </segmentedlist>
289
290 <variablelist>
291 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
292 <?dbfo list-presentation="list"?>
293 <?dbhtml list-presentation="table"?>
294
295 <varlistentry id="texlive-programs">
296 <term><command>TeX&nbsp;programs</command></term>
297 <listitem>
298 <para>included in the <application>TeX Live</application> package are
299 too numerous to individually list. Please refer to the individual
300 program man and html pages in the installation directory's 2011/index.html
301 directory.</para>
302 <indexterm zone="texlive texlive-programs">
303 <primary sortas="b-texlive-programs">TeX Live programs</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="libkpathsea">
309 <term><filename class="libraryfile">libkpathsea.so</filename></term>
310 <listitem>
311 <para>
312 (kpathsearch) exists to look up a file in a list of directories.
313 </para>
314 <indexterm zone="texlive libkpathsea">
315 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="libptexenc">
321 <term><filename class="libraryfile">libptexenc.so</filename></term>
322 <listitem>
323 <para>
324 is a library for Japanese pTeX (publishing TeX).
325 </para>
326 <indexterm zone="texlive libptexenc">
327 <primary sortas="c-libptexenc">libptexenc.so</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331 </variablelist>
332
333 </sect2>
334
335</sect1>
Note: See TracBrowser for help on using the repository browser.