rpms/wxGTK/devel wxGTK-2.6.2-gcc41stringh.patch, NONE, 1.1 wxGTK-2.6.2-socketclosefix.patch, NONE, 1.1 wxGTK.spec, 1.15, 1.16

Matthew Miller (mattdm) fedora-extras-commits at redhat.com
Mon Feb 6 19:39:37 UTC 2006


Author: mattdm

Update of /cvs/extras/rpms/wxGTK/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26536

Modified Files:
	wxGTK.spec 
Added Files:
	wxGTK-2.6.2-gcc41stringh.patch 
	wxGTK-2.6.2-socketclosefix.patch 
Log Message:
fix bug #178184 (amule crashes), and also make build with gcc 4.1.


wxGTK-2.6.2-gcc41stringh.patch:

--- NEW FILE wxGTK-2.6.2-gcc41stringh.patch ---
===================================================================
RCS file: /pack/cvsroots/wxwidgets/wxWidgets/include/wx/string.h,v
retrieving revision 1.206.2.2
retrieving revision 1.206.2.3
diff -u -r1.206.2.2 -r1.206.2.3
--- wxWidgets/include/wx/string.h	2005/11/01 13:32:48	1.206.2.2
+++ wxWidgets/include/wx/string.h	2005/12/15 19:26:27	1.206.2.3
@@ -1291,16 +1291,15 @@
     { return (wxString&)wxStringBase::operator+=(ch); }
 };
 
-// IBM xlC compiler needs these operators to be declared in global scope,
-// although this shouldn't be a problem for the other compilers we prefer to
-// only do it for it in stable 2.6 branch
-#ifdef __IBMCPP__
+// notice that even though for many compilers the friend declarations above are
+// enough, from the point of view of C++ standard we must have the declarations
+// here as friend ones are not injected in the enclosing namespace and without
+// them the code fails to compile with conforming compilers such as xlC or g++4
 wxString WXDLLIMPEXP_BASE operator+(const wxString& string1,  const wxString& string2);
 wxString WXDLLIMPEXP_BASE operator+(const wxString& string, wxChar ch);
 wxString WXDLLIMPEXP_BASE operator+(wxChar ch, const wxString& string);
 wxString WXDLLIMPEXP_BASE operator+(const wxString& string, const wxChar *psz);
 wxString WXDLLIMPEXP_BASE operator+(const wxChar *psz, const wxString& string);
-#endif // __IBMCPP__
 
 // define wxArrayString, for compatibility
 #if WXWIN_COMPATIBILITY_2_4 && !wxUSE_STL

wxGTK-2.6.2-socketclosefix.patch:

--- NEW FILE wxGTK-2.6.2-socketclosefix.patch ---
===================================================================
RCS file: /pack/cvsroots/wxwidgets/wxWidgets/src/unix/gsocket.cpp,v
retrieving revision 1.51
retrieving revision 1.51.2.1
diff -u -r1.51 -r1.51.2.1
--- wxWidgets/src/unix/gsocket.cpp	2005/09/19 15:18:27	1.51
+++ wxWidgets/src/unix/gsocket.cpp	2005/10/05 15:37:42	1.51.2.1
@@ -8,7 +8,7 @@
  *              Guillermo Rodriguez Garcia <guille at iies.es>
  * Purpose:     GSocket main Unix and OS/2 file
  * Licence:     The wxWindows licence
- * CVSID:       $Id: gsocket.cpp,v 1.51 2005/09/19 15:18:27 JS Exp $
+ * CVSID:       $Id: gsocket.cpp,v 1.51.2.1 2005/10/05 15:37:42 KH Exp $
  * -------------------------------------------------------------------------
  */
 
@@ -331,6 +331,9 @@
 
   assert(this);
 
+  /* Don't allow events to fire after socket has been closed */
+  gs_gui_functions->Disable_Events(this);
+
   /* If socket has been created, shutdown it */
   if (m_fd != INVALID_SOCKET)
   {


Index: wxGTK.spec
===================================================================
RCS file: /cvs/extras/rpms/wxGTK/devel/wxGTK.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- wxGTK.spec	30 Nov 2005 21:37:34 -0000	1.15
+++ wxGTK.spec	6 Feb 2006 19:39:37 -0000	1.16
@@ -2,7 +2,7 @@
 
 Name:           wxGTK
 Version:        2.6.2
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        GTK2 port of the wxWidgets GUI library
 # The wxWindows licence is the LGPL with a specific exemption allowing
 # distribution of derived binaries under any terms. (This will eventually
@@ -12,6 +12,8 @@
 URL:            http://www.wxwidgets.org/
 Source0:        http://dl.sf.net/wxwindows/%{name}-%{version}.tar.bz2
 Patch0:         wxGTK-2.6.2-intl_cpp.patch
+Patch1:         wxGTK-2.6.2-socketclosefix.patch
+Patch2:         wxGTK-2.6.2-gcc41stringh.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  gtk2-devel, zlib-devel >= 1.1.4
@@ -72,6 +74,8 @@
 %prep
 %setup -q
 %patch0 -p0 -b .intlcpp
+%patch1 -p1 -b .socketclose
+%patch2 -p1 -b .gcc41
 
 sed -i -e 's|/usr/lib\b|%{_libdir}|' wx-config.in configure
 
@@ -168,6 +172,12 @@
 
 
 %changelog
+* Mon Feb 06 2006 Matthew Miller <mattdm at mattdm.org> - 2.6.2-4
+- add wxGTK-2.6.2-socketclosefix.patch to fix aMule crashes. see
+  bugzilla bug #178184
+- add wxGTK-2.6.2-gcc41stringh.patch (pulled from CVS) to make build on 
+  FC5 devel w/ gcc-4.1.
+  
 * Wed Nov 30 2005 Matthew Miller <mattdm at mattdm.org> - 2.6.2-3
 - add wxGTK-2.6.2-intl_cpp.patch to deal with amule and probably other
   issues (see bug #154618 comment #47)




More information about the fedora-extras-commits mailing list