lilypond-devel
[Top][All Lists]
Advanced

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

Re: pending LilyPond removal from debian release ?


From: Michael Welsh Duggan
Subject: Re: pending LilyPond removal from debian release ?
Date: Tue, 22 Jun 2004 17:36:32 -0400
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Anthony Fok <address@hidden> writes:

> On Mon, Jun 21, 2004 at 10:10:32PM +0200, Jan Nieuwenhuizen wrote:
>> What about the removal report and the gs bug, I assume that this
>> 
>> >   * gs-gpl 8.01 (and gs-afpl 8.14) dies when building LilyPond docs.
>> >     (Known -sDEVICE=bbox bug in gs 8.01 and newer, see gs-gpl Bug#250290.)
>> >     Added Build-Conflict-Indep: gs-gpl (>= 8.01) | gs-afpl (Closes: 
>> > Bug#250622)
>> 
>> takes care of that?
>
> Yes, I think so.  I tried out gs 7.07 (gs-esp), gs-gpl 8.01 and gs-afpl
> 8.14.  It turns out that only 7.07 still works.  The newer versions fail
> because -sDEVICE=bbox causes gs just segfaults.

The following seems to make things work in later versions of gs
(both).  (BTW, the gs-afpl people seem to nkow about this bug, so it
may be fixed in a later version.)

Index: lilylib.py
===================================================================
RCS file: /cvsroot/lilypond/lilypond/python/lilylib.py,v
retrieving revision 1.42
diff -u -p -u -r1.42 lilylib.py
--- lilylib.py  20 Jun 2004 20:39:05 -0000      1.42
+++ lilylib.py  22 Jun 2004 21:37:32 -0000
@@ -491,7 +491,7 @@ def make_ps_images (ps_name, resolution 
                if y == 0:
                        y = 1
 
-               cmd = r'''gs -g%dx%d -sDEVICE=pnggray  -dTextAlphaBits=4 
-dGraphicsAlphaBits=4  -q -sOutputFile=%s -r%d -dNOPAUSE %s %s -c quit ''' % \
+               cmd = r'''gs -g%dx%d -sDEVICE=pnggray  -dNOCACHE 
-dTextAlphaBits=4 -dGraphicsAlphaBits=4  -q -sOutputFile=%s -r%d -dNOPAUSE %s 
%s -c quit ''' % \
                      (x, y, output_file, resolution, trans_ps, ps_name)
 
                rms = glob.glob (base + '-page*.png')
@@ -503,7 +503,7 @@ def make_ps_images (ps_name, resolution 
                if os.path.isfile (rmfile):
                        os.unlink (rmfile)
 
-               cmd = r'''gs -s  -sDEVICE=pnggray  -dTextAlphaBits=4 
-dGraphicsAlphaBits=4 -q -sOutputFile=%s -dNOPAUSE -r%d %s -c quit''' % 
(output_file,
+               cmd = r'''gs -s  -sDEVICE=pnggray  -dNOCACHE -dTextAlphaBits=4 
-dGraphicsAlphaBits=4 -q -sOutputFile=%s -dNOPAUSE -r%d %s -c quit''' % 
(output_file,
                                                                                
     resolution, ps_name)
 
        status = system (cmd)

-- 
Michael Welsh Duggan
(address@hidden)




reply via email to

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