Changeset de109d93 for pst/printing


Ignore:
Timestamp:
12/19/2010 12:01:48 AM (13 years ago)
Author:
Ken Moffat <ken@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 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
Children:
b1a1d93e
Parents:
d44b66f
Message:

Update to ghostscript-9.00

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pst/printing/gs.xml

    rd44b66f rde109d93  
    77  <!-- <!ENTITY gs-download-http "&sourceforge-repo;/ghostscript/ghostscript-&gs-version;.tar.bz2"> -->
    88  <!ENTITY gs-download-http "http://ghostscript.com/releases/ghostscript-&gs-version;.tar.gz">
    9   <!ENTITY gs-download-ftp  "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs871/ghostscript-&gs-version;.tar.gz">
    10   <!ENTITY gs-md5sum        "51a522a5b4818bd3dc7c1c0e9dd22bad">
    11   <!ENTITY gs-size          "25.2 MB">
    12   <!ENTITY gs-buildsize     "255 MB (includes installing libgs.so and both font tarballs)">
    13   <!ENTITY gs-time          "3.3 SBU (includes building and installing libgs.so)">
     9  <!-- no response 2010-12-18
     10  <!ENTITY gs-download-ftp  "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs900/ghostscript-&gs-version;.tar.gz"> -->
     11  <!ENTITY gs-download-ftp  " ">
     12  <!ENTITY gs-md5sum        "177c33b796ed28d3d568e230a6dbdba5">
     13  <!ENTITY gs-size          "22.3 MB">
     14  <!ENTITY gs-buildsize     "170 MB (includes installing libgs.so and both font tarballs)">
     15  <!ENTITY gs-time          "2.7 SBU (includes building and installing libgs.so)">
    1416
    1517  <!-- <!ENTITY gs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz"> -->
     
    4446    targets.</para>
    4547
    46     &lfs65_checked;
     48    &lfs67_checked;
    4749
    4850    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    99101      <title>Patches</title>
    100102      <listitem>
    101         <para>Optional patch: <ulink
     103        <para>Required patch: <ulink
     104        url="&patch-root;/ghostscript-&gs-version;-security_fixes-1.patch"/>
     105        </para>
     106      </listitem>
     107      <listitem>
     108        <para>Recommended patch (unless you build without JPEG2000 support) : <ulink
    102109        url="&patch-root;/ghostscript-&gs-version;-system_jasper-1.patch"/>
    103110        </para>
     
    107114    <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
    108115
     116    <bridgehead renderas="sect4">Recommended</bridgehead>
     117    <para role="optional"><xref linkend="expat"/>,
     118    <xref linkend="freetype2"/>,
     119    <xref linkend="jasper"/>
     120    <xref linkend="libjpeg"/>,
     121    <xref linkend="libpng"/>,
     122    <xref linkend="libtiff"/>, and
     123    <xref linkend="lcms"/></para>
     124
    109125    <bridgehead renderas="sect4">Optional</bridgehead>
    110     <para role="optional"><xref linkend="libjpeg"/>,
    111     <xref linkend="libpng"/>,
    112     <xref linkend="libtiff"/>,
    113     <xref linkend="jasper"/>,
     126    <para role="optional">
    114127    <xref linkend="cairo"/>,
    115128    <xref linkend="fontconfig"/>,
    116129    <xref linkend="gtk2"/>,
    117130    <xref linkend="cups"/>,
    118     <xref linkend="x-window-system"/>,
    119     <ulink url="http://www.linuxprinting.org/ijs/">IJS</ulink>, and
     131    <xref linkend="x-window-system"/>, and
     132    <!-- the link for ijs source ultimately takes users back to the ghostscript site
     133    <ulink url="http://www.linuxprinting.org/ijs/">IJS</ulink>, and -->
    120134    <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink></para>
    121135
     
    128142    <title>Installation of Ghostscript</title>
    129143
    130     <note>
     144    <para>Install <application>GPL Ghostscript</application> by running the
     145    following commands:</para>
     146
     147      <note>
    131148      <para>The <application>Ghostscript</application> build system is not
    132149      user-friendly. In order to use system copies of various graphics
    133150      libraries, you must do it using unconventional methods.</para>
    134 
    135       <para>First, if you wish to use the system-installed version of
    136       <application>JasPer</application>, remove the local copy from the
    137       source tree and apply a patch:</para>
    138 
    139 <screen><userinput>rm -rf jasper &amp;&amp;
    140 patch -Np1 -i ../ghostscript-&gs-version;-system_jasper-1.patch</userinput></screen>
    141 
    142       <para>Next, if you wish to use the system-installed copies of
    143       <application>libjpeg</application> and <application>libpng</application>,
    144       remove the local copies from the source tree:</para>
    145 
    146 <screen><userinput>rm -rf jpeg &amp;&amp;
    147 rm -rf libpng</userinput></screen>
    148 
    149       <para>If you wish to use the system-installed copy of
    150       <application>libtiff</application>, add the parameter
    151       <option>--with-system-libtiff</option> to the <command>./configure</command>
    152       command shown below. Also remove the
    153       <filename class='directory'>tiff</filename> directory from the source tree
    154       to prevent the <application>Ghostscript</application> build from using any
    155       of its local copy.</para>
    156 
    157       <para>Unfortunately, <application>Ghostscript</application> will use local
    158       copies of <application>Expat</application> and
    159       <application>Zlib</application> from the source tree. There doesn't
    160       appear to be an easy way to use system-installed copies of these libraries
    161       without doing some hacking of the sources.</para>
    162     </note>
    163 
    164     <para>Install <application>GPL Ghostscript</application> by running the
    165     following commands:</para>
    166 
    167 <screen><userinput>./configure --prefix=/usr --enable-dynamic --with-drivers=ALL,x11 &amp;&amp;
     151      </note>
     152
     153      <para>Begin by patching some vulnerabilities:</para>
     154
     155<screen><userinput>patch -Np1 -i ../ghostscript-&gs-version;-security_fixes-1.patch
     156</userinput></screen>
     157
     158      <para><application>GPL Ghostscript</application> includes (old) copies of
     159      several libraries. Some of these seem to have been patched to fix known
     160      vulnerabilities, but others of these copies are less-well maintained.
     161      To ensure that any future fixes are applied throughout the whole system,
     162      it is recommended that you build the released versions of these libraries
     163      and then configure <application>GPL Ghostscript</application> to link to
     164      them. This configuration has several steps.</para>
     165
     166      <para>Unless you intend to build <application>GPL Ghostscript</application>
     167      without support for <literal>JPEG2000</literal> files, apply a patch to
     168      allow it to build against a current system-installed version of
     169      <application>JasPer</application>:</para>
     170
     171<screen><userinput>patch -Np1 -i ../ghostscript-&gs-version;-system_jasper-1.patch
     172</userinput></screen>
     173
     174      <para>Remove the local copies of <application>expat</application>,
     175      <application>JasPer</application>, <application>lcms</application>,
     176      <application>libjpeg</application>, <application>libpng</application>,
     177      <application>libtiff</application>, and <application>zlib</application>:
     178      </para>
     179
     180<screen><userinput>rm -rf expat jasper lcms jpeg libpng tiff zlib
     181</userinput></screen>
     182
     183    <para>Run the configure command:</para>
     184
     185<screen><userinput>./configure --prefix=/usr --enable-dynamic --with-drivers=ALL,x11 --with-system-libtiff --disable-compile-inits</userinput></screen>
     186
     187    <para>To ensure the build is able to use the system versions of
     188    <application>expat</application>, <application>freetype</application>, and
     189    <application>lcms</application> it is necessary to make some changes and an
     190    addition to the <literal>Makefile</literal> before building the package:</para>
     191
     192<screen><userinput>sed -i  -e 's|SHARE_LCMS=0|SHARE_LCMS=1|' \
     193        -e 's|LCMSSRCDIR=lcms|LCMSSRCDIR=/usr|' \
     194        -e 's|=imdi|&amp;\n\n# Use system expat library\n\nSHARE_EXPAT=1|' \
     195        -e 's|SHARE_FT=0|SHARE_FT=1|' Makefile &amp;&amp;
    168196make</userinput></screen>
    169197
     
    176204    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    177205
    178 <screen role="root"><userinput>make install docdir=/usr/share/doc/ghostscript-&gs-version; &amp;&amp;
    179 
     206<!-- for 9.00 docdir is only referenced by GS_DOCDIR which is itself not referenced
     207 so the docs still go into /usr/share/ghostscript/9.00/
     208<screen role="root"><userinput>make install docdir=/usr/share/doc/ghostscript-&gs-version; &amp;&amp;-->
     209<screen role="root"><userinput>make install &amp;&amp;
    180210for INSTFILE in `ls doc`
    181211do
    182   if [ ! -f          /usr/share/doc/ghostscript-&gs-version;/$INSTFILE ]; then
     212  <!--if [ ! -f          /usr/share/doc/ghostscript-&gs-version;/$INSTFILE ]; then -->
     213  if [ ! -f          /usr/share/ghostscript/&gs-version;/doc/$INSTFILE ]; then
    183214    install -v -m644 doc/$INSTFILE \
    184                      /usr/share/doc/ghostscript-&gs-version;
     215                     /usr/share/ghostscript/&gs-version;/doc
     216                     <!--/usr/share/doc/ghostscript-&gs-version;-->
    185217  fi
    186218done &amp;&amp;
    187219
    188 install -v -m755 -d /usr/share/doc/ghostscript-&gs-version;/figures &amp;&amp;
     220<!--install -v -m755 -d /usr/share/doc/ghostscript-&gs-version;/figures &amp;&amp;-->
     221install -v -m755 -d /usr/share/ghostscript/&gs-version;/doc/figures &amp;&amp;
    189222install -v -m644    doc/figures/* \
    190                     /usr/share/doc/ghostscript-&gs-version;/figures</userinput></screen>
     223                    /usr/share/ghostscript/&gs-version;/doc/figures &amp;&amp;
     224                    <!--/usr/share/doc/ghostscript-&gs-version;/figures-->
     225ln -sv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;
     226</userinput></screen>
    191227
    192228    <para>To install the shared library
     
    230266    (this does no harm on the <literal>x86_64</literal> architecture, although
    231267    it is not required there).</para>
     268    <para><command>--disable-compile-inits</command>: This parameter is intended
     269    to avoid compiling initialization files into the executables.  It is used here
     270    to simplify building agaisnt the system version of
     271    <application>zlib</application>.</para>
     272    <para><option>--without-jasper</option>: If you know you do not wish to print
     273    any <literal>JPEG2000</literal> files, this switch (and removing the
     274    <filename class="directory">jasper/</filename> source) will achieve this.</para>
     275    <para><option>--without-jbig2dec</option>: The <literal>JBIG2</literal>
     276    decompression code (used for some faxes) can be disabled by using this switch
     277    and removing the <filename class="directory">jbig2dec/</filename> source.</para>
    232278    <para><command>install ...</command>: Some packages
    233279    (<application>ImageMagick</application> is one) need the
     
    235281    to the shared library. These commands install the headers.</para>
    236282
    237     <!-- <para><command>ln -sv ... /usr/share/doc/ghostscript-&gs-version;</command>: This puts
    238     the documentation where it is expected to be found.</para> -->
     283    <para><command>ln -sv ... /usr/share/doc/ghostscript-&gs-version;</command>: This puts
     284    the documentation where it is expected to be found.</para>
    239285
    240286    <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some
     
    253299      <seglistitem>
    254300        <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
    255         gsdj, gsdj500, gslj, gslp, gsnd, lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
     301        gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx (from soinstall),
     302        lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
    256303        pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
    257304        ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
     
    259306        <seg>libgs.so </seg>
    260307        <seg>/usr/include/ghostscript, /usr/lib/ghostscript, /usr/share/ghostscript,
     308        <!--and /usr/share/doc/ghostscript</seg>-->
    261309        and /usr/share/doc/ghostscript-&gs-version;</seg>
    262310      </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.