[arch-commits] Commit in libreoffice/trunk (PKGBUILD gcc462_buildfix.diff)

andyrtr at archlinux.org andyrtr at archlinux.org
Mon Dec 19 14:09:50 UTC 2011


    Date: Monday, December 19, 2011 @ 09:09:49
  Author: andyrtr
Revision: 145196

upgpkg: libreoffice 3.4.4-4

unixodbc rebuild; add a gcc4.6.2 buildfix

Added:
  libreoffice/trunk/gcc462_buildfix.diff
Modified:
  libreoffice/trunk/PKGBUILD

----------------------+
 PKGBUILD             |   16 +++--
 gcc462_buildfix.diff |  138 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 148 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-12-19 13:50:56 UTC (rev 145195)
+++ PKGBUILD	2011-12-19 14:09:49 UTC (rev 145196)
@@ -37,14 +37,14 @@
 	'libreoffice-extension-wiki-publisher')
 _LOver=3.4.4.2
 pkgver=3.4.4
-pkgrel=3
+pkgrel=4
 arch=('i686' 'x86_64')
 #_LO_tree="3.4"
 _OFFICEUPD="340"
 license=('LGPL3')
 url="http://www.libreoffice.org/"
 makedepends=( # makedepends
-             'sane' 'perl-archive-zip' 'zip' 'unzip' 'xulrunner' 'unixodbc' 'hsqldb-java' 'boost'
+             'sane' 'perl-archive-zip' 'zip' 'unzip' 'xulrunner' 'unixodbc>=2.3.1' 'hsqldb-java' 'boost'
              'apache-ant' 'gperf' 'poppler>=0.18.0' 'kdelibs' 'gconf' 'cppunit' #'libmysqlclient'
              'beanshell'  'vigra' 'libldap' 'lucene' 'libmythes' 'junit' 'libwpg' 'imagemagick'
              'mesa' 'gstreamer0.10-base' 'java-environment'
@@ -59,8 +59,8 @@
 # http://download.documentfoundation.org/mirrors/all.html
 # http://wiki.documentfoundation.org/Mirrors
 
-#_mirror="http://download.documentfoundation.org/libreoffice/src/${pkgver}"
-_mirror="http://dev-builds.libreoffice.org/pre-releases/src"
+_mirror="http://download.documentfoundation.org/libreoffice/src/${pkgver}"
+#_mirror="http://dev-builds.libreoffice.org/pre-releases/src"
 _additional_source_url="http://hg.services.openoffice.org/binaries"
 source=(${_mirror}/${pkgbase}-{artwork,base,bootstrap,calc,components,extensions,extras,filters,help,impress,libs-core,libs-extern,libs-extern-sys,libs-gui,postprocess,sdk,testing,ure,writer}-${_LOver}.tar.bz2 #,translations
 	${_additional_source_url}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
@@ -104,7 +104,8 @@
 	vbahelper.visibility.patch
 	scp2-more-reasonable-file-access-rights.diff
 	oracle-recognition.diff::http://cgit.freedesktop.org/libreoffice/core/patch/?id=549e54fb2f8113502743c443d6deadfe648dede1
-	RemovetheoslSecuritygetHomeDircheck.diff::http://cgit.freedesktop.org/libreoffice/ure/patch/?id=bc9b86940a707e9e2e1076f2954f38075398b5d7)
+	RemovetheoslSecuritygetHomeDircheck.diff::http://cgit.freedesktop.org/libreoffice/ure/patch/?id=bc9b86940a707e9e2e1076f2954f38075398b5d7
+	gcc462_buildfix.diff)
 noextract=(185d60944ea767075d27247c3162b3bc-unowinreg.dll
 	0ff7d225d087793c8c2c680d77aac3e7-mdds_0.5.3.tar.bz2
 	ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip
@@ -201,7 +202,8 @@
          '43b145db28e6c0d73578ae6fd35e510d'
          '37638431e7e40baf2e47966ebb9bc0e9'
          '3c6c62e77c30649a3dfe73512947cc9a'
-         'eb35d4c715e0dfc23bbc706996033829')
+         'eb35d4c715e0dfc23bbc706996033829'
+         '10600d04ee81014bc9b5cc04e615d799')
 
 build() {
 
@@ -233,6 +235,8 @@
 	patch -Np0 -i ${srcdir}/scp2-more-reasonable-file-access-rights.diff
 	patch -Np1 -i ${srcdir}/oracle-recognition.diff
 	patch -Np1 -i ${srcdir}/RemovetheoslSecuritygetHomeDircheck.diff
+	# https://www.libreoffice.org/bugzilla/show_bug.cgi?id=43139
+	patch -Np1 -i ${srcdir}/gcc462_buildfix.diff
 	
 	# unset C(XX)FLAGS
 	# http://www.openoffice.org/issues/show_bug.cgi?id=103205

Added: gcc462_buildfix.diff
===================================================================
--- gcc462_buildfix.diff	                        (rev 0)
+++ gcc462_buildfix.diff	2011-12-19 14:09:49 UTC (rev 145196)
@@ -0,0 +1,138 @@
+--- ./framework/source/accelerators/acceleratorcache.cxx.orig	2011-12-15 15:08:41.329168423 -0200
++++ ./framework/source/accelerators/acceleratorcache.cxx	2011-12-15 15:17:59.473190664 -0200
+@@ -61,7 +61,7 @@ AcceleratorCache::AcceleratorCache()
+ AcceleratorCache::AcceleratorCache(const AcceleratorCache& rCopy)
+     : ThreadHelpBase(&Application::GetSolarMutex())
+ {
+-    m_lCommand2Keys = rCopy.m_lCommand2Keys;
++    m_lCommand2Keys = const_cast< framework::BaseHash<comphelper::SequenceAsVector<com::sun::star::awt::KeyEvent> >& > (rCopy.m_lCommand2Keys);
+     m_lKey2Commands = rCopy.m_lKey2Commands;
+ }
+ 
+@@ -78,7 +78,7 @@ void AcceleratorCache::takeOver(const Ac
+     // SAFE -> ----------------------------------
+     WriteGuard aWriteLock(m_aLock);
+     
+-    m_lCommand2Keys = rCopy.m_lCommand2Keys;
++    m_lCommand2Keys = const_cast< framework::BaseHash<comphelper::SequenceAsVector<com::sun::star::awt::KeyEvent> >& > (rCopy.m_lCommand2Keys);
+     m_lKey2Commands = rCopy.m_lKey2Commands;
+     
+     aWriteLock.unlock();
+--- ./framework/source/loadenv/loadenv.cxx.orig	2011-12-15 15:08:15.771487938 -0200
++++ ./framework/source/loadenv/loadenv.cxx	2011-12-15 15:19:06.038358483 -0200
+@@ -255,7 +255,8 @@ void LoadEnv::initializeLoading(const ::
+     // take over all new parameters.
+     m_xTargetFrame.clear();
+     m_xBaseFrame                    = xBaseFrame        ;
+-    m_lMediaDescriptor              = impl_mergeMediaDescriptorWithMightExistingModelArgs(lMediaDescriptor);
++    ::comphelper::MediaDescriptor tmp = impl_mergeMediaDescriptorWithMightExistingModelArgs(lMediaDescriptor);
++    m_lMediaDescriptor              =  tmp;
+     m_sTarget                       = sTarget           ;
+     m_nSearchFlags                  = nSearchFlags      ;
+     m_eFeature                      = eFeature          ;
+--- ./framework/source/uiconfiguration/uiconfigurationmanagerimpl.hxx.orig	2011-12-15 15:08:49.033072112 -0200
++++ ./framework/source/uiconfiguration/uiconfigurationmanagerimpl.hxx	2011-12-15 15:11:07.209344668 -0200
+@@ -175,6 +175,15 @@ namespace framework
+                 sal_Int16                                                         nElementType;
+                 UIElementDataHashMap                                              aElementsHashMap;
+                 com::sun::star::uno::Reference< com::sun::star::embed::XStorage > xStorage;
++                UIElementType& operator=(const UIElementType& rRight) {
++                        bModified = rRight.bModified;
++                        bLoaded = rRight.bLoaded;
++                        bDefaultLayer = rRight.bDefaultLayer;
++                        nElementType = rRight.nElementType;
++                        aElementsHashMap = rRight.aElementsHashMap;
++                        xStorage = rRight.xStorage;
++                        return *this;
++                };
+             };
+ 
+             typedef ::std::vector< UIElementType > UIElementTypesVector;
+--- ./framework/inc/uiconfiguration/moduleuiconfigurationmanager.hxx.orig	2011-12-19 11:10:56.000000000 +0000
++++ ./framework/inc/uiconfiguration/moduleuiconfigurationmanager.hxx	2011-12-19 11:12:06.000000000 +0000
+@@ -185,6 +185,15 @@ namespace framework
+                 sal_Int16                                                         nElementType;
+                 UIElementDataHashMap                                              aElementsHashMap;
+                 com::sun::star::uno::Reference< com::sun::star::embed::XStorage > xStorage;
++		UIElementType& operator=(const UIElementType& rRight) {
++			bModified = rRight.bModified;
++			bLoaded = rRight.bLoaded;
++			bDefaultLayer = rRight.bDefaultLayer;
++			nElementType = rRight.nElementType;
++			aElementsHashMap = rRight.aElementsHashMap;
++			xStorage = rRight.xStorage;
++			return *this;
++		};
+             };
+ 
+             typedef ::std::vector< UIElementType > UIElementTypesVector;
+--- ./framework/inc/uiconfiguration/uiconfigurationmanager.hxx.orig	2011-12-19 11:14:17.000000000 +0000
++++ ./framework/inc/uiconfiguration/uiconfigurationmanager.hxx	2011-12-19 11:15:16.000000000 +0000
+@@ -171,6 +171,15 @@ namespace framework
+                 sal_Int16                                                         nElementType;
+                 UIElementDataHashMap                                              aElementsHashMap;
+                 com::sun::star::uno::Reference< com::sun::star::embed::XStorage > xStorage;
++                UIElementType& operator=(const UIElementType& rRight) {
++                        bModified = rRight.bModified;
++                        bLoaded = rRight.bLoaded;
++                        bDefaultLayer = rRight.bDefaultLayer;
++                        nElementType = rRight.nElementType;
++                        aElementsHashMap = rRight.aElementsHashMap;
++                        xStorage = rRight.xStorage;
++                        return *this;
++                };
+             };
+ 
+             typedef ::std::vector< UIElementType > UIElementTypesVector;
+
+--- ./padmin/source/prtsetup.cxx.orig	2011-12-15 15:09:05.133870823 -0200
++++ ./padmin/source/prtsetup.cxx	2011-12-15 15:13:55.626239170 -0200
+@@ -813,7 +813,7 @@ extern "C" {
+ 
+         if( aDialog.Execute() )
+         {
+-            rJobData = aDialog.getSetup();
++            rJobData = const_cast< ::psp::PrinterInfo & > ( aDialog.getSetup() );
+             nRet = 1;
+         }
+ 
+--- ./sfx2/source/doc/guisaveas.cxx.orig	2011-12-15 15:08:58.332955848 -0200
++++ ./sfx2/source/doc/guisaveas.cxx	2011-12-15 15:12:39.953185212 -0200
+@@ -731,7 +731,7 @@ sal_Int8 ModelData_Impl::CheckFilter( co
+         if ( aFilterName.getLength() )
+             m_pOwner->GetFilterConfiguration()->getByName( aFilterName ) >>= aFilterProps;
+ 
+-        aFiltPropsHM = ::comphelper::SequenceAsHashMap( aFilterProps );
++        aFiltPropsHM <<  aFilterProps;
+         nFiltFlags = aFiltPropsHM.getUnpackedValueOrDefault( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Flags")), (sal_Int32)0 );
+     }
+ 
+--- ./framework/inc/classes/filtercachedata.hxx.orig	2011-12-17 13:14:22.102898902 +0000
++++ ./framework/inc/classes/filtercachedata.hxx	2011-12-17 13:17:51.524424012 +0000
+@@ -230,7 +230,7 @@
+         {
+             bPreferred			= rCopy.bPreferred		;
+             sName				= rCopy.sName			;
+-            lUINames			= rCopy.lUINames		;
++            lUINames			= const_cast < framework::BaseHash<rtl::OUString>&  > (rCopy.lUINames);
+             sMediaType			= rCopy.sMediaType		;
+             sClipboardFormat	= rCopy.sClipboardFormat;
+             nDocumentIconID		= rCopy.nDocumentIconID	;
+@@ -298,7 +298,7 @@
+             nOrder              = rCopy.nOrder              ;
+             sName				= rCopy.sName				;
+             sType				= rCopy.sType				;
+-            lUINames			= rCopy.lUINames			;
++            lUINames			= const_cast < framework::BaseHash<rtl::OUString>&  > (rCopy.lUINames);
+             sDocumentService	= rCopy.sDocumentService	;
+             sFilterService		= rCopy.sFilterService		;
+             sUIComponent        = rCopy.sUIComponent        ;
+@@ -405,7 +405,7 @@
+         inline Loader& impl_copy( const Loader& rCopy )
+         {
+             sName       = rCopy.sName       ;
+-            lUINames	= rCopy.lUINames	;
++            lUINames	= const_cast < framework::BaseHash<rtl::OUString>&  > (rCopy.lUINames);
+             lTypes		= rCopy.lTypes		;
+             return (*this);
+         }




More information about the arch-commits mailing list