rpms/openoffice.org/devel openoffice.org.2.0.3-ooo66018.cppuhelper.dangerousvisibility.patch, NONE, 1.1 openoffice.org.spec, 1.749, 1.750 openoffice.org.2.0.3-ooo66018.idlc.dangerousvisibility.patch, 1.3, NONE openoffice.org.2.0.3-ooo66018.solenv.dangerousvisibility.patch, 1.1, NONE

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Thu Jun 29 11:53:52 UTC 2006


Author: caolanm

Update of /cvs/dist/rpms/openoffice.org/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv1146

Modified Files:
	openoffice.org.spec 
Added Files:
	openoffice.org.2.0.3-ooo66018.cppuhelper.dangerousvisibility.patch 
Removed Files:
	openoffice.org.2.0.3-ooo66018.idlc.dangerousvisibility.patch 
	openoffice.org.2.0.3-ooo66018.solenv.dangerousvisibility.patch 
Log Message:
new visibility workaround

openoffice.org.2.0.3-ooo66018.cppuhelper.dangerousvisibility.patch:
 cppuhelper/inc/cppuhelper/implbase1.hxx   |    2 +-
 cppuhelper/inc/cppuhelper/implbase10.hxx  |    2 +-
 cppuhelper/inc/cppuhelper/implbase11.hxx  |    2 +-
 cppuhelper/inc/cppuhelper/implbase12.hxx  |    2 +-
 cppuhelper/inc/cppuhelper/implbase2.hxx   |    2 +-
 cppuhelper/inc/cppuhelper/implbase3.hxx   |    2 +-
 cppuhelper/inc/cppuhelper/implbase4.hxx   |    2 +-
 cppuhelper/inc/cppuhelper/implbase5.hxx   |    2 +-
 cppuhelper/inc/cppuhelper/implbase6.hxx   |    2 +-
 cppuhelper/inc/cppuhelper/implbase7.hxx   |    2 +-
 cppuhelper/inc/cppuhelper/implbase8.hxx   |    2 +-
 cppuhelper/inc/cppuhelper/implbase9.hxx   |    2 +-
 cppuhelper/inc/cppuhelper/implbase_ex.hxx |   16 ++++++++++++++++
 inc/cppuhelper/implbase1.hxx              |    0 
 inc/cppuhelper/implbase10.hxx             |    0 
 inc/cppuhelper/implbase11.hxx             |    0 
 inc/cppuhelper/implbase12.hxx             |    0 
 inc/cppuhelper/implbase2.hxx              |    0 
 inc/cppuhelper/implbase3.hxx              |    0 
 inc/cppuhelper/implbase4.hxx              |    0 
 inc/cppuhelper/implbase5.hxx              |    0 
 inc/cppuhelper/implbase6.hxx              |    0 
 inc/cppuhelper/implbase7.hxx              |    0 
 inc/cppuhelper/implbase8.hxx              |    0 
 inc/cppuhelper/implbase9.hxx              |    0 
 inc/cppuhelper/implbase_ex.hxx            |    0 
 26 files changed, 28 insertions(+), 12 deletions(-)

--- NEW FILE openoffice.org.2.0.3-ooo66018.cppuhelper.dangerousvisibility.patch ---
Index: inc/cppuhelper/implbase1.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase1.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase1.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase1.hxx	5 Oct 2005 14:23:42 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase1.hxx	29 Jun 2006 11:50:44 -0000
@@ -68,7 +71,7 @@
 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
                 }
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
     
Index: inc/cppuhelper/implbase10.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase10.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase10.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase10.hxx	5 Oct 2005 14:24:09 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase10.hxx	29 Jun 2006 11:50:45 -0000
@@ -78,7 +78,7 @@
 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
 				}
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase11.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase11.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase11.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase11.hxx	5 Oct 2005 14:24:35 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase11.hxx	29 Jun 2006 11:50:45 -0000
@@ -79,7 +79,7 @@
 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
 				}
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase12.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase12.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase12.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase12.hxx	5 Oct 2005 14:25:08 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase12.hxx	29 Jun 2006 11:50:45 -0000
@@ -80,7 +80,7 @@
                     { { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
 				}
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase2.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase2.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase2.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase2.hxx	5 Oct 2005 14:25:28 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase2.hxx	29 Jun 2006 11:50:45 -0000
@@ -69,7 +69,7 @@
 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
                 }
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase3.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase3.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase3.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase3.hxx	5 Oct 2005 14:25:47 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase3.hxx	29 Jun 2006 11:50:46 -0000
@@ -70,7 +70,7 @@
 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
                 }
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase4.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase4.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase4.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase4.hxx	5 Oct 2005 14:26:03 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase4.hxx	29 Jun 2006 11:50:46 -0000
@@ -72,7 +72,7 @@
 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
                 }
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase5.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase5.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase5.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase5.hxx	5 Oct 2005 14:26:20 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase5.hxx	29 Jun 2006 11:50:46 -0000
@@ -73,7 +73,7 @@
 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
                 }
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase6.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase6.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase6.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase6.hxx	5 Oct 2005 14:26:37 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase6.hxx	29 Jun 2006 11:50:48 -0000
@@ -74,7 +74,7 @@
 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
                 }
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
     
