From 1ddab29f5a6fada8e03ab43740df891df905c5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8B=87?= Date: Fri, 30 Jul 2021 10:18:16 +0000 Subject: [PATCH 1/2] add patch --- pnm2ppa-gcc10.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pnm2ppa-gcc10.patch diff --git a/pnm2ppa-gcc10.patch b/pnm2ppa-gcc10.patch new file mode 100644 index 0000000..223f310 --- /dev/null +++ b/pnm2ppa-gcc10.patch @@ -0,0 +1,25 @@ +diff --git a/syslog.c b/syslog.c +index e70f12c..af067e2 100644 +--- a/syslog.c ++++ b/syslog.c +@@ -27,6 +27,7 @@ + #include "global.h" + + ++char syslog_message[128]; + + /* + For some reason, BeOS doesn't seem to implement syslog(), even though it is +diff --git a/syslog.h b/syslog.h +index 7d0e436..5c1accd 100644 +--- a/syslog.h ++++ b/syslog.h +@@ -39,7 +39,7 @@ + #include + #endif + +-char syslog_message[128]; ++extern char syslog_message[128]; + extern size_t message_size ; + + void wrap_syslog( int, char *, char *); -- Gitee From 7aea4e497940ea514bb1bb7cdc4e52e69ffc63ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8B=87?= Date: Fri, 30 Jul 2021 10:18:46 +0000 Subject: [PATCH 2/2] update pnm2ppa.spec --- pnm2ppa.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pnm2ppa.spec b/pnm2ppa.spec index 5c11104..df7429d 100644 --- a/pnm2ppa.spec +++ b/pnm2ppa.spec @@ -1,6 +1,6 @@ Name: pnm2ppa Version: 1.04 -Release: 42 +Release: 43 Summary: HP PPA GhostScript filter License: GPLv2+ and GPLv2 URL: https://sourceforge.net/projects/pnm2ppa @@ -9,6 +9,7 @@ Source1: http://www.httptech.com/ppa/files/ppa-0.8.6.tar.gz Patch1: pbm2ppa-20000205.diff Patch2: pnm2ppa-coverity-return-local.patch +Patch3: pnm2ppa-gcc10.patch Patch9000: bugfix-debranding.patch @@ -66,6 +67,9 @@ chmod 644 docs/en/LICENSE %{_mandir}/man1/* %changelog +* Jul Fri 30 2021 wangyong - 1.04-43 +- Patch for GCC-10 + * Mon Feb 17 2020 wanjiankang - 1.04-42 - Package init -- Gitee