From f4cd8eb4dc117073de6049f25dc5fb1e050303c7 Mon Sep 17 00:00:00 2001 From: Miloš Jakubíček Date: Apr 19 2009 00:23:26 +0000 Subject: - Fix FTBFS: added cone-gcc44.patch --- diff --git a/cone-gcc44.patch b/cone-gcc44.patch new file mode 100644 index 0000000..23528ab --- /dev/null +++ b/cone-gcc44.patch @@ -0,0 +1,22 @@ +--- libmail/maildiradd.C.orig 2009-04-18 20:28:15.000000000 +0200 ++++ libmail/maildiradd.C 2009-04-18 20:28:33.000000000 +0200 +@@ -165,7 +165,7 @@ + if (flags.size() > 0) + { + newname = newname + MDIRSEP "2," + flags; +- memcpy(strrchr(newname.c_str(), '/')-3, "cur", 3); ++ memcpy((void *) strrchr(newname.c_str(), '/')-3, "cur", 3); + // We go into the cur directory, now + } + +--- libmail/qp.C.orig 2009-04-18 21:50:00.000000000 +0200 ++++ libmail/qp.C 2009-04-18 21:50:03.000000000 +0200 +@@ -16,7 +16,7 @@ + { + static const char xdigits[]="0123456789ABCDEFabcdef"; + +- char *p=strchr(xdigits, c); ++ char *p=strchr((char *) xdigits, c); + + if (p == NULL) + return -1; diff --git a/cone.spec b/cone.spec index dbd770b..1c79eea 100644 --- a/cone.spec +++ b/cone.spec @@ -3,13 +3,15 @@ Summary: CONE mail reader Name: cone Version: 0.75 -Release: 3%{?dist} +Release: 4%{?dist} URL: http://www.courier-mta.org/cone/ Source0: http://dl.sf.net/courier/%{name}-%{version}.tar.bz2 Source1: http://dl.sf.net/courier/%{name}-%{version}.tar.bz2.sig #Source0: http://www.courier-mta.org/beta/cone/cone-%{version}.tar.bz2 #Source1: http://www.courier-mta.org/beta/cone/cone-%{version}.tar.bz2.sig +Patch0: %{name}-gcc44.patch +# This patch has been sent on 2009/04/19 to courier-cone@lists.sourceforge.net. License: GPLv3 Group: Applications/Internet BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot @@ -45,6 +47,7 @@ contains a large amount of documentation for CONE. %prep %setup -q +%patch0 %build CPPFLAGS="$CPPFLAGS -I%{curses_include_dir}" @@ -52,7 +55,7 @@ export CPPFLAGS # Note: The build breaks with --disable-static CFLAGS="$RPM_OPT_FLAGS" %configure --with-devel --enable-shared -%{__make} %{?_smp_mflags} +%{__make} -k %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT @@ -104,6 +107,9 @@ rm -rf $RPM_BUILD_ROOT %doc cone/html %changelog +* Sat Apr 18 2009 Milos Jakubicek - 0.75-4 +- Fix FTBFS: added cone-gcc44.patch + * Tue Feb 24 2009 Fedora Release Engineering - 0.75-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild