diff --git a/xfig.3.2.5b-preview.dif b/xfig.3.2.5b-preview.dif new file mode 100644 index 0000000..fb3aaa7 --- /dev/null +++ b/xfig.3.2.5b-preview.dif @@ -0,0 +1,13 @@ +--- f_readeps.c ++++ f_readeps.c 2010-08-10 10:50:57.699132894 +0000 +@@ -318,8 +318,8 @@ bitmap_from_gs(file, filetype, pic, urx, + gscom[0] = '\0'; + } + sprintf(&gscom[strlen(gscom)], +- "%s -r72x72 -dSAFER -sDEVICE=%s -g%dx%d -sOutputFile=%s -q - > %s 2>&1", +- appres.ghostscript, driver, wid, ht, pixnam, errnam); ++ "%s -r72x72 -dNOSAFER -sDEVICE=%s -g%dx%d -sOutputFile=%s -c '<> setuserparams .locksafe' -q - > %s 2>&1", ++ appres.ghostscript, driver, wid, ht, pixnam, psnam, errnam); + if (appres.DEBUG) + fprintf(stderr,"calling: %s\n",gscom); + if ((gsfile = popen(gscom, "w")) == 0) { diff --git a/xfig.changes b/xfig.changes index 54f8ce7..572d82b 100644 --- a/xfig.changes +++ b/xfig.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 10 13:00:25 CEST 2010 - werner@suse.de + +- Make eps/ps import work again. This trouble was caused by the + security fix for ghostscript of bug bnc#608071 + ------------------------------------------------------------------- Tue Apr 20 17:24:01 CEST 2010 - werner@suse.de diff --git a/xfig.spec b/xfig.spec index 8af967a..85b8d0d 100644 --- a/xfig.spec +++ b/xfig.spec @@ -48,6 +48,7 @@ Patch6: xfig.3.2.5b-locale.dif Patch7: xfig.3.2.5b-fixes.dif Patch8: xfig.3.2.5b-pspdftex.dif Patch9: xfig.3.2.5b-libpng14.dif +Patch10: xfig.3.2.5b-preview.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)} %if "%_exec_prefix" == "/usr/X11R6" @@ -94,6 +95,7 @@ find -type f | xargs -r chmod a-x,go-w %patch7 -p0 -b .fixes %patch8 -p0 -b .pspdftex %patch9 -p0 -b .libpng14 +%patch10 -p0 -b .preview cp %{S:1} . %build