[cups] cups 2.0.2 / cups-filters-1.0.62 && printing UTF-8 text files

Matthias Apitz guru at unixarea.de
Thu Feb 12 02:18:03 PST 2015


El día Thursday, February 12, 2015 a las 10:44:31AM +0100, Johannes Meixner escribió:

> 
> Hello,
> 
> On Feb 12 10:14 Matthias Apitz wrote (excerpt):
> > ported cups-2.0.2 and cups-filters-1.0.62 to one
> > of our Linux SLES 11 hosts here.
> 
> Awesome!
> I gave up making cups-filters for SLE11 because it requires too much
> "new stuff" that does not exist on SLE11 (e.g. qpdf, ...) and
> even if I made a somewhat crippled cups-filters for SLE11
> I might get nothing else but complaints why this or that
> functionality does not exist or does not work. In short:
> For me cups-filters for SLE11 would be a "Tamagotchi"
> ( a useless thingy that only wastes time ;-)

here it comes what, where and how I made it on SLES11


making gcc-4.9.2

see also: https://gcc.gnu.org/install/prerequisites.html

gmp:

wget http://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.bz2
./configure --prefix=/usr/local/gmp-600

mpfr:

wget http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.bz2
./configure --prefix=/usr/local/mpfr-312 --with-gmp=/usr/local/gmp-600

mpc:

wget https://ftp.gnu.org/gnu/mpc/mpc-1.0.2.tar.gz
./configure --prefix=/usr/local/mpc-102 --with-gmp=/usr/local/gmp-600 --with-mpfr=/usr/local/mpfr-312

gcc:

LD_LIBRARY_PATH=/usr/local/mpc-102/lib:/usr/local/mpfr-312/lib:/usr/local/gmp-600/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH
./configure --prefix=/usr/local/gcc-492  \
            --with-gmp=/usr/local/gmp-600   \
            --with-mpfr=/usr/local/mpfr-312 \
            --with-mpc=/usr/local/mpc-102   \
            --without-isl                   \
            --without-cloog
make

> In your particular case you wrote:
> ----------------------------------------------------------------------
> # diff /usr/local/cups/lib/cups/filter/texttops*
> 22c22
> < PDF2PS=`which pdftops`
> ---
> > PDF2PS=`which pdf2ps`
> 37c37
> < `dirname $0`/texttopdf "$1" "$2" "$3" "$4" "$5" | $PDF2PS - - - - -
> ---
> > `dirname $0`/texttopdf "$1" "$2" "$3" "$4" "$5" | $PDF2PS - -
> ----------------------------------------------------------------------
> 
> On my openSUSE 13.2 system with cups-filters-1.0.62
> /usr/lib/cups/filter/texttops contains this already:
> ----------------------------------------------------------------------
> # grep PDF2PS /usr/lib/cups/filter/texttops
> PDF2PS=`which pdf2ps`
> `dirname $0`/texttopdf "$1" "$2" "$3" "$4" "$5" | $PDF2PS - -
> ----------------------------------------------------------------------
> 
> I assume there is no bug in texttops - instead it seems something
> went wrong when you made cups-filters-1.0.62 on your SLES 11 host.

No, wrong. As you see the shell script texttops is looking for 'pdf2ps'
and not for 'pdftops'; Linux provides this old pdf2ps, while
cups-filters the correct 'pdftops' which has other syntax; both is fixed
with my diff.

	matthias
-- 
Matthias Apitz, guru at unixarea.de, http://www.unixarea.de/ +49-170-4527211
La referencia de la Duma a la anexión de la RDA, en este caso al contrario con la Crimlía sin
referéndum, no solamente tiene gracia sino da en el blanco.- 
Marinos Yannikos @MarinosYannikos en un blog de RTdeutsch.



More information about the cups mailing list