pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/openoffice Fixed some of the gcc4 issues. The pac...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9fad8f1c5227
branches:  trunk
changeset: 538045:9fad8f1c5227
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Jan 25 20:56:57 2008 +0000

description:
Fixed some of the gcc4 issues. The package doesn't built yet on
NetBSD-4.99.30.

diffstat:

 misc/openoffice/distinfo           |    5 +-
 misc/openoffice/patches/patch-aw   |   18 +-
 misc/openoffice/patches/patch-gcc4 |  352 +++++++++++++++++++++++++++++++++++++
 3 files changed, 369 insertions(+), 6 deletions(-)

diffs (truncated from 410 to 300 lines):

diff -r 936aaa29d33f -r 9fad8f1c5227 misc/openoffice/distinfo
--- a/misc/openoffice/distinfo  Fri Jan 25 18:55:02 2008 +0000
+++ b/misc/openoffice/distinfo  Fri Jan 25 20:56:57 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.36 2008/01/25 18:41:08 rillig Exp $
+$NetBSD: distinfo,v 1.37 2008/01/25 20:56:57 rillig Exp $
 
 SHA1 (openoffice-1.1.5/OOo_1.1.5_src.tar.gz) = 55b316209eaabf151a59ead2abc3c621502058ea
 RMD160 (openoffice-1.1.5/OOo_1.1.5_src.tar.gz) = 4f0759d0e3951dd511487f1ed774649dcc94e0db
@@ -63,6 +63,7 @@
 SHA1 (patch-at) = d208593e5fd37687c4be0b2735fdcc57760f7f3a
 SHA1 (patch-au) = 3fd383266f24c4a0c5e6f0cd00d419e1fe20cafa
 SHA1 (patch-av) = fa1910700a104347bf29ba19851f47eca34c8be1
-SHA1 (patch-aw) = f0decfe7d1bac881ec83b09328a6b863a9bed7b1
+SHA1 (patch-aw) = 74c0e6356067587873b651f0bd18f42eeda7804e
 SHA1 (patch-ax) = 4679a5b3eda8dbe5927cf09de81e54557a4a0809
 SHA1 (patch-ba) = 7c156791f88b4ba99ec9a4a582242633ceef7f6b
+SHA1 (patch-gcc4) = 62ff419079ed8cf0a1c38e35771fe3df3b7f2dbc
diff -r 936aaa29d33f -r 9fad8f1c5227 misc/openoffice/patches/patch-aw
--- a/misc/openoffice/patches/patch-aw  Fri Jan 25 18:55:02 2008 +0000
+++ b/misc/openoffice/patches/patch-aw  Fri Jan 25 20:56:57 2008 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-aw,v 1.7 2005/04/12 01:10:45 rillig Exp $
+$NetBSD: patch-aw,v 1.8 2008/01/25 20:56:57 rillig Exp $
 
 Patch from Rui-Xiang Guo for building on NetBSD-current. The getpwent_r
 function is not used at all, so why provide a (wrong) prototype for it?
 
---- ../sal/osl/unx/system.h.orig       2004-11-19 09:23:53.000000000 +0800
-+++ ../sal/osl/unx/system.h    2004-11-19 09:27:55.000000000 +0800
+--- ../sal/osl/unx/system.h.orig       2003-08-15 11:38:50.000000000 +0000
++++ ../sal/osl/unx/system.h    2008-01-25 19:15:07.000000000 +0000
 @@ -169,7 +169,10 @@
  #endif
  
@@ -16,7 +16,17 @@
  #     define _POSIX_THREAD_SYSCALL_SOFT 1
  #     include <pthread.h>
  #     include <netdb.h>
-@@ -569,7 +572,6 @@ extern int sem_post(sem_t* sem);
+@@ -482,7 +485,9 @@ void macxp_getSystemVersion( unsigned in
+ #     define PTHREAD_VALUE(t)                         (t)
+ #endif
+ #ifndef PTHREAD_NONE
++# if (__GNUC__ < 4) && !defined(MACOSX)
+ extern pthread_t _pthread_none_;
++# endif
+ #     define PTHREAD_NONE                                     _pthread_none_
+ #   ifndef PTHREAD_NONE_INIT
+ #             define PTHREAD_NONE_INIT                ((pthread_t)-1)
+@@ -569,7 +574,6 @@ extern int sem_post(sem_t* sem);
  
  #ifdef NO_PTHREAD_RTL
  #if !defined FREEBSD || (__FreeBSD_version < 500112)
diff -r 936aaa29d33f -r 9fad8f1c5227 misc/openoffice/patches/patch-gcc4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice/patches/patch-gcc4        Fri Jan 25 20:56:57 2008 +0000
@@ -0,0 +1,352 @@
+$NetBSD: patch-gcc4,v 1.1 2008/01/25 20:56:57 rillig Exp $
+
+Lots of fixes for gcc4. They are intentionally bundled into one large
+patch.
+
+--- ../autodoc/inc/ary/common_gate.hxx.orig    2002-11-01 17:10:16.000000000 +0000
++++ ../autodoc/inc/ary/common_gate.hxx 2008-01-25 18:17:55.000000000 +0000
+@@ -83,7 +83,7 @@ class CommonGate
+ {
+   public:
+     // LIFECYCLE
+-    virtual             CommonGate::~CommonGate() {}
++    virtual             ~CommonGate() {}
+ 
+     // OPERATIONS
+ 
+--- ../autodoc/source/ary/inc/nametreenode.hxx.orig    2003-03-18 14:11:34.000000000 +0000
++++ ../autodoc/source/ary/inc/nametreenode.hxx 2008-01-25 18:20:23.000000000 +0000
+@@ -187,7 +187,7 @@ inline void
+ NameTreeNode<ITEM_ID>::Add_Name( const String &      i_sName,
+                                  item_id             i_nId )
+ {
+-    LocalNames().insert( Map_LocalNames::value_type(i_sName, i_nId) );
++    LocalNames().insert( typename Map_LocalNames::value_type(i_sName, i_nId) );
+ }
+ 
+ 
+--- ../autodoc/source/ary/inc/store/st_iterator.hxx.orig       2002-11-01 17:13:57.000000000 +0000
++++ ../autodoc/source/ary/inc/store/st_iterator.hxx    2008-01-25 18:29:31.000000000 +0000
+@@ -244,7 +244,7 @@ class RootConstIterator : public interna
+ 
+ 
+     const unit_type &   operator*() const       /// @precond bool(*this);
+-                                                { return CurUnit(); }
++                                                { return this->CurUnit(); }
+ };
+ 
+ 
+@@ -271,7 +271,7 @@ class RootIterator: public internal::Ite
+                             { }
+ 
+     unit_type &         operator*() const       /// @precond bool(*this);
+-                                                { return CurUnit(); }
++                                                { return this->CurUnit(); }
+ };
+ 
+ 
+@@ -279,6 +279,8 @@ template <class UNIT, class FILTER>
+ class RootFilterConstIterator : public internal::IteratorBase< UNIT, FILTER >
+ {
+   public:
++    typedef UNIT                                    unit_type;
++
+     typedef RootFilterConstIterator<UNIT,FILTER>    self;
+ 
+                         RootFilterConstIterator(
+@@ -290,7 +292,7 @@ class RootFilterConstIterator : public i
+                                     i_rOther.CurPosition() ) {}
+ 
+     const unit_type &   operator*() const       /// @precond bool(*this);
+-                                                { return CurUnit(); }
++                                                { return this->CurUnit(); }
+     self &              operator=(
+                             const RootConstIterator<UNIT> &
+                                                 i_rOther )
+@@ -307,6 +309,9 @@ template <class UNIT, class FILTER>
+ class RootFilterIterator : public internal::IteratorBase< UNIT, FILTER >
+ {
+   public:
++    typedef UNIT                                    unit_type;
++    typedef RootFilterConstIterator<UNIT,FILTER>    self;
++
+                         RootFilterIterator(
+                             const RootIterator<UNIT> &
+                                                 i_rOther )
+--- ../autodoc/source/ary/store/t_storg.hxx.orig       2003-07-02 13:49:27.000000000 +0000
++++ ../autodoc/source/ary/store/t_storg.hxx    2008-01-25 18:36:50.000000000 +0000
+@@ -131,8 +131,8 @@ RE &
+ StdReStorage<RE>::do_Add( const KEY &         i_rKey,
+                                                 DYN RE &            let_drElement )
+ {
+-      std::pair<DataBase::iterator, bool> result
+-                      = aDataBase.insert(DataBase::value_type(i_rKey, &let_drElement));
++      std::pair<typename DataBase::iterator, bool> result;
++      result = aDataBase.insert(typename DataBase::value_type(i_rKey, &let_drElement));
+       if (result.second == false)
+               delete &let_drElement;
+       return *(*result.first).second;
+--- ../autodoc/source/ary/store/ti_storg.hxx.orig      2002-03-08 14:45:20.000000000 +0000
++++ ../autodoc/source/ary/store/ti_storg.hxx   2008-01-25 18:33:37.000000000 +0000
+@@ -124,7 +124,7 @@ class ReStorage
+ template <class RE>
+ inline const RE &
+ ReStorage<RE>::operator[]( const KEY & i_rKey ) const
+-    { const RE * ret = inq_Find(i_rKey);
++    { const RE * ret = this->inq_Find(i_rKey);
+       csv_assert(ret != 0);
+       return *ret;
+     }
+--- ../autodoc/source/inc/estack.hxx.orig      2003-06-30 15:27:34.000000000 +0000
++++ ../autodoc/source/inc/estack.hxx   2008-01-25 18:38:07.000000000 +0000
+@@ -98,11 +98,11 @@ class EStack : private std::slist<ELEM>
+     bool                operator==(
+                             const EStack<ELEM> &
+                                                 i_r2 ) const
+-                                                { return std::operator==( Base(), i_rStack.Base() ); }
++                                                { return std::operator==( Base(), this->i_rStack.Base() ); }
+     bool                operator<(
+                             const EStack<ELEM> &
+                                                 i_r2 ) const
+-                                                { return std::operator<( Base(), i_rStack.Base() ); }
++                                                { return std::operator<( Base(), this->i_rStack.Base() ); }
+     // OPERATIONS
+     void                push(
+                             const value_type &  i_rElem )
+--- ../autodoc/source/parser_i/idl/tk_keyw.cxx.orig    2002-11-01 17:15:41.000000000 +0000
++++ ../autodoc/source/parser_i/idl/tk_keyw.cxx 2008-01-25 18:43:36.000000000 +0000
+@@ -137,15 +137,15 @@ TokParameterHandling::EV_TokenId         ev_p
+ namespace lux
+ {
+ 
+-EnumValueMap &
++template<> EnumValueMap &
+ TokBuiltInType::EV_TokenId::Values_()         { return G_aTokBuiltInType_EV_TokenId_Values; }
+-EnumValueMap &
++template<> EnumValueMap &
+ TokTypeModifier::EV_TokenId::Values_()                { return G_aTokTypeModifier_EV_TokenId_Values; }
+-EnumValueMap &
++template<> EnumValueMap &
+ TokMetaType::EV_TokenId::Values_()                    { return G_aTokMetaType_EV_TokenId_Values; }
+-EnumValueMap &
++template<> EnumValueMap &
+ TokStereotype::EV_TokenId::Values_()          { return G_aTokStereotype_EV_TokenId_Values; }
+-EnumValueMap &
++template<> EnumValueMap &
+ TokParameterHandling::EV_TokenId::Values_()   { return G_aTokParameterHandling_EV_TokenId_Values; }
+ 
+ }   // namespace lux
+--- ../autodoc/source/parser_i/idl/tk_punct.cxx.orig   2004-03-25 11:33:03.000000000 +0000
++++ ../autodoc/source/parser_i/idl/tk_punct.cxx        2008-01-25 19:00:15.000000000 +0000
+@@ -90,6 +90,7 @@ TokPunctuation::EV_TokenId  Fullstop(Tok
+ 
+ namespace lux
+ {
++template<>
+ EnumValueMap &
+ TokPunctuation::EV_TokenId::Values_()         { return G_aTokPunctuation_EV_TokenId_Values; }
+ }
+--- ../autodoc/source/parser_i/idoc/tk_atag2.cxx.orig  2003-06-10 11:35:20.000000000 +0000
++++ ../autodoc/source/parser_i/idoc/tk_atag2.cxx       2008-01-25 19:00:46.000000000 +0000
+@@ -90,6 +90,7 @@ Tok_AtTag::EV_TokenId ev_since(Tok_AtTag
+ 
+ namespace lux
+ {
++template<>
+ EnumValueMap &
+ Tok_AtTag::EV_TokenId::Values_()      { return G_aTokAtTag_EV_TokenId_Values; }
+ }
+--- ../autodoc/source/parser_i/idoc/tk_xml.cxx.orig    2002-05-14 09:02:21.000000000 +0000
++++ ../autodoc/source/parser_i/idoc/tk_xml.cxx 2008-01-25 19:01:10.000000000 +0000
+@@ -94,11 +94,11 @@ Tok_XmlFormat_Tag::EV_TokenId   ev_atom(
+ namespace lux
+ {
+ 
+-EnumValueMap &
++template<> EnumValueMap &
+ Tok_XmlConst::EV_TokenId::Values_()           { return G_aTok_XmlConst_EV_TokenId_Values; }
+-EnumValueMap &
++template<> EnumValueMap &
+ Tok_XmlLink_Tag::EV_TokenId::Values_()            { return G_aTok_XmlLink_Tag_EV_TokenId_Values; }
+-EnumValueMap &
++template<> EnumValueMap &
+ Tok_XmlFormat_Tag::EV_TokenId::Values_()      { return G_aTok_XmlFormat_Tag_EV_TokenId_Values; }
+ 
+ }   // namespace lux
+--- ../sal/inc/osl/mutex.hxx.orig      2003-04-04 17:10:54.000000000 +0000
++++ ../sal/inc/osl/mutex.hxx   2008-01-25 19:18:01.000000000 +0000
+@@ -245,8 +245,8 @@ namespace osl
+         {
+             if( pResetT )
+             {
+-                pT = pResetT;
+-                pT->acquire();
++                this->pT = pResetT;
++                this->pT->acquire();
+             }
+         }
+     };
+--- ../sal/textenc/convertbig5hkscs.c.orig     2002-02-25 15:07:48.000000000 +0000
++++ ../sal/textenc/convertbig5hkscs.c  2008-01-25 19:25:28.000000000 +0000
+@@ -139,7 +139,7 @@ sal_Size ImplConvertBig5HkscsToUnicode(I
+     for (; nConverted < nSrcBytes; ++nConverted)
+     {
+         sal_Bool bUndefined = sal_True;
+-        sal_uInt32 nChar = *((sal_uChar const *) pSrcBuf)++;
++        sal_uInt32 nChar = *(*((sal_uChar const **) pSrcBuf))++;
+         if (nRow == 0)
+             if (nChar < 0x80)
+                 if (pDestBufPtr != pDestBufEnd)
+--- ../sal/textenc/converteuctw.c.orig 2001-11-19 17:46:37.000000000 +0000
++++ ../sal/textenc/converteuctw.c      2008-01-25 19:26:34.000000000 +0000
+@@ -154,7 +154,7 @@ sal_Size ImplConvertEucTwToUnicode(ImplT
+     for (; nConverted < nSrcBytes; ++nConverted)
+     {
+         sal_Bool bUndefined = sal_True;
+-        sal_uInt32 nChar = *((sal_uChar const *) pSrcBuf)++;
++        sal_uInt32 nChar = *(*((sal_uChar const **) pSrcBuf))++;
+         switch (eState)
+         {
+         case IMPL_EUC_TW_TO_UNICODE_STATE_0:
+--- ../sal/textenc/convertgb18030.c.orig       2001-11-19 17:46:37.000000000 +0000
++++ ../sal/textenc/convertgb18030.c    2008-01-25 19:27:01.000000000 +0000
+@@ -147,7 +147,7 @@ sal_Size ImplConvertGb18030ToUnicode(Imp
+     for (; nConverted < nSrcBytes; ++nConverted)
+     {
+         sal_Bool bUndefined = sal_True;
+-        sal_uInt32 nChar = *((sal_uChar const *) pSrcBuf)++;
++        sal_uInt32 nChar = *(*((sal_uChar const **) pSrcBuf))++;
+         switch (eState)
+         {
+         case IMPL_GB_18030_TO_UNICODE_STATE_0:
+--- ../sal/textenc/convertiso2022cn.c.orig     2001-11-23 09:42:41.000000000 +0000
++++ ../sal/textenc/convertiso2022cn.c  2008-01-25 19:27:36.000000000 +0000
+@@ -187,7 +187,7 @@ sal_Size ImplConvertIso2022CnToUnicode(I
+     for (; nConverted < nSrcBytes; ++nConverted)
+     {
+         sal_Bool bUndefined = sal_True;
+-        sal_uInt32 nChar = *((sal_uChar const *) pSrcBuf)++;
++        sal_uInt32 nChar = *(*((sal_uChar const **) pSrcBuf))++;
+         sal_uInt32 nPlane;
+         switch (eState)
+         {
+--- ../sal/textenc/convertiso2022jp.c.orig     2001-11-23 09:42:42.000000000 +0000
++++ ../sal/textenc/convertiso2022jp.c  2008-01-25 19:28:17.000000000 +0000
+@@ -162,7 +162,7 @@ sal_Size ImplConvertIso2022JpToUnicode(I
+     for (; nConverted < nSrcBytes; ++nConverted)
+     {
+         sal_Bool bUndefined = sal_True;
+-        sal_uInt32 nChar = *((sal_uChar const *) pSrcBuf)++;
++        sal_uInt32 nChar = *(*((sal_uChar const **) pSrcBuf))++;
+         switch (eState)
+         {



Home | Main Index | Thread Index | Old Index