1 |
dirtyepic 08/11/28 03:29:53 |
2 |
|
3 |
Added: koffice-1.6.3-gcc43.patch |
4 |
Log: |
5 |
Fix building w/ gcc-4.3. Bug #228839. |
6 |
(Portage version: 2.2_rc16/cvs/Linux 2.6.27-gentoo-r4 x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 app-office/koffice/files/koffice-1.6.3-gcc43.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/koffice/files/koffice-1.6.3-gcc43.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/koffice/files/koffice-1.6.3-gcc43.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: koffice-1.6.3-gcc43.patch |
15 |
=================================================================== |
16 |
diff -Naurp koffice-1.6.3-orig/filters/kpresenter/powerpoint/libppt/pole.cpp koffice-1.6.3/filters/kpresenter/powerpoint/libppt/pole.cpp |
17 |
--- koffice-1.6.3-orig/filters/kpresenter/powerpoint/libppt/pole.cpp 2007-05-30 15:38:58.000000000 -0600 |
18 |
+++ koffice-1.6.3/filters/kpresenter/powerpoint/libppt/pole.cpp 2008-11-22 16:45:05.000000000 -0600 |
19 |
@@ -32,6 +32,8 @@ |
20 |
#include <string> |
21 |
#include <vector> |
22 |
|
23 |
+#include <string.h> |
24 |
+ |
25 |
#include "pole.h" |
26 |
|
27 |
// enable to activate debugging output |
28 |
diff -Naurp koffice-1.6.3-orig/filters/kword/wordperfect/import/TableStyle.cxx koffice-1.6.3/filters/kword/wordperfect/import/TableStyle.cxx |
29 |
--- koffice-1.6.3-orig/filters/kword/wordperfect/import/TableStyle.cxx 2007-05-30 15:39:02.000000000 -0600 |
30 |
+++ koffice-1.6.3/filters/kword/wordperfect/import/TableStyle.cxx 2008-11-22 16:47:47.000000000 -0600 |
31 |
@@ -36,6 +36,8 @@ |
32 |
#include <minmax.h> |
33 |
#endif |
34 |
|
35 |
+#include <cstring> |
36 |
+ |
37 |
TableCellStyle::TableCellStyle(const WPXPropertyList &xPropList, const char *psName) : |
38 |
Style(psName), |
39 |
mPropList(xPropList) |
40 |
diff -Naurp koffice-1.6.3-orig/filters/kword/wordperfect/import/TextRunStyle.cxx koffice-1.6.3/filters/kword/wordperfect/import/TextRunStyle.cxx |
41 |
--- koffice-1.6.3-orig/filters/kword/wordperfect/import/TextRunStyle.cxx 2007-05-30 15:39:02.000000000 -0600 |
42 |
+++ koffice-1.6.3/filters/kword/wordperfect/import/TextRunStyle.cxx 2008-11-22 16:48:30.000000000 -0600 |
43 |
@@ -37,6 +37,8 @@ |
44 |
#include <minmax.h> |
45 |
#endif |
46 |
|
47 |
+#include <cstring> |
48 |
+ |
49 |
ParagraphStyle::ParagraphStyle(WPXPropertyList *pPropList, const WPXPropertyListVector &xTabStops, const WPXString &sName) : |
50 |
mpPropList(pPropList), |
51 |
mxTabStops(xTabStops), |
52 |
diff -Naurp koffice-1.6.3-orig/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp koffice-1.6.3/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp |
53 |
--- koffice-1.6.3-orig/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2007-05-30 15:35:49.000000000 -0600 |
54 |
+++ koffice-1.6.3/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2008-11-22 16:50:24.000000000 -0600 |
55 |
@@ -26,6 +26,7 @@ |
56 |
|
57 |
#include <klocale.h> |
58 |
#include <kdebug.h> |
59 |
+#include <stdlib.h> |
60 |
|
61 |
using namespace KexiDB; |
62 |
|
63 |
diff -Naurp koffice-1.6.3-orig/krita/core/kis_perspective_math.cpp koffice-1.6.3/krita/core/kis_perspective_math.cpp |
64 |
--- koffice-1.6.3-orig/krita/core/kis_perspective_math.cpp 2007-05-30 15:40:31.000000000 -0600 |
65 |
+++ koffice-1.6.3/krita/core/kis_perspective_math.cpp 2008-11-22 16:52:47.000000000 -0600 |
66 |
@@ -24,7 +24,7 @@ |
67 |
|
68 |
#if 1 |
69 |
|
70 |
-#include <iostream.h> |
71 |
+#include <iostream> |
72 |
#include <stdlib.h> |
73 |
#include <math.h> |
74 |
//#define NDEBUG // uncomment to remove checking of assert() |
75 |
@@ -57,9 +57,9 @@ template <class ElType> |
76 |
void rprint()const; //print entries on a single line |
77 |
void resize(int n); |
78 |
int operator==(const vector<ElType>& v)const; |
79 |
- friend vector<ElType> operator*(ElType c,vector<ElType>& v ); |
80 |
- friend vector<ElType> operator*(vector<ElType>& v,ElType c ); |
81 |
- friend ostream& operator<<(ostream& s,vector<ElType>& v); |
82 |
+ friend vector<ElType> operator* (ElType c,vector<ElType>& v ); |
83 |
+ friend vector<ElType> operator*(vector<ElType>& v,ElType c ); |
84 |
+ friend std::ostream& operator<<(std::ostream& s,vector<ElType>& v); |
85 |
}; |
86 |
template <class ElType> |
87 |
void vector<ElType>::zero() |
88 |
@@ -129,10 +129,10 @@ template <class ElType> |
89 |
void vector<ElType>::rprint()const //print entries on a single line |
90 |
{ |
91 |
int i; |
92 |
- cout << "VECTOR: "; |
93 |
- cout << "("; |
94 |
- for(i=0;i<len-1;i++) cout << data[i] << ","; |
95 |
- cout << data[len-1] << ")" << endl; |
96 |
+ std::cout << "VECTOR: "; |
97 |
+ std::cout << "("; |
98 |
+ for(i=0;i<len-1;i++) std::cout << data[i] << ","; |
99 |
+ std::cout << data[len-1] << ")" << std::endl; |
100 |
return; |
101 |
} |
102 |
template <class ElType> |
103 |
@@ -164,7 +164,7 @@ template <class ElType> |
104 |
return ans; |
105 |
} |
106 |
template <class ElType> |
107 |
- ostream& operator<<(ostream& s,vector<ElType>& v) |
108 |
+ std::ostream& operator<<(std::ostream& s,vector<ElType>& v) |
109 |
{ |
110 |
s << "("; |
111 |
for(int i=0;i<v.len-1;i++) s << v.data[i] << ", "; |
112 |
@@ -192,7 +192,7 @@ template <class ElType> |
113 |
matrix<ElType> operator-(const matrix<ElType>& a); |
114 |
matrix<ElType> transpose(); |
115 |
//matrix<ElType> inverse(); |
116 |
- friend ostream& operator<<(ostream& s,matrix<ElType>& m); |
117 |
+ friend std::ostream& operator<<(std::ostream& s,matrix<ElType>& m); |
118 |
friend void ludcmp(matrix<ElType>& a,vector<int>& indx,double &d); |
119 |
friend void lubksb(matrix<ElType>&a,vector<int>& indx,vector<ElType>&b); |
120 |
}; |
121 |
@@ -357,7 +357,7 @@ template <class ElType> |
122 |
return ans; |
123 |
} |
124 |
template <class ElType> |
125 |
- ostream& operator<<(ostream& s,matrix<ElType>& m) |
126 |
+ std::ostream& operator<<(std::ostream& s,matrix<ElType>& m) |
127 |
{ |
128 |
for(int i=0; i<m.rows;i++) s << m[i]; |
129 |
return s; |
130 |
@@ -381,7 +381,7 @@ void ludcmp(matrix<ElType>& a, vector<in |
131 |
// kdDebug() << "new search" << endl; |
132 |
for (j=0;j<n;j++) { if ((temp=fabs(a[i][j])) > big) big=temp; |
133 |
/* kdDebug() << temp << " " << fabs(a[i][j]) << " "<< big <<endl; */} |
134 |
- if (big == 0.0) { cerr << "Singular matrix in routine LUDCMP" << endl; big = TINY;} |
135 |
+ if (big == 0.0) { std::cerr << "Singular matrix in routine LUDCMP" << std::endl; big = TINY;} |
136 |
vv[i]=1.0/big; |
137 |
} |
138 |
for (j=0;j<n;j++) |
139 |
diff -Naurp koffice-1.6.3-orig/kspread/plugins/scripting/kspreadcore/krs_cell.cpp koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.cpp |
140 |
--- koffice-1.6.3-orig/kspread/plugins/scripting/kspreadcore/krs_cell.cpp 2007-05-30 15:43:20.000000000 -0600 |
141 |
+++ koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.cpp 2008-11-22 16:55:43.000000000 -0600 |
142 |
@@ -174,12 +174,7 @@ const QString Cell::text() const { |
143 |
return m_cell->text(); |
144 |
} |
145 |
|
146 |
-bool Cell::setText(const QString& text, bool asString) { |
147 |
- |
148 |
- //FIXME: there is some problem with asString parameter, when it's set |
149 |
- //to true KSpread says: ASSERT: "f" in Dependencies.cpp (621) |
150 |
- //kspread: Cell at row 6, col 1 marked as formula, but formula is NULL |
151 |
- |
152 |
+bool Cell::setText(const QString& text) { |
153 |
KSpread::ProtectedCheck prot; |
154 |
prot.setSheet (m_sheet); |
155 |
prot.add (QPoint (m_col, m_row)); |
156 |
@@ -189,7 +184,7 @@ bool Cell::setText(const QString& text, |
157 |
KSpread::DataManipulator *dm = new KSpread::DataManipulator (); |
158 |
dm->setSheet (m_sheet); |
159 |
dm->setValue (text); |
160 |
- dm->setParsing (!asString); |
161 |
+ dm->setParsing (true); |
162 |
dm->add (QPoint (m_col, m_row)); |
163 |
dm->execute (); |
164 |
|
165 |
diff -Naurp koffice-1.6.3-orig/kspread/plugins/scripting/kspreadcore/krs_cell.h koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.h |
166 |
--- koffice-1.6.3-orig/kspread/plugins/scripting/kspreadcore/krs_cell.h 2007-05-30 15:43:20.000000000 -0600 |
167 |
+++ koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.h 2008-11-22 16:56:56.000000000 -0600 |
168 |
@@ -131,11 +131,10 @@ class Cell : public Kross::Api::Class<Ce |
169 |
*/ |
170 |
const QString text() const; |
171 |
/** |
172 |
- * Set the text of the cell. If asString is true, the text |
173 |
- * will be handled as string else we try to parse the |
174 |
- * string to the expected value. |
175 |
+ * Set the text of the cell. the text |
176 |
+ * will be handled as string |
177 |
*/ |
178 |
- bool setText(const QString& text, bool asString = false); |
179 |
+ bool setText(const QString& text); |
180 |
|
181 |
/** |
182 |
* Return the textcolor as RGB-value in the format "#RRGGBB". |