From c3d30b59a6e285efaf56402bb64f9c75a697f368 Mon Sep 17 00:00:00 2001 From: zhangzhangxin Date: Fri, 7 Jul 2023 16:22:42 +0800 Subject: [PATCH] sync:state what lib is printing the error Signed-off-by: zhangzhangxin --- ...state-what-lib-is-printing-the-error.patch | 41 +++++++++++++++++++ libspectre.spec | 7 +++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 0001-sync-state-what-lib-is-printing-the-error.patch diff --git a/0001-sync-state-what-lib-is-printing-the-error.patch b/0001-sync-state-what-lib-is-printing-the-error.patch new file mode 100644 index 0000000..3a16ca1 --- /dev/null +++ b/0001-sync-state-what-lib-is-printing-the-error.patch @@ -0,0 +1,41 @@ +From 10602b62f6dd240939f6717316c322a978709369 Mon Sep 17 00:00:00 2001 +From: zhangzhangxin +Date: Fri, 7 Jul 2023 16:04:41 +0800 +Subject: [PATCH] sync:state what lib is printing the error + +Signed-off-by: zhangzhangxin +--- + 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.40.0.windows.1 + diff --git a/libspectre.spec b/libspectre.spec index 070a1b8..b1102f0 100644 --- a/libspectre.spec +++ b/libspectre.spec @@ -1,6 +1,6 @@ Name: libspectre Version: 0.2.8 -Release: 8 +Release: 9 Summary: A small library for rendering Postscript documents License: GPLv2+ URL: http://libspectre.freedesktop.org @@ -8,6 +8,8 @@ Source0: http://libspectre.freedesktop.org/releases/%{name}-%{version}.ta BuildRequires: libgs-devel +Patch0: 0001-sync-state-what-lib-is-printing-the-error + %description Libspectre is a small library for rendering Postscript documents. It provides a convenient easy to use API for handling and rendering @@ -49,5 +51,8 @@ developing applications that use libspectre. %{_libdir}/pkgconfig/libspectre.pc %changelog +* Fri Jul 7 2023 zhangxin - 0.2.8-9 +- state what lib is printing the error + * Wed Nov 27 2019 Jiangping Hu - 0.2.8-8 - Package init -- Gitee