From 07daa46331b3d4a2003e03bd2bbaa42017e3db54 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 9 Sep 2019 12:17:08 +0200 Subject: [PATCH] Fix building in C99 mode --- ytalk-c99.patch | 16 ++++++++++++++++ ytalk.spec | 8 ++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 ytalk-c99.patch diff --git a/ytalk-c99.patch b/ytalk-c99.patch new file mode 100644 index 0000000..1e7c1f5 --- /dev/null +++ b/ytalk-c99.patch @@ -0,0 +1,16 @@ +configure was generated by a version of autoconf which is incompatible +with C99 compilers. It cannot be regenerated with current autoconf +versions, so only the generated script is patched. + +diff --git a/configure b/configure +index ee6271691bf7d629..96b9f2b4468bbbc1 100755 +--- a/configure ++++ b/configure +@@ -3359,6 +3359,7 @@ cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + #include ++#include + #if ((' ' & 0x0FF) == 0x020) + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) diff --git a/ytalk.spec b/ytalk.spec index 642f3b1..ee80a52 100644 --- a/ytalk.spec +++ b/ytalk.spec @@ -1,11 +1,12 @@ Summary: A chat program for multiple users Name: ytalk Version: 3.3.0 -Release: 33%{?dist} +Release: 34%{?dist} License: GPLv2+ URL: http://www.impul.se/ytalk/ Source: http://www.impul.se/ytalk/%{name}-%{version}.tar.bz2 Source1: ytalkrc +Patch1: ytalk-c99.patch BuildRequires: gcc BuildRequires: ncurses-devel @@ -17,7 +18,7 @@ the same talk daemon(s), but YTalk allows for multiple connections to other users as well as an easy-to-use menu of commands. %prep -%setup -q +%autosetup %build %configure @@ -33,6 +34,9 @@ make install DESTDIR=%{buildroot} %config(noreplace) /etc/ytalkrc %changelog +* Mon Sep 9 2019 Florian Weimer - 3.3.0-34 +- Fix building in C99 mode + * Sat Jul 27 2019 Fedora Release Engineering - 3.3.0-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild