diff --git a/c2esp-ftbfs-gcc7.patch b/c2esp-ftbfs-gcc7.patch new file mode 100644 index 0000000..8b65eaa --- /dev/null +++ b/c2esp-ftbfs-gcc7.patch @@ -0,0 +1,23 @@ +diff -up c2esp-27/src/c2espC.c.ftbfs-gcc7 c2esp-27/src/c2espC.c +diff -up c2esp-27/src/c2espcommon.c.ftbfs-gcc7 c2esp-27/src/c2espcommon.c +--- c2esp-27/src/c2espcommon.c.ftbfs-gcc7 2017-03-03 14:10:28.018395128 +0100 ++++ c2esp-27/src/c2espcommon.c 2017-03-03 14:19:26.967383931 +0100 +@@ -24,6 +24,7 @@ + #include //files + #include //for chmod + #include //time functions used for debugging ++#include + + #if HAVE_CUPSFILTERS_DRIVER_H == 1 + #include //has the dither functions +diff -up c2esp-27/src/c2espcommon.h.ftbfs-gcc7 c2esp-27/src/c2espcommon.h +--- c2esp-27/src/c2espcommon.h.ftbfs-gcc7 2017-03-03 14:25:54.186413550 +0100 ++++ c2esp-27/src/c2espcommon.h 2017-03-03 14:26:53.105961575 +0100 +@@ -21,6 +21,7 @@ + #include //FlushBackChannel, and the side channel functions and constants + #include //files + #include //time functions used for debugging ++#include //library for stderr, stdout, stdin - because of gcc7, it needed to be included + + /* + * Constants... diff --git a/c2esp.spec b/c2esp.spec index 257d50f..d189bf2 100644 --- a/c2esp.spec +++ b/c2esp.spec @@ -2,13 +2,15 @@ Name: c2esp Version: 2.7 -Release: 9%{?dist} +Release: 10%{?dist} Summary: CUPS driver for Kodak AiO printers License: GPLv2+ URL: http://sourceforge.net/projects/cupsdriverkodak/ Source0: http://downloads.sourceforge.net/cupsdriverkodak/c2esp-%{version_no_dot}.tar.gz +Patch01: c2esp-ftbfs-gcc7.patch + # _cups_serverbin macro BuildRequires: cups-devel @@ -29,6 +31,7 @@ CUPS filters and drivers for Kodak ESP and Hero all in one printers. %prep %setup -q -n c2esp-%{version_no_dot} +%patch01 -p1 -b .ftbfs-gcc7 %build %configure @@ -47,6 +50,9 @@ make -C src/ install DESTDIR=%{buildroot} %{_datadir}/cups/drv/c2esp %changelog +* Fri Mar 03 2017 Zdenek Dohnal - 2.7-10 +- 1423287 - c2esp: FTBFS in rawhide + * Fri Feb 10 2017 Fedora Release Engineering - 2.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild