- enable LyX 1.1.6 to show included EPS figures

- tested by Jose
- problem is described in:
   http://sourceforge.net/bugs/?func=detailbug&bug_id=124957&group_id=1897
- major fix for lyx users, therefore bumped port revision

Submitted by:	Jose M. Alcaide <jose@we.lc.ehu.es>
This commit is contained in:
Andreas Klemm 2001-03-20 08:08:20 +00:00
parent 74464f8050
commit e64705ffc5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40082
8 changed files with 192 additions and 4 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= ghostscript
PORTVERSION= 6.50
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= ftp://ftp.fh-koblenz.de/pub/Ghostscript/aladdin/gs650/ \
ftp://ftp.fh-koblenz.de/pub/Ghostscript/aladdin/fonts/ \

View File

@ -0,0 +1,47 @@
Message-ID: <3AB64C01.54380C00@we.lc.ehu.es>
Date: Mon, 19 Mar 2001 19:12:17 +0100
From: "Jose M. Alcaide" <jose@we.lc.ehu.es>
Organization: Universidad del Pais Vasco - Dpto. de Electricidad y Electronica
Subject: new patch for ghostscript 6.50
Hello Andreas,
About a month ago I sent you a patch for GhostScript 6.50. Without that
patch, LyX 1.1.6 cannot show included EPS figures. Now that the LyX
port has been updated this problem will begin to hit many LyX users,
and the ports freeze is coming soon...
The problem is described in:
http://sourceforge.net/bugs/?func=detailbug&bug_id=124957&group_id=1897
I am resending the patch attached to this message. I am using Ghostscript
with this patch applied and everything (including LyX) seems to work OK.
Cheers,
-- JMA
****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ******
** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein **
--------------8E7698D95DE1CB06D5711335
Content-Type: text/plain; charset=us-ascii;
name="patch-src,gdevxini.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-src,gdevxini.c"
--- src/gdevxini.c.orig Tue Sep 19 21:00:23 2000
+++ src/gdevxini.c Tue Feb 20 18:07:09 2001
@@ -654,8 +654,10 @@
}
x_set_buffer(xdev);
/* Clear the destination pixmap to avoid initializing with garbage. */
- xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
+ if (xdev->dest == (Pixmap) 0) {
+ xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
xdev->bpixmap : (Pixmap) xdev->win);
+ }
if (xdev->dest != (Pixmap) 0) {
XSetForeground(xdev->dpy, xdev->gc, xdev->background);
XFillRectangle(xdev->dpy, xdev->dest, xdev->gc,

View File

@ -7,7 +7,7 @@
PORTNAME= ghostscript
PORTVERSION= 6.50
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= ftp://ftp.fh-koblenz.de/pub/Ghostscript/aladdin/gs650/ \
ftp://ftp.fh-koblenz.de/pub/Ghostscript/aladdin/fonts/ \

View File

@ -0,0 +1,47 @@
Message-ID: <3AB64C01.54380C00@we.lc.ehu.es>
Date: Mon, 19 Mar 2001 19:12:17 +0100
From: "Jose M. Alcaide" <jose@we.lc.ehu.es>
Organization: Universidad del Pais Vasco - Dpto. de Electricidad y Electronica
Subject: new patch for ghostscript 6.50
Hello Andreas,
About a month ago I sent you a patch for GhostScript 6.50. Without that
patch, LyX 1.1.6 cannot show included EPS figures. Now that the LyX
port has been updated this problem will begin to hit many LyX users,
and the ports freeze is coming soon...
The problem is described in:
http://sourceforge.net/bugs/?func=detailbug&bug_id=124957&group_id=1897
I am resending the patch attached to this message. I am using Ghostscript
with this patch applied and everything (including LyX) seems to work OK.
Cheers,
-- JMA
****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ******
** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein **
--------------8E7698D95DE1CB06D5711335
Content-Type: text/plain; charset=us-ascii;
name="patch-src,gdevxini.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-src,gdevxini.c"
--- src/gdevxini.c.orig Tue Sep 19 21:00:23 2000
+++ src/gdevxini.c Tue Feb 20 18:07:09 2001
@@ -654,8 +654,10 @@
}
x_set_buffer(xdev);
/* Clear the destination pixmap to avoid initializing with garbage. */
- xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
+ if (xdev->dest == (Pixmap) 0) {
+ xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
xdev->bpixmap : (Pixmap) xdev->win);
+ }
if (xdev->dest != (Pixmap) 0) {
XSetForeground(xdev->dpy, xdev->gc, xdev->background);
XFillRectangle(xdev->dpy, xdev->dest, xdev->gc,

View File

@ -7,7 +7,7 @@
PORTNAME= ghostscript
PORTVERSION= 6.50
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= ftp://ftp.fh-koblenz.de/pub/Ghostscript/aladdin/gs650/ \
ftp://ftp.fh-koblenz.de/pub/Ghostscript/aladdin/fonts/ \

View File

@ -0,0 +1,47 @@
Message-ID: <3AB64C01.54380C00@we.lc.ehu.es>
Date: Mon, 19 Mar 2001 19:12:17 +0100
From: "Jose M. Alcaide" <jose@we.lc.ehu.es>
Organization: Universidad del Pais Vasco - Dpto. de Electricidad y Electronica
Subject: new patch for ghostscript 6.50
Hello Andreas,
About a month ago I sent you a patch for GhostScript 6.50. Without that
patch, LyX 1.1.6 cannot show included EPS figures. Now that the LyX
port has been updated this problem will begin to hit many LyX users,
and the ports freeze is coming soon...
The problem is described in:
http://sourceforge.net/bugs/?func=detailbug&bug_id=124957&group_id=1897
I am resending the patch attached to this message. I am using Ghostscript
with this patch applied and everything (including LyX) seems to work OK.
Cheers,
-- JMA
****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ******
** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein **
--------------8E7698D95DE1CB06D5711335
Content-Type: text/plain; charset=us-ascii;
name="patch-src,gdevxini.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-src,gdevxini.c"
--- src/gdevxini.c.orig Tue Sep 19 21:00:23 2000
+++ src/gdevxini.c Tue Feb 20 18:07:09 2001
@@ -654,8 +654,10 @@
}
x_set_buffer(xdev);
/* Clear the destination pixmap to avoid initializing with garbage. */
- xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
+ if (xdev->dest == (Pixmap) 0) {
+ xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
xdev->bpixmap : (Pixmap) xdev->win);
+ }
if (xdev->dest != (Pixmap) 0) {
XSetForeground(xdev->dpy, xdev->gc, xdev->background);
XFillRectangle(xdev->dpy, xdev->dest, xdev->gc,

View File

@ -7,7 +7,7 @@
PORTNAME= ghostscript
PORTVERSION= 6.50
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= ftp://ftp.fh-koblenz.de/pub/Ghostscript/aladdin/gs650/ \
ftp://ftp.fh-koblenz.de/pub/Ghostscript/aladdin/fonts/ \

View File

@ -0,0 +1,47 @@
Message-ID: <3AB64C01.54380C00@we.lc.ehu.es>
Date: Mon, 19 Mar 2001 19:12:17 +0100
From: "Jose M. Alcaide" <jose@we.lc.ehu.es>
Organization: Universidad del Pais Vasco - Dpto. de Electricidad y Electronica
Subject: new patch for ghostscript 6.50
Hello Andreas,
About a month ago I sent you a patch for GhostScript 6.50. Without that
patch, LyX 1.1.6 cannot show included EPS figures. Now that the LyX
port has been updated this problem will begin to hit many LyX users,
and the ports freeze is coming soon...
The problem is described in:
http://sourceforge.net/bugs/?func=detailbug&bug_id=124957&group_id=1897
I am resending the patch attached to this message. I am using Ghostscript
with this patch applied and everything (including LyX) seems to work OK.
Cheers,
-- JMA
****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ******
** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein **
--------------8E7698D95DE1CB06D5711335
Content-Type: text/plain; charset=us-ascii;
name="patch-src,gdevxini.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-src,gdevxini.c"
--- src/gdevxini.c.orig Tue Sep 19 21:00:23 2000
+++ src/gdevxini.c Tue Feb 20 18:07:09 2001
@@ -654,8 +654,10 @@
}
x_set_buffer(xdev);
/* Clear the destination pixmap to avoid initializing with garbage. */
- xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
+ if (xdev->dest == (Pixmap) 0) {
+ xdev->dest = (xdev->bpixmap != (Pixmap) 0 ?
xdev->bpixmap : (Pixmap) xdev->win);
+ }
if (xdev->dest != (Pixmap) 0) {
XSetForeground(xdev->dpy, xdev->gc, xdev->background);
XFillRectangle(xdev->dpy, xdev->dest, xdev->gc,