Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=57d96c59476de1b08aba89e265433b22519a6a48
commit 57d96c59476de1b08aba89e265433b22519a6a48 Author: crazy <[EMAIL PROTECTED]> Date: Fri Apr 4 04:07:17 2008 +0200 wxgtk-2.8.7-2-i686 * release bump * added backport patch to fix some race issue * that fixes the crashes in wxdfast , filezilla * and the reported crash from hermier in bittorrent-gui diff --git a/source/xlib-extra/wxgtk/FrugalBuild b/source/xlib-extra/wxgtk/FrugalBuild index b18a4e1..d40f230 100644 --- a/source/xlib-extra/wxgtk/FrugalBuild +++ b/source/xlib-extra/wxgtk/FrugalBuild @@ -4,13 +4,14 @@ pkgname=wxgtk pkgver=2.8.7 -pkgrel=1 +pkgrel=2 pkgdesc="GTK+ implementation of wxWidgets API for GUI'" _F_sourceforge_dirname="wxwindows" _F_sourceforge_name="wxGTK" _F_sourceforge_ext=".tar.bz2" Finclude sourceforge url="http://www.wxwidgets.org/" +source=($source race-fix.patch) # TODO: gst* depends=('libdrm' 'sdl' 'gtk+2' 'libgl' 'freetype2' 'libxcb' 'glib2') groups=('xlib-extra') @@ -42,8 +43,6 @@ wx_compile() build() { cd $Fsrcdir || Fdie - export CFLAGS="$CFLAGS -fno-strict-aliasing" - export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" cp -r wxGTK-$pkgver wxGTK-$pkgver-u8 || Fdie ## TODO: figure|enable more things wxconfig="--with-opengl \ @@ -85,5 +84,6 @@ build() Fsplit $pkgname-locale usr/share/locale } -sha1sums=('07247cce8f6602ab532666b766c15bf3c7cdea3f') +sha1sums=('07247cce8f6602ab532666b766c15bf3c7cdea3f' \ + '0d98de48b4f4f5fa06c33fc1c2aa2b3f9a775417') # optimization OK diff --git a/source/xlib-extra/wxgtk/race-fix.patch b/source/xlib-extra/wxgtk/race-fix.patch new file mode 100644 index 0000000..c58f395 --- /dev/null +++ b/source/xlib-extra/wxgtk/race-fix.patch @@ -0,0 +1,109 @@ +--- wxWidgets/src/gtk/app.cpp 2008/03/13 02:56:21 52464 ++++ wxWidgets/src/gtk/app.cpp 2008/03/13 04:37:03 52465 +@@ -174,59 +174,63 @@ + if (!wxTheApp) + return false; + +- bool moreIdles = false; +- ++ guint idleID_save; ++ { ++ // Allow another idle source to be added while this one is busy. ++ // Needed if an idle event handler runs a new event loop, ++ // for example by showing a dialog. ++#if wxUSE_THREADS ++ wxMutexLocker lock(gs_idleTagsMutex); ++#endif ++ idleID_save = wxTheApp->m_idleTag; ++ wxTheApp->m_idleTag = 0; ++ g_isIdle = true; ++ wxAddEmissionHook(); ++ } + #ifdef __WXDEBUG__ + // don't generate the idle events while the assert modal dialog is shown, + // this matches the behavior of wxMSW +- if (!wxTheApp->IsInAssert()) ++ if (wxTheApp->IsInAssert()) ++ return false; + #endif // __WXDEBUG__ +- { +- guint idleID_save; +- { +- // Allow another idle source to be added while this one is busy. +- // Needed if an idle event handler runs a new event loop, +- // for example by showing a dialog. +-#if wxUSE_THREADS +- wxMutexLocker lock(gs_idleTagsMutex); +-#endif +- idleID_save = wxTheApp->m_idleTag; +- wxTheApp->m_idleTag = 0; +- g_isIdle = true; +- wxAddEmissionHook(); +- } + +- // When getting called from GDK's time-out handler +- // we are no longer within GDK's grab on the GUI +- // thread so we must lock it here ourselves. +- gdk_threads_enter(); +- +- // Send idle event to all who request them as long as +- // no events have popped up in the event queue. +- do { +- moreIdles = wxTheApp->ProcessIdle(); +- } while (moreIdles && gtk_events_pending() == 0); ++ // When getting called from GDK's time-out handler ++ // we are no longer within GDK's grab on the GUI ++ // thread so we must lock it here ourselves. ++ gdk_threads_enter(); + +- // Release lock again +- gdk_threads_leave(); +- +- { +- // If another idle source was added, remove it ++ // Send idle event to all who request them as long as ++ // no events have popped up in the event queue. ++ bool moreIdles; ++ do { ++ moreIdles = wxTheApp->ProcessIdle(); ++ } while (moreIdles && gtk_events_pending() == 0); ++ ++ // Release lock again ++ gdk_threads_leave(); ++ + #if wxUSE_THREADS +- wxMutexLocker lock(gs_idleTagsMutex); ++ wxMutexLocker lock(gs_idleTagsMutex); + #endif +- if (wxTheApp->m_idleTag != 0) +- g_source_remove(wxTheApp->m_idleTag); +- wxTheApp->m_idleTag = idleID_save; +- g_isIdle = false; +- } +- } ++ // If another idle source was added, remove it ++ if (wxTheApp->m_idleTag != 0) ++ g_source_remove(wxTheApp->m_idleTag); ++ wxTheApp->m_idleTag = idleID_save; ++ g_isIdle = false; + +- if (!moreIdles) +- { + #if wxUSE_THREADS +- wxMutexLocker lock(gs_idleTagsMutex); ++ if (wxPendingEventsLocker) ++ wxPendingEventsLocker->Enter(); + #endif ++ // Pending events can be added asynchronously, ++ // need to keep idle source if any have appeared ++ moreIdles = moreIdles || (wxPendingEvents && !wxPendingEvents->IsEmpty()); ++#if wxUSE_THREADS ++ if (wxPendingEventsLocker) ++ wxPendingEventsLocker->Leave(); ++#endif ++ if (!moreIdles) ++ { + // Indicate that we are now in idle mode and event handlers + // will have to reinstall the idle handler again. + g_isIdle = true; + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