Index: inc/cppuhelper/implbase7.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase7.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase7.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase7.hxx	5 Oct 2005 14:26:54 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase7.hxx	29 Jun 2006 11:50:48 -0000
@@ -75,7 +75,7 @@
 					{ { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
 				}
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase8.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase8.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase8.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase8.hxx	5 Oct 2005 14:27:12 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase8.hxx	29 Jun 2006 11:50:48 -0000
@@ -76,7 +76,7 @@
                     { { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
                 }
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase9.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase9.hxx,v
retrieving revision 1.15
diff -u -r1.15 implbase9.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase9.hxx	5 Oct 2005 14:27:40 -0000	1.15
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase9.hxx	29 Jun 2006 11:50:48 -0000
@@ -77,7 +77,7 @@
                     { { ::com::sun::star::lang::XTypeProvider::static_type }, ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16 }
 				}
             };
-            return reinterpret_cast< class_data * >(&s_cd);
+            return class_data_fixup<Impl>(reinterpret_cast< class_data * >(&s_cd));
         }
     };
 
Index: inc/cppuhelper/implbase_ex.hxx
===================================================================
RCS file: /cvs/udk/cppuhelper/inc/cppuhelper/implbase_ex.hxx,v
retrieving revision 1.6
diff -u -r1.6 implbase_ex.hxx
--- openoffice.org.orig/cppuhelper/inc/cppuhelper/implbase_ex.hxx	5 Oct 2005 14:27:57 -0000	1.6
+++ openoffice.org/cppuhelper/inc/cppuhelper/implbase_ex.hxx	29 Jun 2006 11:50:48 -0000
@@ -53,6 +53,9 @@
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
 #endif
 
+#include <stdlib.h>
+#include <stdio.h>
+
 /* If you need to define implementation helper classes that deal with more than
    12 interfaces, then use macros as follows, e.g. for 3 interfaces:
    
@@ -117,6 +120,19 @@
     */
     type_entry m_typeEntries[ 1 ];
 };
+
+template<typename Impl> class_data* class_data_fixup(class_data *s_cd)
+{
+    if (!s_cd->m_typeEntries[s_cd->m_nTypes-1].m_type.getCppuType)
+    {
+        fprintf(stderr, "Avert a fatal crash\n");
+        s_cd->m_typeEntries[s_cd->m_nTypes-1].m_type.getCppuType =
+                ::com::sun::star::lang::XTypeProvider::static_type;
+        s_cd->m_typeEntries[s_cd->m_nTypes-1].m_offset =
+                ((sal_IntPtr)(::com::sun::star::lang::XTypeProvider *) (Impl *) 16) - 16;
+    }
+    return s_cd;
+}
 
 /** ImplHelper
     @internal


Index: openoffice.org.spec
===================================================================
RCS file: /cvs/dist/rpms/openoffice.org/devel/openoffice.org.spec,v
retrieving revision 1.749
retrieving revision 1.750
diff -u -r1.749 -r1.750
--- openoffice.org.spec	29 Jun 2006 09:43:31 -0000	1.749
+++ openoffice.org.spec	29 Jun 2006 11:53:49 -0000	1.750
@@ -105,7 +105,7 @@
 Patch39: openoffice.org.2.0.3.ooo66067.embeddedobj.crash.patch
 Patch40: openoffice.org-2.0.3.ooo65519.printing.samba.patch
 Patch41: workspace.sixtyfour06.patch
-Patch42: openoffice.org.2.0.3-ooo66018.solenv.dangerousvisibility.patch
+Patch42: openoffice.org.2.0.3-ooo66018.cppuhelper.dangerousvisibility.patch
 Patch43: openoffice.org-2.0.3.ooo66851.i18npool.x86_64.patch
 
 %define instdir %{_libdir}/openoffice.org2.0
@@ -839,7 +839,7 @@
 %patch39 -p1 -b .ooo66067.embeddedobj.crash.patch
 %patch40 -p1 -b .ooo65519.printing.samba.patch
 %patch41 -p1 -b .workspace.sixtyfour06.patch
-%patch42 -p1 -b .ooo66018.solenv.dangerousvisibility.patch
+%patch42 -p1 -b .ooo66018.cppuhelper.dangerousvisibility.patch
 %patch43 -p1 -b .ooo66851.i18npool.x86_64.patch
 
 tar xzf %{SOURCE1}
@@ -3319,8 +3319,9 @@
 
 %changelog
 * Thu Jun 28 2006 Caolan McNamara <caolanm at redhat.com> - 1:2.0.3-7.4
-- disable -fvisibility-inlines-hidden
 - rh#196123# add openoffice.org-2.0.3.ooo66851.i18npool.x86_64.patch
+- add openoffice.org.2.0.3-ooo66018.cppuhelper.dangerousvisibility.patch as visibility(?)
+  workaround
 
 * Tue Jun 27 2006 Caolan McNamara <caolanm at redhat.com> - 1:2.0.3-7.1
 - next milestone


--- openoffice.org.2.0.3-ooo66018.idlc.dangerousvisibility.patch DELETED ---


--- openoffice.org.2.0.3-ooo66018.solenv.dangerousvisibility.patch DELETED ---




More information about the fedora-cvs-commits mailing list