diff --git a/.gitignore b/.gitignore index cee59aa..fcd8876 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/libspectre-0.2.7.tar.gz +SOURCES/libspectre-0.2.8.tar.gz diff --git a/.libspectre.metadata b/.libspectre.metadata index 833f2a4..fb77548 100644 --- a/.libspectre.metadata +++ b/.libspectre.metadata @@ -1 +1 @@ -a7efd97b82b84ff1bb7a0d88c7e35ad10cc84ea8 SOURCES/libspectre-0.2.7.tar.gz +322499a5ba8874bc0cc20426b0e429024bf1a573 SOURCES/libspectre-0.2.8.tar.gz diff --git a/SOURCES/0001-state-what-lib-is-printing-the-error.patch b/SOURCES/0001-state-what-lib-is-printing-the-error.patch new file mode 100644 index 0000000..14f3dae --- /dev/null +++ b/SOURCES/0001-state-what-lib-is-printing-the-error.patch @@ -0,0 +1,48 @@ +From f88d2c259242936bbc3c74bf43107626c0f5ad61 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= +Date: Fri, 13 Jan 2017 09:56:14 +0000 +Subject: [PATCH] state what lib is printing the error + +and where it originally came from + +so its clear where + +"undefined -21" came from in cases like +https://bugzilla.gnome.org/show_bug.cgi?id=678500 + +https://bugs.freedesktop.org/show_bug.cgi?id=99395 +--- + libspectre/spectre-gs.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/libspectre/spectre-gs.c b/libspectre/spectre-gs.c +index b701942..414175a 100644 +--- a/libspectre/spectre-gs.c ++++ b/libspectre/spectre-gs.c +@@ -55,12 +55,12 @@ critic_error_code (int code) + if (code <= -100) { + switch (code) { + case e_Fatal: +- fprintf (stderr, "fatal internal error %d", code); ++ fprintf (stderr, "(libspectre) ghostscript reports: fatal internal error %d", code); + return TRUE; + break; + + case e_ExecStackUnderflow: +- fprintf (stderr, "stack overflow %d", code); ++ fprintf (stderr, "(libspectre) ghostscript reports: stack overflow %d", code); + return TRUE; + break; + +@@ -73,7 +73,7 @@ critic_error_code (int code) + int x = (-1) * code; + + if (x < (int) (sizeof (errors) / sizeof (const char*))) { +- fprintf (stderr, "%s %d\n", errors[x], code); ++ fprintf (stderr, "(libspectre) ghostscript reports: %s %d\n", errors[x], code); + } + return TRUE; + } +-- +2.9.3 + diff --git a/SPECS/libspectre.spec b/SPECS/libspectre.spec index 3b090a6..b6f71ea 100644 --- a/SPECS/libspectre.spec +++ b/SPECS/libspectre.spec @@ -1,6 +1,6 @@ Name: libspectre -Version: 0.2.7 -Release: 4%{?dist} +Version: 0.2.8 +Release: 1%{?dist} Summary: A library for rendering PostScript(TM) documents Group: System Environment/Libraries @@ -8,6 +8,8 @@ License: GPLv2+ URL: http://libspectre.freedesktop.org Source0: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz +Patch0: 0001-state-what-lib-is-printing-the-error.patch + BuildRequires: ghostscript-devel >= 8.61 %description @@ -30,6 +32,7 @@ developing applications that use %{name}. %prep %setup -q +%patch0 -p1 -b .error-message %build @@ -65,6 +68,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Feb 9 2017 Marek Kasik - 0.2.8-1 +- Update to 0.2.8 +- Resolves: #1384956 + * Fri Jan 24 2014 Daniel Mach - 0.2.7-4 - Mass rebuild 2014-01-24