diff --git a/pnm2ppa-gcc10.patch b/pnm2ppa-gcc10.patch new file mode 100644 index 0000000000000000000000000000000000000000..223f310287f6e9871cabae1817a2c18aefb83625 --- /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 *); diff --git a/pnm2ppa.spec b/pnm2ppa.spec index 5c11104aa531e94bc8155b7f17e512acbcc76dcd..df7429d3e27e94f7ac5cd7dab0c556ccfaa3d774 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