source: pst/printing/gs.xml@ 27cc55e9

11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 27cc55e9 was 27cc55e9, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Package updates:

Update to seamonkey-2.53.9.1
Update to thunderbird-91.2.1
Update to ghostscript-9.55.0

  • Property mode set to 100644
File size: 13.4 KB
RevLine 
[ed30f09]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[73ddd1a0]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[00b6675]6
[a5653eb]7 <!-- When updating, ensure gs9xx is updated in url -->
8
[6b58d592]9 <!ENTITY gs-download-http
[b5af71a]10 "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs&gs-packver;/ghostscript-&gs-version;.tar.xz">
[de109d93]11 <!ENTITY gs-download-ftp " ">
[27cc55e9]12 <!ENTITY gs-md5sum "92aa46e75c4f32eb11d9c975053d876c">
13 <!ENTITY gs-size "64 MB">
14 <!ENTITY gs-buildsize "360 MB (with fonts and libgs.so)">
15 <!ENTITY gs-time "2.5 SBU (Using parallelism=4; with libgs.so)">
[100786d]16
[95b8c6d]17 <!ENTITY gs-standard-fonts-download
[8dfc5c3]18 "&sourceforge-dl;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
[00b6675]19 <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
[100786d]20 <!ENTITY gs-standard-fonts-size "3.7 MB">
[00b6675]21
[95b8c6d]22 <!ENTITY gs-other-fonts-download
[8dfc5c3]23 "&sourceforge-dl;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
[100786d]24 <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
25 <!ENTITY gs-other-fonts-size "796 KB">
[73ddd1a0]26]>
27
[a027d7d3]28<sect1 id="gs" xreflabel="ghostscript-&gs-version;">
[ed30f09]29 <?dbhtml filename="gs.html"?>
30
31 <sect1info>
32 <date>$Date$</date>
33 </sect1info>
34
[a027d7d3]35 <title>ghostscript-&gs-version;</title>
[ed30f09]36
37 <indexterm zone="gs">
[0c32749]38 <primary sortas="a-Ghostscript">Ghostscript</primary>
[ed30f09]39 </indexterm>
40
41 <sect2 role="package">
42 <title>Introduction to Ghostscript</title>
43
[fa3edfef]44 <para>
45 <application>Ghostscript</application> is a versatile processor
46 for PostScript data with the ability to render PostScript to different
47 targets. It is a mandatory part of the cups printing stack.
48 </para>
[ed30f09]49
[da54a62]50 &lfs110a_checked;
[aa8ef3bc]51
[ed30f09]52 <bridgehead renderas="sect3">Package Information</bridgehead>
53 <itemizedlist spacing="compact">
54 <listitem>
[fa3edfef]55 <para>
56 Download (HTTP): <ulink url="&gs-download-http;"/>
57 </para>
[ed30f09]58 </listitem>
59 <listitem>
[fa3edfef]60 <para>
61 Download (FTP): <ulink url="&gs-download-ftp;"/>
62 </para>
[ed30f09]63 </listitem>
64 <listitem>
[fa3edfef]65 <para>
66 Download MD5 sum: &gs-md5sum;
67 </para>
[ed30f09]68 </listitem>
69 <listitem>
[fa3edfef]70 <para>
71 Download size: &gs-size;
72 </para>
[ed30f09]73 </listitem>
74 <listitem>
[fa3edfef]75 <para>
76 Estimated disk space required: &gs-buildsize;
77 </para>
[ed30f09]78 </listitem>
79 <listitem>
[fa3edfef]80 <para>
81 Estimated build time: &gs-time;
82 </para>
[ed30f09]83 </listitem>
84 </itemizedlist>
[1bff7a9]85
[27cc55e9]86 <!--
[ed30f09]87 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[27cc55e9]88 Commenting this out since it's no longer needed, but keeping it for the
89 inevitable next time that we need a patch for this package.
[c8585068]90 <itemizedlist spacing="compact">
91 <listitem>
92 <para>
93 Required patch:
[f429481]94 <ulink url="&patch-root;/ghostscript-&gs-version;-upstream_fix-2.patch"/>
[c8585068]95 </para>
96 </listitem>
97 </itemizedlist>
[27cc55e9]98 -->
[c8585068]99
[fa3edfef]100 <para>
101 If you wish, you can download additional fonts.
102 </para>
[933ceec]103
[6b58d592]104 <itemizedlist spacing="compact">
[ed30f09]105 <title>Standard Fonts</title>
106 <listitem>
[fa3edfef]107 <para>
108 Download (HTTP): <ulink url="&gs-standard-fonts-download;"/>
109 </para>
[ed30f09]110 </listitem>
111 <listitem>
[fa3edfef]112 <para>
113 Download MD5 sum: &gs-standard-fonts-md5sum;
114 </para>
[ed30f09]115 </listitem>
116 <listitem>
[fa3edfef]117 <para>
118 Download size: &gs-standard-fonts-size;
119 </para>
[ed30f09]120 </listitem>
121 </itemizedlist>
122
[6b58d592]123 <itemizedlist spacing="compact">
[ed30f09]124 <title>Other Fonts</title>
125 <listitem>
[fa3edfef]126 <para>
127 Download (HTTP): <ulink url="&gs-other-fonts-download;"/>
128 </para>
[ed30f09]129 </listitem>
130 <listitem>
[fa3edfef]131 <para>
132 Download MD5 sum: &gs-other-fonts-md5sum;
133 </para>
[ed30f09]134 </listitem>
135 <listitem>
[fa3edfef]136 <para>
137 Download size: &gs-other-fonts-size;
138 </para>
[ed30f09]139 </listitem>
140 </itemizedlist>
141
[b29ed97c]142 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
[ed30f09]143
[de109d93]144 <bridgehead renderas="sect4">Recommended</bridgehead>
[2d37d32]145 <para role="recommended">
[7524e07]146 <xref linkend="cups"/> (required for building the <quote>cups</quote>
147 device backend, which is needed by
148 <application>cups-filters</application>),
149 <xref linkend="fontconfig"/> (required, if you are installing any
150 suggested font),
[2d37d32]151 <xref linkend="freetype2"/>,
152 <xref linkend="libjpeg"/>,
[933ceec]153 <xref linkend="libpng"/>,
[bb65a3c]154 <xref linkend="libtiff"/>, and
[12341a8]155 <xref linkend="openjpeg2"/>
[2d37d32]156 </para>
[de109d93]157
158 <bridgehead renderas="sect4">Optional</bridgehead>
[2d37d32]159 <para role="optional">
160 <xref linkend="cairo"/>,
[f7153b6]161 <xref linkend="gtk3"/>,
[2d37d32]162 <xref linkend="libidn"/>,
[bb65a3c]163 <xref linkend="libpaper"/>, and
[1ecdb18]164 <xref linkend="x-window-system"/>
[2d37d32]165 </para>
166
167 <para condition="html" role="usernotes">
168 User Notes: <ulink url="&blfs-wiki;/gs"/>
169 </para>
[ed30f09]170 </sect2>
171
172 <sect2 role="installation">
173 <title>Installation of Ghostscript</title>
174
[2d37d32]175 <note>
176 <para>
177 The <application>Ghostscript</application> build system is not
178 user-friendly. In order to use system copies of various graphics
179 libraries, you must do it using unconventional methods.
180 </para>
181 </note>
[100786d]182
[2d37d32]183 <para>
[0c32749]184 <application>Ghostscript</application> includes (old) copies of
[de109d93]185 several libraries. Some of these seem to have been patched to fix known
186 vulnerabilities, but others of these copies are less-well maintained.
187 To ensure that any future fixes are applied throughout the whole system,
[2d37d32]188 it is recommended that you first install the released versions of these
[0c32749]189 libraries and then configure <application>Ghostscript</application>
[2d37d32]190 to link to them.
191 </para>
[d453af5]192
[2d37d32]193 <para>
[8558044]194 If you have installed the recommended dependencies on your system,
[4886a74]195 remove the copies of
[1df1b16]196 <application>freetype</application>, <application>lcms2</application>,
[12341a8]197 <application>libjpeg</application>, <application>libpng</application>,
198 and <application>openjpeg</application>:
[2d37d32]199 </para>
[ed30f09]200
[12341a8]201<screen><userinput>rm -rf freetype lcms2mt jpeg libpng openjpeg</userinput></screen>
[2d37d32]202
[27cc55e9]203<!--
[c8585068]204 <para>
[f429481]205 Apply a patch to prevent a segfault when processing some PDF files and
206 to fix a public 0-day in libgs which can be exploited via ImageMagick:
[c8585068]207 </para>
208
[f429481]209<screen><userinput remap="pre">patch -Np1 -i ../ghostscript-&gs-version;-upstream_fix-2.patch</userinput></screen>
[27cc55e9]210-->
211
212 <para>
213 Fix a build failure due to a typo in a source file:
214 </para>
215
216<screen><userinput remap="pre">sed -i 's/gscms_transformm_color_const/gscms_transform_color_const/' base/gsicc_lcms2.c</userinput></screen>
[c8585068]217
[fa3edfef]218 <para>
219 Compile <application>Ghostscript</application>:
220 </para>
[de109d93]221
[595e58e]222<screen><userinput>rm -rf zlib &amp;&amp;
[60d53ec3]223
224./configure --prefix=/usr \
225 --disable-compile-inits \
226 --enable-dynamic \
227 --with-system-libtiff &amp;&amp;
[038ea6ba]228make</userinput></screen>
229
[d453af5]230 <note>
[2d37d32]231 <para>
[9bfd70c]232 The shared library depends on <xref linkend="gtk3"/>. It is only used by
[7ab0957e]233 external programs like <xref linkend="asymptote"/>, <xref
[47d5a9e5]234 linkend="dvisvgm"/>, <xref linkend="imagemagick"/>, and <xref
235 linkend="texlive"/>.
[2d37d32]236 </para>
[d453af5]237 </note>
[038ea6ba]238
[2d37d32]239 <para>
240 To compile the shared library
241 <filename class="libraryfile">libgs.so</filename>, run the following
242 additional command as an unprivileged user:
243 </para>
[038ea6ba]244
245<screen><userinput>make so</userinput></screen>
[73ddd1a0]246
[2d37d32]247 <para>
[a2a37c7]248 This package does not come with a test suite. A set of example files
249 may be used for testing, but it is only possible after installation
250 of the package.
[2d37d32]251 </para>
[d453af5]252
[2d37d32]253 <para>
254 Now, as the <systemitem class="username">root</systemitem> user:
255 </para>
[038ea6ba]256
[d453af5]257<screen role="root"><userinput>make install</userinput></screen>
258
[fa3edfef]259 <para>
260 If you want the shared library too:
261 </para>
[d453af5]262
263<screen role="root"><userinput>make soinstall &amp;&amp;
[aa8ef3bc]264install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
[eff6c3a8]265ln -sfvn ghostscript /usr/include/ps</userinput></screen>
[73ddd1a0]266
[fa3edfef]267 <para>
[f863a1b0]268 Now make the documentation accessible from a standard place:
[fa3edfef]269 </para>
[a0968dcc]270<!-- Starting with 9.23, the install does not seem to copy the examples any more -->
[d453af5]271
[12341a8]272<screen role="root"><userinput>mv -v /usr/share/doc/ghostscript/&gs-version; /usr/share/doc/ghostscript-&gs-version; &amp;&amp;
273rm -rfv /usr/share/doc/ghostscript &amp;&amp;
[654fe2b]274cp -r examples/ /usr/share/ghostscript/&gs-version;/</userinput></screen>
[73ddd1a0]275
[2d37d32]276 <para>
[798c542]277 If you have downloaded the fonts, unpack them to
[2d37d32]278 <filename class="directory">/usr/share/ghostscript</filename> and ensure
[f863a1b0]279 the ownership of the files are
[2d37d32]280 <systemitem class="username">root</systemitem>:
[798c542]281 <systemitem class="groupname">root</systemitem>.
[2d37d32]282 </para>
[038ea6ba]283
[798c542]284<screen role="root"><userinput>tar -xvf ../ghostscript-fonts-std-8.11.tar.gz -C /usr/share/ghostscript --no-same-owner &amp;&amp;
285tar -xvf ../gnu-gs-fonts-other-6.0.tar.gz -C /usr/share/ghostscript --no-same-owner &amp;&amp;
[142f958b]286fc-cache -v /usr/share/ghostscript/fonts/</userinput></screen>
[a2a37c7]287
288 <para>
[f863a1b0]289 You can now test the rendering of various postscript and pdf files from the
[a2a37c7]290 <filename class="directory">/usr/share/ghostscript/&gs-version;/examples
[f863a1b0]291 </filename>. To do this, run the following command (in a X Windows display):
[a2a37c7]292 </para>
293
[c77fb71f]294<screen remap="test"><userinput>gs -q -dBATCH /usr/share/ghostscript/&gs-version;/examples/tiger.eps</userinput></screen>
[a2a37c7]295
[ed30f09]296 </sect2>
[73ddd1a0]297
[2ddf71a5]298 <sect2 role="commands">
299 <title>Command Explanations</title>
300
[2d37d32]301 <para>
[f19b432b]302 <command>rm -rf zlib </command>: <application>zlib</application>
303 was installed as part of LFS.
[2d37d32]304 </para>
305
306 <para>
[2bb5c32]307 <parameter>--disable-compile-inits</parameter>: This option makes
[933ceec]308 <command>gs</command> and <filename>libgs.so</filename> slightly smaller.
[2d37d32]309 </para>
310
311 <para>
[142f958b]312 <parameter>--with-system-libtiff</parameter>: Remove this option if
313 you've not installed <xref linkend="libtiff"/>.
[2d37d32]314 </para>
315
316 <para>
[81f0120]317 <command>install -v -m644 base/*.h... </command>: Some packages
[2d37d32]318 (<application>ImageMagick</application> is one) need the
319 <application>Ghostscript</application> interface headers in place to link
320 to the shared library. These commands install the headers.
321 </para>
322
323 <para>
[eff6c3a8]324 <command>ln -sfvn ghostscript /usr/include/ps</command>: Some packages
[2d37d32]325 expect to find the interface headers in an alternate location.
326 </para>
327
328 <para>
[12341a8]329 <command>mv -v /usr/share/doc/ghostscript/&gs-version;
330 /usr/share/doc/ghostscript-&gs-version;</command>: This moves the
331 documentation where it is expected to be found.
[2d37d32]332 </para>
[933ceec]333
334 <para>
335 <option>--disable-cups</option>: this option will save a tiny amount of
336 space by not linking <command>gs</command> and <filename>libgs.so</filename>
337 to the <xref linkend="cups"/> libraries if you have installed those.
338 </para>
[2ddf71a5]339 </sect2>
340
[ed30f09]341 <sect2 role="content">
342 <title>Contents</title>
[038ea6ba]343 <segmentedlist>
344 <segtitle>Installed Programs</segtitle>
345 <segtitle>Installed Library</segtitle>
346 <segtitle>Installed Directories</segtitle>
347
348 <seglistitem>
[2d37d32]349 <seg>
[0e390db]350 dvipdf, eps2eps, gs, gsbj, gsc (from soinstall), gsdj,
[81f0120]351 gsdj500, gslj, gslp, gsnd, gsx (from soinstall), lprsetup.sh,
352 pdf2dsc, pdf2ps, pf2afm, pfbtopfa, pphs, printafm, ps2ascii,
353 ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr,
[0e390db]354 ps2ps, ps2ps2, and unix-lpr.sh
[933ceec]355 <!-- I don't see bdftops,fixmswrd.pl or pv.sh on my builds [ I don't
356 have any bdf tools from xorg ] but they are still referenced in
357 base/unixinst.mak -->
[2d37d32]358 </seg>
[81f0120]359 <seg>libgs.so and
360 /usr/lib/ghostscript/&gs-version;/X11.so</seg>
[2d37d32]361 <seg>
362 /usr/include/ghostscript,
363 /usr/lib/ghostscript,
[019052a1]364 /usr/share/ghostscript, and
[2d37d32]365 /usr/share/doc/ghostscript-&gs-version;
366 </seg>
[038ea6ba]367 </seglistitem>
368 </segmentedlist>
369
370 <variablelist>
371 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
372 <?dbfo list-presentation="list"?>
373 <?dbhtml list-presentation="table"?>
374
[d891148c]375 <varlistentry id="gplgs-prog">
[038ea6ba]376 <term><command>gs</command></term>
377 <listitem>
[2d37d32]378 <para>
379 is an interpreter for Adobe Systems' PostScript(tm) and Portable
[4c24eb0a]380 Document Format (PDF)
[2d37d32]381 </para>
[d891148c]382 <indexterm zone="gs gplgs-prog">
[038ea6ba]383 <primary sortas="b-gs">gs</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
[d891148c]388 <varlistentry id="libgs.so">
389 <term><filename class="libraryfile">libgs.so</filename></term>
390 <listitem>
[2d37d32]391 <para>
392 provides <application>Ghostscript</application> functionality to
393 other programs, such as <application>GSView</application>,
394 <application>ImageMagick</application>, and
[4c24eb0a]395 <application>libspectre</application>
[2d37d32]396 </para>
[d891148c]397 <indexterm zone="gs libgs.so">
398 <primary sortas="c-libgs.so">libgs.so</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
[038ea6ba]402 </variablelist>
403
[2d37d32]404 <para>
[0c32749]405 <application>Ghostscript</application> provides many different
[2d37d32]406 scripts used to convert PostScript, PDF, and other formats. Please refer to
407 the HTML documentation or the man pages for information about the
408 capabilities provided.
409 </para>
[ed30f09]410 </sect2>
[4c24eb0a]411
[cabb2de]412</sect1>
Note: See TracBrowser for help on using the repository browser.