# HG changeset patch # User sonam gupta - Sun Microsystems - Bangalore India # Date 1311917942 25200 # Node ID e5f5d16a151f1424d4b4eb6f73700dd133fd1f7f # Parent 158daa600b9e320358dbe569b1e93bdd776d4e1f 7068679 Ghostscript should use system shared libpng and zlib 6886857 statically linked libjpeg in libgs.so causes crash in evince diff -r 158daa600b9e -r e5f5d16a151f components/ghostscript/patches/6886857,7068679.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/ghostscript/patches/6886857,7068679.patch Thu Jul 28 22:39:02 2011 -0700 @@ -0,0 +1,69 @@ +--- ghostscript-9.00/base/ugcclib.mak.orig Tue Jul 26 01:47:52 2011 ++++ ghostscript-9.00/base/ugcclib.mak Tue Jul 26 01:55:16 2011 +@@ -42,7 +42,7 @@ + PGRELDIR=. + + JSRCDIR=jpeg +-SHARE_JPEG=0 ++SHARE_JPEG=1 + JPEG_NAME=jpeg + + PNGSRCDIR=libpng +--- ghostscript-9.00/base/unix-gcc.mak.orig Tue Jul 26 01:48:14 2011 ++++ ghostscript-9.00/base/unix-gcc.mak Tue Jul 26 01:56:23 2011 +@@ -138,7 +138,7 @@ + # some older JPEG streams that violate the standard. If the JPEG + # library built from local sources, the patch will be applied. + +-SHARE_JPEG=0 ++SHARE_JPEG=1 + JPEG_NAME=jpeg + + # Define the directory where the PNG library sources are stored, +@@ -152,7 +152,7 @@ + # what its name is. + # See gs.mak and Make.htm for more information. + +-SHARE_LIBPNG=0 ++SHARE_LIBPNG=1 + LIBPNG_NAME=png + + # Define whether to use a shared version of libtiff and where +@@ -173,7 +173,7 @@ + # what its name is (usually libz, but sometimes libgz). + # See gs.mak and Make.htm for more information. + +-SHARE_ZLIB=0 ++SHARE_ZLIB=1 + #ZLIB_NAME=gz + ZLIB_NAME=z + +--- ghostscript-9.00/base/unixansi.mak.orig Tue Jul 26 01:48:19 2011 ++++ ghostscript-9.00/base/unixansi.mak Tue Jul 26 01:57:00 2011 +@@ -123,7 +123,7 @@ + # some older JPEG streams that violate the standard. If the JPEG + # library built from local sources, the patch will be applied. + +-SHARE_JPEG=0 ++SHARE_JPEG=1 + JPEG_NAME=jpeg + + # Define the directory where the PNG library sources are stored, +@@ -137,7 +137,7 @@ + # what its name is. + # See gs.mak and Make.htm for more information. + +-SHARE_LIBPNG=0 ++SHARE_LIBPNG=1 + LIBPNG_NAME=png + + # Define whether to use a shared version of libtiff and where +@@ -158,7 +158,7 @@ + # what its name is (usually libz, but sometimes libgz). + # See gs.mak and Make.htm for more information. + +-SHARE_ZLIB=0 ++SHARE_ZLIB=1 + #ZLIB_NAME=gz + ZLIB_NAME=z +