source: pst/printing/cups-filters.xml@ 10cbf37

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn elogind 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 10cbf37 was 10cbf37, checked in by Ken Moffat <ken@…>, 5 years ago

Fix build breakage with poppler-0.70.0 and 0.71.0.

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

  • Property mode set to 100644
File size: 11.4 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 cups-filters-download-http
8 "https://www.openprinting.org/download/cups-filters/cups-filters-&cups-filters-version;.tar.xz">
9 <!ENTITY cups-filters-download-ftp " ">
10 <!ENTITY cups-filters-md5sum "75b07268abe64a0f15caced8d33c3cc2">
11 <!ENTITY cups-filters-size "1.5 MB">
12 <!ENTITY cups-filters-buildsize "57 MB (with tests), 15MB installed">
13 <!ENTITY cups-filters-time "0.4 SBU (with tests)">
14]>
15
16<sect1 id="cups-filters" xreflabel="cups-filters-&cups-filters-version;">
17 <?dbhtml filename="cups-filters.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>cups-filters-&cups-filters-version;</title>
25
26 <indexterm zone="cups-filters">
27 <primary sortas="a-cups-filters">cups-filters</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to CUPS Filters</title>
32
33 <para>
34 The <application>CUPS Filters</application> package contains backends,
35 filters and other software that was once part of the core
36 <application>CUPS</application> distribution but is no longer
37 maintained by Apple Inc.
38 </para>
39
40 &lfs83_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&cups-filters-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&cups-filters-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &cups-filters-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &cups-filters-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &cups-filters-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &cups-filters-time;
72 </para>
73 </listitem>
74
75 <listitem>
76 <para>
77 Required patch to fix building with recent versions of <xref linkend="poppler"/>:
78 <ulink url="&patch-root;/cups-filters-&cups-filters-version;-poppler71-1.patch"/>
79 </para>
80 </listitem>
81 </itemizedlist>
82
83 <bridgehead renderas="sect3">CUPS Filters Dependencies</bridgehead>
84
85 <bridgehead renderas="sect4">Required</bridgehead>
86 <para role="required">
87 <xref linkend="cups"/>,
88 <xref linkend="glib2"/>,
89 <xref linkend="gs"/>,
90 <xref linkend="lcms2"/>,
91 <xref linkend="poppler"/>, and
92 <xref linkend="qpdf"/>
93 </para>
94
95 <bridgehead renderas="sect4">Recommended</bridgehead>
96 <para role="recommended">
97 <xref linkend="libjpeg"/>,
98 <xref linkend="libpng"/>,
99 <xref linkend="libtiff"/> and
100 <xref linkend="mupdf"/> (mutool),
101 </para>
102
103 <bridgehead renderas="sect4">Optional</bridgehead>
104 <para role="optional">
105 <xref linkend="avahi"/>,
106 <xref linkend="dejavu-fonts"/> (required for the tests),
107 <xref linkend="ijs"/>,
108 <xref linkend="openldap"/>,
109 <xref linkend="php"/> (use of this might be broken),
110 <ulink url="http://liblouis.org/">Liblouis (Braille)</ulink>, and
111 <ulink url="http://liblouis.org/">Liblouisutdml (Braille)</ulink>
112 </para>
113
114 <bridgehead renderas="sect4">Optional printer drivers (runtime)</bridgehead>
115 <para role="optional">
116 <xref role="runtime" linkend="gutenprint"/> (for supported printers),
117 or other printer drivers, such as <ulink role="runtime"
118 url="http://sourceforge.net/projects/hplip/files/hplip/">hplip</ulink>
119 </para>
120
121 <para condition="html" role="usernotes">
122 User Notes: <ulink url="&blfs-wiki;/cups-filters"/>
123 </para>
124 </sect2>
125
126 <sect2 role="installation">
127 <title>Installation of CUPS Filters</title>
128
129 <para revision="systemd">
130 First, fix the systemd unit file to work with
131 <application>CUPS</application> 2.0 and later:
132 </para>
133
134<screen revision="systemd"><userinput>sed -i "s:cups.service:org.cups.cupsd.service:g" utils/cups-browsed.service</userinput></screen>
135
136 <para>
137 Fix the build for the changes in some recent versions of
138 <application>poppler</application>:
139 </para>
140
141<screen><userinput>patch -Np1 -i ../cups-filters-&cups-filters-version;-poppler71-1.patch</userinput></screen>
142
143 <para>
144 Install <application>CUPS Filters</application> by running the following
145 commands:
146 </para>
147
148<screen><userinput>./configure --prefix=/usr \
149 --sysconfdir=/etc \
150 --localstatedir=/var \
151 --without-rcdir \
152 --disable-static \
153 --disable-avahi \
154 --docdir=/usr/share/doc/cups-filters-&cups-filters-version; &amp;&amp;
155make</userinput></screen>
156
157<!-- The test suite still bombs out for me. I'll leave the instructions for it
158 here though. I didn't have the Dejavu font installed, but used one of the
159 ones installed by X.
160 Version 1.16.0: test worked for me with "make check >testlog 2>&1",
161 that is, the other way around. I have DejaVu fonts. Pierre L
162 With 1.17.2 (and DejaVu) the test output is clean, no need for a log. Ken
163
164 Tests are clean for version 1.21.0: - Bruce
165 # TOTAL: 6
166 # PASS: 6
167 real 0m2.504s -->
168
169 <para>
170 To test the results, issue:
171 <!--<command>make check &gt;testlog 2&gt;&amp;1</command>.-->
172 <command>make check</command>. DejaVu fonts
173 are needed for the tests.
174 </para>
175
176 <para>
177 Now, as the <systemitem class="username">root</systemitem> user:
178 </para>
179
180<screen role="root"><userinput>make install</userinput></screen>
181
182 <para revision="systemd">
183 Install the systemd unit by running the following command as the
184 <systemitem class="username">root</systemitem> user:
185 </para>
186
187<screen role="root" revision="systemd"><userinput>install -v -m644 utils/cups-browsed.service /lib/systemd/system/cups-browsed.service</userinput></screen>
188
189 </sect2>
190
191 <sect2 role="commands">
192 <title>Command Explanations</title>
193<!-- please comment this if no patches are currently needed -->
194 <para>
195 <parameter>patch -Np1 -i ../cups-filters-&cups-filters-version;-poppler71-1.patch</parameter>:
196 Conditionally apply changes for recent versions of poppler.
197 </para>
198 <para>
199 <parameter>--disable-avahi</parameter>: This switch is needed
200 if the optional <xref linkend="avahi"/> is not installed. Remove
201 it if avahi is installed and you need network printer discovery
202 capabilities.
203 </para>
204
205 <para>
206 <parameter>--without-rcdir</parameter>: This switch disables
207 installation of the bundled bootscript which is not compatible
208 with BLFS.
209 </para>
210
211<!-- Those are hard dependencies now
212 <para>
213 <parameter>- -with-gs-path=/usr/bin/gs</parameter>: This switch
214 defines the path to the <application>GhostScript</application>
215 binary in case <xref linkend="gs"/> is not installed at build time.
216 </para>
217
218 <para>
219 <parameter>- -with-pdftops-path=/usr/bin/gs</parameter>: This switch
220 defines the path to the <application>GhostScript</application>
221 binary in case <xref linkend="gs"/> is not installed at build time.
222 </para>
223-->
224
225 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
226 href="../../xincludes/static-libraries.xml"/>
227
228 <para>
229 <option>--enable-ijs</option>: This switch will allow the pdftoijs
230 filter, for sending PDFs to an HP InkJet Server, to be built.
231 </para>
232
233<!--<para>
234 <command>make check 2&gt;&amp;1 &gt;testlog</command>: The testsuite
235 dumps a stream of bytes into the input buffer after it finishes. Sending
236 the output to a file keeps the history usable, but some debug information
237 will still appear on the screen.
238 </para>-->
239
240<!-- option seems to be obsolete - configure doesn't pick it up
241 <para>
242 <option>- -with-test-path=<replaceable>VALUE</replaceable></option>: If you wish to run the tests, but
243 you do not have the default
244 <filename>/usr/share/fonts/dejavu/DejaVuSans.ttf</filename> use this switch
245 to specify where <filename>DejaVuSans.ttf</filename> (or perhaps some other
246 text TTF font - untested) is located.
247 </para>
248-->
249
250 </sect2>
251
252<!-- TODO: Write a bootscript for cups-browsed -->
253
254 <sect2 role="configuration" revision="systemd">
255 <title>Configuring CUPS Filters</title>
256
257 <sect3 id="cups-filters-init">
258 <title>Systemd Units</title>
259
260 <para>
261 To start the <command>cups-browsed</command> daemon at boot, enable
262 the previously installed systemd unit by running the following command
263 as the <systemitem class="username">root</systemitem> user:
264 </para>
265
266 <indexterm zone="cups-filters cups-filters-init">
267 <primary sortas="f-cups-browsed">cups-browsed</primary>
268 </indexterm>
269
270<screen role="root"><userinput>systemctl enable cups-browsed</userinput></screen>
271
272 </sect3>
273
274 </sect2>
275
276 <sect2 role="content">
277 <title>Contents</title>
278
279 <segmentedlist>
280 <segtitle>Installed Programs</segtitle>
281 <segtitle>Installed Libraries</segtitle>
282 <segtitle>Installed Directories</segtitle>
283
284 <seglistitem>
285 <seg>
286 cups-browsed, driverless (link), foomatic-rip (link) and ttfread
287 </seg>
288 <seg>
289 libcupsfilters.so and libfontembed.so
290 </seg>
291 <seg>
292 /usr/include/{cupsfilters,fontembed},
293 /usr/lib/cups/driver,
294 /usr/share/cups/{braille,charsets},
295 /usr/share/doc/cups-filters-&cups-filters-version; and
296 /usr/share/ppd/cupsfilters
297 </seg>
298 </seglistitem>
299 </segmentedlist>
300
301 <variablelist>
302 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
303 <?dbfo list-presentation="list"?>
304 <?dbhtml list-presentation="table"?>
305
306 <varlistentry id="cups-browsed">
307 <term><command>cups-browsed</command></term>
308 <listitem>
309 <para>
310 is a daemon for browsing the Bonjour and CUPS broadcasts of shared,
311 remote CUPS printers.
312 </para>
313 <indexterm zone="cups-filters cups-browsed">
314 <primary sortas="b-cups-browsed">cups-browsed</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="foomatic-rip">
320 <term><command>foomatic-rip</command></term>
321 <listitem>
322 <para>
323 is a universal print filter/RIP wrapper which can be used as CUPS
324 filter or stand-alone for spooler-less, direct printing.
325 </para>
326 <indexterm zone="cups-filters foomatic-rip">
327 <primary sortas="b-foomatic-rip">foomatic-rip</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="libcupsfilters">
333 <term><filename class="libraryfile">libcupsfilters.so</filename></term>
334 <listitem>
335 <para>
336 contains <application>CUPS Filters</application> API functions.
337 </para>
338 <indexterm zone="cups-filters libcupsfilters">
339 <primary sortas="c-libcupsfilters">libcupsfilters.so</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 </variablelist>
345
346 </sect2>
347
348</sect1>
Note: See TracBrowser for help on using the repository browser.