From 9b4cfe0771881cde7b62d0ac2a3cd51b32724ee1 Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Jan 09 2010 01:06:52 +0000 Subject: Fix build with old gcc versions (RHEL4) --- diff --git a/pidgin-2.6.5-old-gcc.patch b/pidgin-2.6.5-old-gcc.patch new file mode 100644 index 0000000..78bc361 --- /dev/null +++ b/pidgin-2.6.5-old-gcc.patch @@ -0,0 +1,100 @@ +diff -urN pidgin-2.6.5.orig/finch/gntaccount.c pidgin-2.6.5/finch/gntaccount.c +--- pidgin-2.6.5.orig/finch/gntaccount.c 2010-01-01 18:28:01.000000000 -0500 ++++ pidgin-2.6.5/finch/gntaccount.c 2010-01-08 18:04:57.835401000 -0500 +@@ -23,6 +23,8 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA + */ ++#include ++ + #include + #include + #include +@@ -36,7 +38,6 @@ + #include + + #include "finch.h" +-#include + + #include + #include +diff -urN pidgin-2.6.5.orig/finch/gntdebug.c pidgin-2.6.5/finch/gntdebug.c +--- pidgin-2.6.5.orig/finch/gntdebug.c 2009-08-19 17:56:52.000000000 -0400 ++++ pidgin-2.6.5/finch/gntdebug.c 2010-01-08 18:22:07.434605000 -0500 +@@ -23,6 +23,8 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA + */ ++#include ++ + #include + #include + #include +@@ -35,7 +37,6 @@ + + #include "gntdebug.h" + #include "finch.h" +-#include + #include "notify.h" + #include "util.h" + +diff -urN pidgin-2.6.5.orig/finch/gntnotify.c pidgin-2.6.5/finch/gntnotify.c +--- pidgin-2.6.5.orig/finch/gntnotify.c 2009-08-19 17:56:52.000000000 -0400 ++++ pidgin-2.6.5/finch/gntnotify.c 2010-01-08 18:54:17.812859000 -0500 +@@ -23,6 +23,8 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA + */ ++#include ++ + #include + #include + #include +@@ -32,7 +34,6 @@ + #include + + #include "finch.h" +-#include + + #include + +diff -urN pidgin-2.6.5.orig/finch/gntplugin.c pidgin-2.6.5/finch/gntplugin.c +--- pidgin-2.6.5.orig/finch/gntplugin.c 2009-08-19 17:56:52.000000000 -0400 ++++ pidgin-2.6.5/finch/gntplugin.c 2010-01-08 19:39:48.233494000 -0500 +@@ -23,6 +23,8 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA + */ ++#include ++ + #include + #include + #include +@@ -32,7 +34,6 @@ + #include + + #include "finch.h" +-#include + + #include "debug.h" + #include "notify.h" +diff -urN pidgin-2.6.5.orig/finch/gntpounce.c pidgin-2.6.5/finch/gntpounce.c +--- pidgin-2.6.5.orig/finch/gntpounce.c 2009-08-19 17:56:52.000000000 -0400 ++++ pidgin-2.6.5/finch/gntpounce.c 2010-01-08 18:39:35.523268000 -0500 +@@ -24,6 +24,8 @@ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA + * + */ ++#include ++ + #include + #include + #include +@@ -36,7 +38,6 @@ + #include + + #include "finch.h" +-#include + + #include "account.h" + #include "conversation.h" diff --git a/pidgin.spec b/pidgin.spec index 3421aef..06df65b 100644 --- a/pidgin.spec +++ b/pidgin.spec @@ -98,7 +98,7 @@ Name: pidgin Version: 2.6.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ and GPLv2 and MIT # GPLv2+ - libpurple, gnt, finch, pidgin, most prpls # GPLv2 - silc & novell prpls @@ -130,7 +130,7 @@ Source1: purple-fedora-prefs.xml Patch0: pidgin-NOT-UPSTREAM-2.5.2-rhel4-sound-migration.patch ## Patches 100+: To be Included in Future Upstream -#Patch104: pidgin-2.6.3-msn_servconn_disconnect-crash.patch +Patch100: pidgin-2.6.5-old-gcc.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root Summary: A Gtk+ based multiprotocol instant messaging client @@ -392,7 +392,7 @@ echo "FEDORA=%{fedora} RHEL=%{rhel}" %endif ## Patches 100+: To be Included in Future Upstream -#%patch104 -p0 -b .msn_servconn_disconnect-crash +%patch100 -p0 -b .old_gcc # Our preferences cp %{SOURCE1} prefs.xml @@ -640,10 +640,11 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog -* Thu Jan 7 2010 Warren Togami - 2.6.5-1 +* Fri Jan 8 2010 Warren Togami - 2.6.5-2 - 2.6.5 - CVE-2010-0013 - Other bug fixes +- Fix build with old gcc versions (RHEL4) * Tue Dec 8 2009 Warren Togami - 2.6.4-4 - temporarily disable evolution integration in F13 until it is fixed