Hello community,

here is the log from the commit of package libspectre for openSUSE:Factory 
checked in at 2016-08-26 23:15:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libspectre (Old)
 and      /work/SRC/openSUSE:Factory/.libspectre.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libspectre"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libspectre/libspectre.changes    2016-07-14 
09:41:34.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libspectre.new/libspectre.changes       
2016-08-26 23:15:25.000000000 +0200
@@ -1,0 +2,8 @@
+Tue Aug 23 14:39:44 UTC 2016 - [email protected]
+
+- Add fix-bsc975503.diff to fix handling of PostScript files with
+  embedded EPS files. The PS file then contains two "%%EOF" DSC
+  comments and the first one stopped the parsing of the file as if
+  the real EOF was reached (bsc#975503, fdo#97091).
+
+-------------------------------------------------------------------

New:
----
  fix-bsc975503.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libspectre.spec ++++++
--- /var/tmp/diff_new_pack.pP7RPt/_old  2016-08-26 23:15:26.000000000 +0200
+++ /var/tmp/diff_new_pack.pP7RPt/_new  2016-08-26 23:15:26.000000000 +0200
@@ -25,6 +25,8 @@
 License:        GPL-2.0+
 Group:          Development/Libraries/C and C++
 Source0:        
http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix-bsc975503.diff bsc#975503 fdo#97091 -- Parse ps files 
ignoring EOF comments which would stop parsing too soon in documents with 
embedded EPS files.
+Patch0:         fix-bsc975503.diff
 %define debug_package_requires libspectre1 = %{version}-%{release}
 BuildRequires:  ghostscript-devel
 BuildRequires:  ghostscript-library
@@ -58,6 +60,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure --disable-static --enable-shared

++++++ fix-bsc975503.diff ++++++
Index: libspectre-0.2.7/libspectre/spectre-document.c
===================================================================
--- libspectre-0.2.7.orig/libspectre/spectre-document.c
+++ libspectre-0.2.7/libspectre/spectre-document.c
@@ -67,7 +67,7 @@ spectre_document_load (SpectreDocument *
                document->doc = NULL;
        }
        
-       document->doc = psscan (filename, SCANSTYLE_NORMAL);
+       document->doc = psscan (filename, SCANSTYLE_IGNORE_EOF);
        if (!document->doc) {
                document->status = SPECTRE_STATUS_LOAD_ERROR;
                return;

Reply via email to