bug-gv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gv attempts to print with a non-existent DEVICE=pswrite


From: Orion Poplawski
Subject: gv attempts to print with a non-existent DEVICE=pswrite
Date: Thu, 31 Oct 2019 15:39:25 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0

https://bugzilla.redhat.com/show_bug.cgi?id=1536211

In /usr/share/gv/gv_system.ad one can find this line:

GV.gsCmdConvPDF:        gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pswrite 
-sOutputFile=%s
-f %s -c save pop quit

The problem is that gv attempts to use that when attempting to print a PDF
file and fails as 'pswrite' does not exist in a present
ghostscript-9.22-3.fc27. There is ps2write listed in an output of 'gs -h' and
that will do nicely.

Not that one often prints PDF from gv but still ... :-)

Version-Release number of selected component (if applicable):
gv-3.7.4-14.fc27



So, is this the proper fix?

--- gv-3.7.4/src/Makefile.am.orig       2012-03-29 10:03:49.000000000 -0600
+++ gv-3.7.4/src/Makefile.am    2019-10-31 15:38:01.334888441 -0600
@@ -198,7 +198,7 @@
        @echo ""                                                        >>
gv_intern_res_unix.dat
        @echo "GV.gsInterpreter:        gs" >> gv_intern_res_unix.dat
        @echo "GV.gsCmdScanPDF: gs -dNODISPLAY -dQUIET -sPDFname=%s
-sDSCname=%s %s pdf2dsc.ps -c quit" >> gv_intern_res_unix.dat
-       @echo "GV.gsCmdConvPDF: gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pswrite
-sOutputFile=%s -f %s -c save pop quit" >> gv_intern_res_unix.dat
+       @echo "GV.gsCmdConvPDF: gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=ps2write
-sOutputFile=%s -f %s -c save pop quit" >> gv_intern_res_unix.dat
        @echo "GV.gsX11Device:          -sDEVICE=x11" >> gv_intern_res_unix.dat
        @echo "GV.gsX11AlphaDevice:     -sDEVICE=x11 -dTextAlphaBits=4
-dGraphicsAlphaBits=2 -dMaxBitmap=10000000 -dNOPLATFONTS" >>
gv_intern_res_unix.dat
        @echo "GV.gsSafeDir:            True" >> gv_intern_res_unix.dat


BTW - is there anyone else out there still interested in gv?  Perhaps we
should make a repository on github?


Thanks.


-- 
Orion Poplawski
Manager of NWRA Technical Systems          720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       address@hidden
Boulder, CO 80301                 https://www.nwra.com/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]