Ignore:
Timestamp:
10/15/2023 09:45:12 PM (8 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
06ec28b7
Parents:
8bb1591
Message:

Update to cups-filters-2.0.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pst/printing/cups-filters.xml

    r8bb1591 rbca2e45  
    66
    77  <!ENTITY cups-filters-download-http
    8   "https://www.openprinting.org/download/cups-filters/cups-filters-&cups-filters-version;.tar.xz">
     8  "https://github.com/OpenPrinting/cups-filters/releases/download/&cups-filters-version;/cups-filters-&cups-filters-version;.tar.xz">
    99  <!ENTITY cups-filters-download-ftp  " ">
    10   <!ENTITY cups-filters-md5sum        "24bed15110499fd652d65d6baab85ca6">
    11   <!ENTITY cups-filters-size          "1.4 MB">
    12   <!ENTITY cups-filters-buildsize     "56 MB (with tests), 16 MB installed">
    13   <!ENTITY cups-filters-time          "0.2 SBU (Using parallelism=4; with tests)">
     10  <!ENTITY cups-filters-md5sum        "1d9ac8b601ea5e25a42767856a48c4d7">
     11  <!ENTITY cups-filters-size          "437 KB">
     12  <!ENTITY cups-filters-buildsize     "9.1 MB">
     13  <!ENTITY cups-filters-time          "less than 0.1 SBU (Using parallelism=4)">
    1414]>
    1515
     
    2828
    2929    <para>
    30       The <application>CUPS Filters</application> package contains backends,
    31       filters and other software that was once part of the core
    32       <application>CUPS</application> distribution but is no longer
    33       maintained by Apple Inc.
     30      The <application>CUPS Filters</application> package is only needed
     31      to adapt <xref linkend="libcupsfilters"/> and <xref linkend="libppd"/>
     32      filter functions for cups-2.x. It should not be needed for cups-3.x.
    3433    </para>
    3534
     
    7069    </itemizedlist>
    7170
    72     <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    73     <itemizedlist spacing="compact">
    74       <listitem>
    75         <para>
    76           Required patch:
    77           <ulink url="&patch-root;/cups-filters-&cups-filters-version;-security_fix-1.patch"/>
    78         </para>
    79       </listitem>
    80     </itemizedlist>
    81 
    8271    <bridgehead renderas="sect3">CUPS Filters Dependencies</bridgehead>
    8372
    8473    <bridgehead renderas="sect4">Required</bridgehead>
    8574    <para role="required">
    86       <xref linkend="cups"/>,
    87       <xref linkend="glib2"/>,
    88       <xref linkend="gs"/>,
    89       <xref linkend="lcms2"/>,
    90       <xref linkend="poppler"/>, and
    91       <xref linkend="qpdf"/>
    92     </para>
    93 
    94     <bridgehead renderas="sect4">Recommended</bridgehead>
    95     <para role="recommended">
    96       <xref linkend="dejavu-fonts"/> (the build fails if they are not
    97       installed, although they are only required for the tests),
    98       <xref linkend="libexif"/>,
    99       <xref linkend="libjpeg"/>,
    100       <xref linkend="libpng"/>,
    101       <xref linkend="libtiff"/>, and
    102       <xref linkend="mupdf"/> (mutool)
    103     </para>
    104 
    105     <bridgehead renderas="sect4">Optional</bridgehead>
    106     <para role="optional">
    107       <xref linkend="avahi"/> (required to build the DNSSD backend of the
    108       <command>cups-browsed</command> daemon, which is needed for operating
    109       some network printers),
    110       <xref linkend="openldap"/>,
    111       <xref linkend="php"/> (use of this might be broken),
    112       <ulink url="https://liblouis.github.io/downloads/">Liblouis (Braille)</ulink>, and
    113       <ulink url="https://liblouis.github.io/downloads/">Liblouisutdml (Braille)</ulink>
    114     </para>
    115 
    116     <bridgehead renderas="sect4">Optional printer drivers (runtime)</bridgehead>
    117     <para role="optional">
    118       <xref role="runtime" linkend="gutenprint"/> (for supported printers),
    119       or other printer drivers, such as <ulink role="runtime"
    120       url="https://sourceforge.net/projects/hplip/files/hplip/">hplip</ulink>
     75      <xref linkend="libcupsfilters"/> and
     76      <xref linkend="libppd"/>
    12177    </para>
    12278
     
    12682    <title>Installation of CUPS Filters</title>
    12783
    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 
    137     <para>
    138       First, fix a security vulnerability that can allow for remote code
    139       execution with the 'beh' printer backend:
    140     </para>
    141 
    142 <screen><userinput remap="pre">patch -Np1 -i ../cups-filters-&cups-filters-version;-security_fix-1.patch</userinput></screen>
    143 
    14484    <para>
    14585      Install <application>CUPS Filters</application> by running the following
     
    14787    </para>
    14888
    149 <screen><userinput>CXXFLAGS="${CXXFLAGS:- -O2 -g} -std=c++17"  \
    150 ./configure --prefix=/usr                   \
    151             --sysconfdir=/etc               \
    152             --localstatedir=/var            \
    153             --without-rcdir                 \
     89<screen><userinput>./configure --prefix=/usr                   \
    15490            --disable-static                \
    155             --disable-avahi                 \
    15691            --docdir=/usr/share/doc/cups-filters-&cups-filters-version; &amp;&amp;
    15792make</userinput></screen>
    15893
    159 <!-- The test suite still bombs out for me. I'll leave the instructions for it
    160      here though. I didn't have the Dejavu font installed, but used one of the
    161      ones installed by X.
    162      Version 1.16.0: test worked for me with "make check >testlog 2>&1",
    163      that is, the other way around. I have DejaVu fonts. Pierre L
    164      With 1.17.2 (and DejaVu) the test output is clean, no need for a log. Ken
    165 
    166      Tests are clean for version 1.21.0 (and version 1.21.5):  - Bruce
    167      # TOTAL: 6
    168      # PASS:  6
    169      real    0m2.504s -->
    170 
    171     <para>
    172       To test the results, issue:
    173       <!--<command>make check &gt;testlog 2&gt;&amp;1</command>.-->
    174       <command>make check</command>. DejaVu fonts
    175       are needed for the tests.
     94    <para>
     95      This package does not come with a functional test suite.
    17696    </para>
    17797
     
    181101
    182102<screen role="root"><userinput>make install</userinput></screen>
    183 
    184     <para revision="systemd">
    185       Install the systemd unit by running the following command as the
    186       <systemitem class="username">root</systemitem> user:
    187     </para>
    188 
    189 <screen role="root" revision="systemd"><userinput>install -v -m644 utils/cups-browsed.service /lib/systemd/system/cups-browsed.service</userinput></screen>
    190103
    191104  </sect2>
     
    193106  <sect2 role="commands">
    194107    <title>Command Explanations</title>
    195 
    196 <!-- please comment this if no patches are currently needed -->
    197 <!--<para>
    198       <parameter>patch -Np1 -i ../cups-filters-&cups-filters-version;-poppler71-1.patch</parameter>:
    199       Conditionally apply changes for recent versions of poppler.
    200     </para>
    201     Poppler-0.72.0, cups-filters-1.21.5 - no longer needed.-->
    202 
    203     <para>
    204       <envar>CXXFLAGS="${CXXFLAGS:- -O2 -g} -std=c++17"</envar>: This
    205       environment variable is necessary to fix a problem introduced by
    206       qpdf-11.3.0.
    207     </para>
    208 
    209     <para>
    210       <parameter>--disable-avahi</parameter>: This switch is needed
     108    <!-- configure still lists this option, but it does not seem to be
     109         used.
     110    <para>
     111      <parameter>- -disable-avahi</parameter>: This switch is needed
    211112      if the optional <xref linkend="avahi"/> is not installed. Remove
    212113      it if avahi is installed and you need network printer discovery
    213114      capabilities.
    214115    </para>
    215 
    216     <para>
    217       <parameter>--without-rcdir</parameter>: This switch disables
    218       installation of the bundled bootscript which is not compatible
    219       with BLFS.
    220     </para>
    221 
    222 <!-- Those are hard dependencies now
    223     <para>
    224       <parameter>- -with-gs-path=/usr/bin/gs</parameter>: This switch
    225       defines the path to the <application>GhostScript</application>
    226       binary in case <xref linkend="gs"/> is not installed at build time.
    227     </para>
    228 
    229     <para>
    230       <parameter>- -with-pdftops-path=/usr/bin/gs</parameter>: This switch
    231       defines the path to the <application>GhostScript</application>
    232       binary in case <xref linkend="gs"/> is not installed at build time.
    233     </para>
    234 -->
     116    -->
    235117
    236118    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    242124    </para>
    243125    -->
    244 
    245     <para>
    246       <option>--with-test-font-path=<replaceable>VALUE</replaceable></option>:
    247       If you wish to run the tests, but
    248       you do not have the default
    249       <filename>/usr/share/fonts/dejavu/DejaVuSans.ttf</filename> use this
    250       switch to specify where <filename>DejaVuSans.ttf</filename> (or perhaps
    251       some other text TTF font - untested) is located.
    252     </para>
    253 
    254 
    255   </sect2>
    256 
    257 <!-- TODO: Write a bootscript for cups-browsed -->
    258 
    259   <sect2 role="configuration" revision="systemd">
    260     <title>Configuring CUPS Filters</title>
    261 
    262     <sect3 id="cups-filters-init">
    263       <title>Systemd Units</title>
    264 
    265       <para>
    266         To start the <command>cups-browsed</command> daemon at boot, enable
    267         the previously installed systemd unit by running the following command
    268         as the <systemitem class="username">root</systemitem> user:
    269       </para>
    270 
    271       <indexterm zone="cups-filters cups-filters-init">
    272         <primary sortas="f-cups-browsed">cups-browsed</primary>
    273       </indexterm>
    274 
    275 <screen role="root"><userinput>systemctl enable cups-browsed</userinput></screen>
    276 
    277     </sect3>
    278126
    279127  </sect2>
     
    289137      <seglistitem>
    290138        <seg>
    291           cups-browsed, driverless, driverless-fax, and foomatic-rip
    292           <!-- and ttfread -->
     139          driverless, driverless-fax, and foomatic-rip
    293140        </seg>
    294141        <seg>
    295           libcupsfilters.so and libfontembed.so
     142          None
    296143        </seg>
    297144        <seg>
    298           /usr/include/{cupsfilters,fontembed},
    299            /usr/lib/cups/{backend,driver,filter},
    300           /usr/share/cups/{braille,charsets},
     145          /usr/lib/cups/{backend,driver,filter},
    301146          /usr/share/doc/cups-filters-&cups-filters-version;, and
    302147          /usr/share/ppd/cupsfilters
     
    310155      <?dbhtml list-presentation="table"?>
    311156
    312       <varlistentry id="cups-browsed">
    313         <term><command>cups-browsed</command></term>
    314         <listitem>
    315           <para>
    316             is a daemon for browsing the Bonjour and CUPS broadcasts of shared,
    317             remote CUPS printers
    318           </para>
    319           <indexterm zone="cups-filters cups-browsed">
    320             <primary sortas="b-cups-browsed">cups-browsed</primary>
    321           </indexterm>
    322         </listitem>
    323       </varlistentry>
    324 
    325157      <varlistentry id="driverless">
    326158        <term><command>driverless</command></term>
     
    359191        </listitem>
    360192      </varlistentry>
    361 
     193      <!--
    362194      <varlistentry id="libcupsfilters">
    363195        <term><filename class="libraryfile">libcupsfilters.so</filename></term>
     
    371203        </listitem>
    372204      </varlistentry>
    373 
     205      -->
    374206    </variablelist>
    375207
Note: See TracChangeset for help on using the changeset viewer.