From ad32d186375cacdff6af3e8a3dd838fc5d5f05ba Mon Sep 17 00:00:00 2001 From: Jan ONDREJ (SAL) Date: Jun 17 2015 06:58:10 +0000 Subject: GCC5 compatibility patch v2. --- diff --git a/bandwidthd.spec b/bandwidthd.spec index 95a8cd0..2fc7d06 100644 --- a/bandwidthd.spec +++ b/bandwidthd.spec @@ -15,6 +15,7 @@ Source2: %{name}.service Patch0: bandwidthd-destdir.patch Patch1: bandwidthd-pgsql.patch Patch2: http://v3.sk/~lkundrak/0001-Gracefuly-exit-upon-pcap_findalldevs-error.patch +Patch3: bandwidthd-gcc5.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf, gd-devel, libpng-devel %{?!_without_pgsql:BuildRequires: postgresql-devel} @@ -56,7 +57,7 @@ is graphed on a Celeron 450 every 10 minutes. %patch0 -p1 -b .dest %patch1 -p0 -b .pgsql %patch2 -p1 -b .nodevs - +%patch3 -p1 -b .gcc5 %build cp -af /usr/lib/rpm/config.{sub,guess} . @@ -66,7 +67,7 @@ autoconf --sysconfdir=%{_sysconfdir} \ --bindir=%{_bindir} \ --datadir=%{_var}/www -CFLAGS="%{optflags} -fgnu89-inline" make %{?_smp_mflags} +make %{?_smp_mflags} %install @@ -119,7 +120,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Wed Jun 17 2015 Ján ONDREJ (SAL) - 2.0.1-29 -- Added -fgnu89-inline cflag for gcc5. +- GCC5 inline compatibility. * Wed Jun 17 2015 Fedora Release Engineering - 2.0.1-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild