From c33f5678c9eecde1a9dbb52c805bb60a52c71ca3 Mon Sep 17 00:00:00 2001 From: buc Date: Thu, 31 May 2018 22:07:41 +0300 Subject: [PATCH] Fix build with g++ >= 8.0 --- newscache.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/newscache.spec b/newscache.spec index 727266d..9396022 100644 --- a/newscache.spec +++ b/newscache.spec @@ -4,7 +4,7 @@ Name: newscache Summary: Free cache server for USENET News Version: 1.2 -Release: 0.29.rc6%{?dist} +Release: 0.30.rc6%{?dist} Group: System Environment/Daemons License: GPLv2+ URL: http://www.linuxhacker.at/newscache/ @@ -40,6 +40,9 @@ cp etc/newscache.conf-dist newscache.conf %patch1 -p0 %patch2 -p1 +# to satisfy g++ >= 8.0 +sed -i 's/^main/int main/' configure.in + # place socket++ source at least 2 level deeper, # to avoid autotools inheritance with the newscache sources... mkdir -p too/deep @@ -152,6 +155,9 @@ exit 0 %changelog +* Thu May 31 2018 Dmitry Butskoy - 1.2-0.30.rc6 +- Fix compiling with g++ >= 8.0 (#1583363) + * Thu Feb 08 2018 Fedora Release Engineering - 1.2-0.29.rc6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild