rpms/openoffice.org/F-12 workspace.vcl112.patch, NONE, 1.1 openoffice.org.spec, 1.2090, 1.2091
Caolan McNamara
caolanm at fedoraproject.org
Fri Jun 4 09:05:31 UTC 2010
Author: caolanm
Update of /cvs/pkgs/rpms/openoffice.org/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv23978/F-12
Modified Files:
openoffice.org.spec
Added Files:
workspace.vcl112.patch
Log Message:
Resolves: rhbz#596980 workspace.vcl112.patch
workspace.vcl112.patch:
sm.cxx | 45 +++++++++++++++++++++++++++++++++++----------
1 file changed, 35 insertions(+), 10 deletions(-)
--- NEW FILE workspace.vcl112.patch ---
diff -r 0b1cfa88a648 vcl/unx/source/app/sm.cxx
--- a/vcl/unx/source/app/sm.cxx Mon May 31 20:37:41 2010 +0100
+++ b/vcl/unx/source/app/sm.cxx Mon May 31 20:56:43 2010 +0100
@@ -159,6 +159,10 @@
static int nWakeupFiles[2];
static oslMutex ICEMutex;
static oslThread ICEThread;
+#ifdef USE_SM_EXTENSION
+ static IceIOErrorHandler origIOErrorHandler;
+ static IceErrorHandler origErrorHandler;
+#endif
public:
static void activate();
@@ -179,6 +183,19 @@
oslThread ICEConnectionObserver::ICEThread = NULL;
int ICEConnectionObserver::nWakeupFiles[2] = { 0, 0 };
+#ifdef USE_SM_EXTENSION
+IceIOErrorHandler ICEConnectionObserver::origIOErrorHandler = NULL;
+IceErrorHandler ICEConnectionObserver::origErrorHandler = NULL;
+
+static void IgnoreIceErrors(IceConn, Bool, int, unsigned long, int, int, IcePointer)
+{
+}
+
+static void IgnoreIceIOErrors(IceConn)
+{
+}
+#endif
+
// HACK
bool SessionManagerClient::bDocSaveDone = false;
@@ -585,25 +602,33 @@
void ICEConnectionObserver::activate()
{
- if( ! bIsWatching )
- {
+ if( ! bIsWatching )
+ {
nWakeupFiles[0] = nWakeupFiles[1] = 0;
ICEMutex = osl_createMutex();
- bIsWatching = TRUE;
+ bIsWatching = TRUE;
#ifdef USE_SM_EXTENSION
- IceAddConnectionWatch( ICEWatchProc, NULL );
+ /*
+ * Default handlers call exit, we don't care that strongly if something
+ * happens to fail
+ */
+ origIOErrorHandler = IceSetIOErrorHandler( IgnoreIceIOErrors );
+ origErrorHandler = IceSetErrorHandler( IgnoreIceErrors );
+ IceAddConnectionWatch( ICEWatchProc, NULL );
#endif
- }
+ }
}
void ICEConnectionObserver::deactivate()
{
- if( bIsWatching )
- {
+ if( bIsWatching )
+ {
lock();
- bIsWatching = FALSE;
+ bIsWatching = FALSE;
#ifdef USE_SM_EXTENSION
- IceRemoveConnectionWatch( ICEWatchProc, NULL );
+ IceRemoveConnectionWatch( ICEWatchProc, NULL );
+ IceSetErrorHandler( origErrorHandler );
+ IceSetIOErrorHandler( origIOErrorHandler );
#endif
nConnections = 0;
if( ICEThread )
@@ -622,7 +647,7 @@
}
osl_destroyMutex( ICEMutex );
ICEMutex = NULL;
- }
+ }
}
void ICEConnectionObserver::wakeup()
Index: openoffice.org.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org/F-12/openoffice.org.spec,v
retrieving revision 1.2090
retrieving revision 1.2091
diff -u -p -r1.2090 -r1.2091
--- openoffice.org.spec 25 May 2010 15:15:51 -0000 1.2090
+++ openoffice.org.spec 4 Jun 2010 09:05:29 -0000 1.2091
@@ -209,6 +209,7 @@ Patch130: workspace.hb32bugs02.patch
Patch131: openoffice.org-3.1.1.oooXXXXX.sw.ww8exportcrash.patch
Patch132: openoffice.org-3.3.0.ooo111699.svx.nullfield.patch
Patch133: workspace.mba33issues01.patch
+Patch134: workspace.vcl112.patch
%define python_py_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")
%define instdir %{_libdir}
@@ -1811,6 +1812,7 @@ cat %{PATCH11} >> svtools/source/dialogs
%patch131 -p0 -b .oooXXXXX.sw.ww8exportcrash.patch
%patch132 -p0 -b .ooo111699.svx.nullfield.patch
%patch133 -p2 -b .workspace.mba33issues01.patch
+%patch134 -p1 -b .workspace.vcl112.patch
%build
echo build start time is `date`, diskspace: `df -h . | tail -n 1`
@@ -4356,8 +4358,9 @@ fi
unopkg list --shared > /dev/null 2>&1 || :
%changelog
-* Tue May 25 2010 Caolán McNamara <caolanm at redhat.com> - 1:3.1.1-19.32
+* Fri Jun 04 2010 Caolán McNamara <caolanm at redhat.com> - 1:3.1.1-19.32
- Resolves: rhbz#595718 workspace.mba33issues01.patch
+- Resolves: rhbz#596980 workspace.vcl112.patch
* Wed May 19 2010 Caolán McNamara <caolanm at redhat.com> - 1:3.1.1-19.31
- Resolves: rhbz#593561 openoffice.org-3.3.0.ooo111699.svx.nullfield.patch
More information about the scm-commits
mailing list