Port to C99 (#2152430)
Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
This commit is contained in:
parent
0d04830bfc
commit
57389ea6d2
14
c2esp-c99.patch
Normal file
14
c2esp-c99.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Include <strings.h> for the strncasecmp function.
|
||||||
|
|
||||||
|
diff --git a/src/command2esp.c b/src/command2esp.c
|
||||||
|
index 529342c99c5c5f52..c1acdb16a1ec2f1c 100644
|
||||||
|
--- a/src/command2esp.c
|
||||||
|
+++ b/src/command2esp.c
|
||||||
|
@@ -44,6 +44,7 @@ Maintenance=003?
|
||||||
|
#include <cups/cups.h>
|
||||||
|
#include <cups/sidechannel.h> //FlushBackChannel, and the side channel functions and constants
|
||||||
|
#include "string.h"
|
||||||
|
+#include <strings.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <fcntl.h> //files
|
||||||
|
#include <time.h> //time functions used for debugging
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: c2esp
|
Name: c2esp
|
||||||
Version: 2.7
|
Version: 2.7
|
||||||
Release: 25%{?dist}
|
Release: 26%{?dist}
|
||||||
Summary: CUPS driver for Kodak AiO printers
|
Summary: CUPS driver for Kodak AiO printers
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -11,6 +11,7 @@ Source0: http://downloads.sourceforge.net/cupsdriverkodak/c2esp-%{version
|
|||||||
|
|
||||||
Patch01: c2esp-ftbfs-gcc7.patch
|
Patch01: c2esp-ftbfs-gcc7.patch
|
||||||
Patch02: c2esp-gcc10.patch
|
Patch02: c2esp-gcc10.patch
|
||||||
|
Patch3: c2esp-c99.patch
|
||||||
|
|
||||||
# _cups_serverbin macro
|
# _cups_serverbin macro
|
||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
@ -39,6 +40,7 @@ CUPS filters and drivers for Kodak ESP and Hero all in one printers.
|
|||||||
%setup -q -n c2esp-%{version_no_dot}
|
%setup -q -n c2esp-%{version_no_dot}
|
||||||
%patch01 -p1 -b .ftbfs-gcc7
|
%patch01 -p1 -b .ftbfs-gcc7
|
||||||
%patch02 -p1 -b .gcc10
|
%patch02 -p1 -b .gcc10
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@ -57,6 +59,9 @@ make -C src/ install DESTDIR=%{buildroot}
|
|||||||
%{_datadir}/cups/drv/c2esp
|
%{_datadir}/cups/drv/c2esp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Dec 11 2022 Florian Weimer <fweimer@redhat.com> - 2.7-26
|
||||||
|
- Port to C99 (#2152430)
|
||||||
|
|
||||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-25
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-25
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user