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 *); diff --git a/pnm2ppa.spec b/pnm2ppa.spec index 68788fb..db58917 100644 --- a/pnm2ppa.spec +++ b/pnm2ppa.spec @@ -2,7 +2,7 @@ Name: pnm2ppa Summary: Drivers for printing to HP PPA printers Epoch: 1 Version: 1.04 -Release: 44%{?dist} +Release: 45%{?dist} URL: http://sourceforge.net/projects/pnm2ppa Source: http://download.sourceforge.net/pnm2ppa/pnm2ppa-%{version}.tar.gz # Following sourcelink is dead currently. @@ -15,6 +15,8 @@ Patch3: pnm2ppa-redhat.patch Patch4: pnm2ppa-coverity-return-local.patch # add ldflags to Makefile Patch5: pnm2ppa-ldflags.patch +# FTBFS with GCC 10 +Patch6: pnm2ppa-gcc10.patch License: GPLv2+ # gcc is no longer in buildroot by default @@ -37,6 +39,7 @@ Install pnm2ppa if you need to print to a PPA printer. %patch3 -p1 -b .rh %patch4 -p1 -b .coverity-return-local %patch5 -p1 -b .ldflags +%patch6 -p1 -b .gcc10 for file in docs/en/LICENSE pbm2ppa-0.8.6/LICENSE; do sed "s|\r||g" $file > $file.new && \ @@ -93,6 +96,9 @@ done %config(noreplace) %{_sysconfdir}/pbm2ppa.conf %changelog +* Mon Feb 03 2020 Zdenek Dohnal - 1:1.04-45 +- FTBFS with GCC 10 + * Thu Jan 30 2020 Fedora Release Engineering - 1:1.04-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild