diff --git a/ghostscript-noopt.patch b/ghostscript-noopt.patch new file mode 100644 index 0000000..3a93580 --- /dev/null +++ b/ghostscript-noopt.patch @@ -0,0 +1,11 @@ +--- ghostscript-7.07/src/int.mak.noopt 2005-03-10 17:22:53.000000000 +0000 ++++ ghostscript-7.07/src/int.mak 2005-03-10 17:24:10.000000000 +0000 +@@ -105,7 +105,7 @@ + $(PSOBJ)igcref.$(OBJ) : $(PSSRC)igcref.c $(GH) $(memory__h)\ + $(gsexit_h) $(gsstruct_h)\ + $(iastate_h) $(idebug_h) $(igc_h) $(iname_h) $(ipacked_h) $(store_h) +- $(PSCC) $(PSO_)igcref.$(OBJ) $(C_) $(PSSRC)igcref.c ++ $(PSCC) -O0 $(PSO_)igcref.$(OBJ) $(C_) $(PSSRC)igcref.c + + $(PSOBJ)igcstr.$(OBJ) : $(PSSRC)igcstr.c $(GH) $(memory__h)\ + $(gsmdebug_h) $(gsstruct_h) $(iastate_h) $(igcstr_h) diff --git a/ghostscript.spec b/ghostscript.spec index 1ee26b8..83086d6 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -18,6 +18,7 @@ Patch3: ghostscript-scripts.patch Patch4: ghostscript-ps2epsi.patch Patch5: ghostscript-badc.patch Patch6: ghostscript-pagesize.patch +Patch7: ghostscript-noopt.patch Requires: zlib, libpng, glib2 Requires: urw-fonts >= 1.1, ghostscript-fonts @@ -85,6 +86,9 @@ A GTK-enabled version of Ghostscript, called 'gsx'. # Prevent pdf2ps generating "null setpagesize" (bug #126446). %patch6 -p1 -b .pagesize +# Build igcref.c with -O0 to work around bug #150771. +%patch7 -p1 -b .noopt + # Convert manual pages to UTF-8 from8859_1() { iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_" @@ -213,6 +217,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Mon Jun 6 2005 Tim Waugh +- Build igcref.c with -O0 to work around bug #150771. - Renumber patches. * Fri Jun 3 2005 Tim Waugh 8.15-0.rc3.1