diff options
author | 2008-11-28 03:29:53 +0000 | |
---|---|---|
committer | 2008-11-28 03:29:53 +0000 | |
commit | 4ea9ea7f4ecf8be4a59465b4b1521f006162981e (patch) | |
tree | ee33f0982f788947a02207feacadc64789c0e9f5 /app-office | |
parent | Version bump for bug fixes and translation updates (diff) | |
download | historical-4ea9ea7f4ecf8be4a59465b4b1521f006162981e.tar.gz historical-4ea9ea7f4ecf8be4a59465b4b1521f006162981e.tar.bz2 historical-4ea9ea7f4ecf8be4a59465b4b1521f006162981e.zip |
Fix building w/ gcc-4.3. Bug #228839.
Package-Manager: portage-2.2_rc16/cvs/Linux 2.6.27-gentoo-r4 x86_64
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/koffice/ChangeLog | 8 | ||||
-rw-r--r-- | app-office/koffice/Manifest | 15 | ||||
-rw-r--r-- | app-office/koffice/files/koffice-1.6.3-gcc43.patch | 167 | ||||
-rw-r--r-- | app-office/koffice/koffice-1.6.3-r2.ebuild | 7 |
4 files changed, 190 insertions, 7 deletions
diff --git a/app-office/koffice/ChangeLog b/app-office/koffice/ChangeLog index 9e0cb3f3d36b..c22d2edfe81a 100644 --- a/app-office/koffice/ChangeLog +++ b/app-office/koffice/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-office/koffice -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/ChangeLog,v 1.241 2007/11/18 08:59:45 dertobi123 Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/ChangeLog,v 1.242 2008/11/28 03:29:52 dirtyepic Exp $ + + 28 Nov 2008; Ryan Hill <dirtyepic@gentoo.org> + +files/koffice-1.6.3-gcc43.patch, koffice-1.6.3-r2.ebuild: + Fix building w/ gcc-4.3. Bug #228839. 18 Nov 2007; Tobias Scherbaum <dertobi123@gentoo.org> koffice-1.6.3-r2.ebuild: diff --git a/app-office/koffice/Manifest b/app-office/koffice/Manifest index 618b1b1d10ee..b192425dc8f1 100644 --- a/app-office/koffice/Manifest +++ b/app-office/koffice/Manifest @@ -1,3 +1,7 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX koffice-1.6.3-gcc43.patch 7295 RMD160 ca71ff7040b730430e9204f7ea0444ce12871bd4 SHA1 d52967622a661a842e6654250bc9956bf29c217f SHA256 28ea09e20e21c358294ecacec473d21178f023bfb9b360711835b114f6f61a18 AUX koffice-1.6.3-xpdf2-CVE-2007-4352-5392-5393.diff 15961 RMD160 ab6ec62b1ee7c369e8a6f44ba285a56b8c5439b4 SHA1 a3d1d85567ccf729a2237f4aa837f7e025ce00ae SHA256 ed9b3ee5b1590aae930dc2829b9a463fac9cee5ab3e412423a4991109f507942 AUX koffice-xpdf-CVE-2007-0104.diff 3185 RMD160 1ea990a06dfdc709362a6cb0fbb69851da86a3d6 SHA1 bef37ffafbae9a509363f7bc63806ab7162576b9 SHA256 36585b64bc23c9e352c0ff4edff9788add81381049dff5ae1d9de708f9696bfe AUX koffice-xpdf-CVE-2007-3387.diff 601 RMD160 7f620ec00ca05da91596f2d750d32ed8aa8bec95 SHA1 bff4f540389a77320bc87e2dedece50b82932e59 SHA256 8f4df5133452dba1469ec605393503d2b233d7aaccbbee0e5e42b79c24be9062 @@ -5,7 +9,14 @@ DIST koffice-1.6.1.tar.bz2 56999028 RMD160 ee4fa84a53f92035c0ab9427e0acb18feca70 DIST koffice-1.6.3.tar.bz2 56829391 RMD160 e474ba48fa983fafb61ad58fb79cddda69ec6908 SHA1 de84214dec913eac1d47dab04dd93f3d81729fd3 SHA256 c3975f0a59f50aaa5547f1709b6fad54f746fd06815859b374676b426dce12cb EBUILD koffice-1.6.1-r1.ebuild 2403 RMD160 b124ec23e81e94fda95f80ae95c1f2d06094b461 SHA1 6f79262023105493ce9e3b224a55674340f9277f SHA256 b5f2c1ac6398cdee25cb54aea75daec2b3703ee4dbb6dc974562db89deafd061 EBUILD koffice-1.6.3-r1.ebuild 2718 RMD160 719d421de90c38229efb6ca0866b7c56789f80cb SHA1 740651d8176857f7cc4537de1f6093a95191a433 SHA256 b3941b1f5cc83a3c99e91b07e2fd04575635dd03bac210f740594b963c37f168 -EBUILD koffice-1.6.3-r2.ebuild 3810 RMD160 542be2890f4ed5fd1c207c5c8b60810f5e44b79d SHA1 3a722eb1abe8853e2faae977f17c930deb05df06 SHA256 4dec6e8c41e9a5f82fed432c43c9e5d9115f9a3fe817aa2e31476f68d64bab99 +EBUILD koffice-1.6.3-r2.ebuild 3840 RMD160 40666fa7501de4c2fb365fcc2c3fbdc3dd449242 SHA1 bd974b2eac9d2ee7af41aebc0e22841c4986f1fc SHA256 dd20299f5fe3325c456cee054e475065562b118b11213f3c2c83124c06bc88d1 EBUILD koffice-1.6.3.ebuild 2660 RMD160 eb5c3453afe2f9c8e512dc4e9926161e7cd6c584 SHA1 f6e339d473fba214531a0a9cf30906216d70b375 SHA256 30da63070d354f18b821eb78bf1057f2688cbec2be296c6cc10dd946c5e2fb17 -MISC ChangeLog 33644 RMD160 d40966341bd909bedfc37b338c29ace4a3ed63d8 SHA1 52c174678828449558e233fe28c64964e2f37fd3 SHA256 201edbfcb3f76123d87f1de12ada2fc4f696ad3e7959ea273672901e4a6044e6 +MISC ChangeLog 33793 RMD160 88676168d42644051cf0b511afa71a0b8ba9bcb4 SHA1 c9ab2b6266006e2744e03c470dbb7786269d5dba SHA256 7d7a8dc2e502d3fa39bf0bb8f51abd3c2a928df682f22d0c9546b42bff46d87e MISC metadata.xml 156 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 SHA1 b64f7c0b4e5db816d82ad19848f72118af129d35 SHA256 2f4da28506b9d4185f320f67a6191d30c7a921217ed4447ed46ea0bc4aefc79a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAkkvZboACgkQiqiDRvmkBmL5ogCgwuR8VHVNwB8R3fuiOu4ZtOZO +Ll8AnR2FTUSJKbrtoD9GnnKNOuiIjRBJ +=sOAY +-----END PGP SIGNATURE----- diff --git a/app-office/koffice/files/koffice-1.6.3-gcc43.patch b/app-office/koffice/files/koffice-1.6.3-gcc43.patch new file mode 100644 index 000000000000..8f1109615dc2 --- /dev/null +++ b/app-office/koffice/files/koffice-1.6.3-gcc43.patch @@ -0,0 +1,167 @@ +diff -Naurp koffice-1.6.3-orig/filters/kpresenter/powerpoint/libppt/pole.cpp koffice-1.6.3/filters/kpresenter/powerpoint/libppt/pole.cpp +--- koffice-1.6.3-orig/filters/kpresenter/powerpoint/libppt/pole.cpp 2007-05-30 15:38:58.000000000 -0600 ++++ koffice-1.6.3/filters/kpresenter/powerpoint/libppt/pole.cpp 2008-11-22 16:45:05.000000000 -0600 +@@ -32,6 +32,8 @@ + #include <string> + #include <vector> + ++#include <string.h> ++ + #include "pole.h" + + // enable to activate debugging output +diff -Naurp koffice-1.6.3-orig/filters/kword/wordperfect/import/TableStyle.cxx koffice-1.6.3/filters/kword/wordperfect/import/TableStyle.cxx +--- koffice-1.6.3-orig/filters/kword/wordperfect/import/TableStyle.cxx 2007-05-30 15:39:02.000000000 -0600 ++++ koffice-1.6.3/filters/kword/wordperfect/import/TableStyle.cxx 2008-11-22 16:47:47.000000000 -0600 +@@ -36,6 +36,8 @@ + #include <minmax.h> + #endif + ++#include <cstring> ++ + TableCellStyle::TableCellStyle(const WPXPropertyList &xPropList, const char *psName) : + Style(psName), + mPropList(xPropList) +diff -Naurp koffice-1.6.3-orig/filters/kword/wordperfect/import/TextRunStyle.cxx koffice-1.6.3/filters/kword/wordperfect/import/TextRunStyle.cxx +--- koffice-1.6.3-orig/filters/kword/wordperfect/import/TextRunStyle.cxx 2007-05-30 15:39:02.000000000 -0600 ++++ koffice-1.6.3/filters/kword/wordperfect/import/TextRunStyle.cxx 2008-11-22 16:48:30.000000000 -0600 +@@ -37,6 +37,8 @@ + #include <minmax.h> + #endif + ++#include <cstring> ++ + ParagraphStyle::ParagraphStyle(WPXPropertyList *pPropList, const WPXPropertyListVector &xTabStops, const WPXString &sName) : + mpPropList(pPropList), + mxTabStops(xTabStops), +diff -Naurp koffice-1.6.3-orig/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp koffice-1.6.3/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp +--- koffice-1.6.3-orig/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2007-05-30 15:35:49.000000000 -0600 ++++ koffice-1.6.3/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2008-11-22 16:50:24.000000000 -0600 +@@ -26,6 +26,7 @@ + + #include <klocale.h> + #include <kdebug.h> ++#include <stdlib.h> + + using namespace KexiDB; + +diff -Naurp koffice-1.6.3-orig/krita/core/kis_perspective_math.cpp koffice-1.6.3/krita/core/kis_perspective_math.cpp +--- koffice-1.6.3-orig/krita/core/kis_perspective_math.cpp 2007-05-30 15:40:31.000000000 -0600 ++++ koffice-1.6.3/krita/core/kis_perspective_math.cpp 2008-11-22 16:52:47.000000000 -0600 +@@ -24,7 +24,7 @@ + + #if 1 + +-#include <iostream.h> ++#include <iostream> + #include <stdlib.h> + #include <math.h> + //#define NDEBUG // uncomment to remove checking of assert() +@@ -57,9 +57,9 @@ template <class ElType> + void rprint()const; //print entries on a single line + void resize(int n); + int operator==(const vector<ElType>& v)const; +- friend vector<ElType> operator*(ElType c,vector<ElType>& v ); +- friend vector<ElType> operator*(vector<ElType>& v,ElType c ); +- friend ostream& operator<<(ostream& s,vector<ElType>& v); ++ friend vector<ElType> operator* (ElType c,vector<ElType>& v ); ++ friend vector<ElType> operator*(vector<ElType>& v,ElType c ); ++ friend std::ostream& operator<<(std::ostream& s,vector<ElType>& v); + }; + template <class ElType> + void vector<ElType>::zero() +@@ -129,10 +129,10 @@ template <class ElType> + void vector<ElType>::rprint()const //print entries on a single line + { + int i; +- cout << "VECTOR: "; +- cout << "("; +- for(i=0;i<len-1;i++) cout << data[i] << ","; +- cout << data[len-1] << ")" << endl; ++ std::cout << "VECTOR: "; ++ std::cout << "("; ++ for(i=0;i<len-1;i++) std::cout << data[i] << ","; ++ std::cout << data[len-1] << ")" << std::endl; + return; + } + template <class ElType> +@@ -164,7 +164,7 @@ template <class ElType> + return ans; + } + template <class ElType> +- ostream& operator<<(ostream& s,vector<ElType>& v) ++ std::ostream& operator<<(std::ostream& s,vector<ElType>& v) + { + s << "("; + for(int i=0;i<v.len-1;i++) s << v.data[i] << ", "; +@@ -192,7 +192,7 @@ template <class ElType> + matrix<ElType> operator-(const matrix<ElType>& a); + matrix<ElType> transpose(); + //matrix<ElType> inverse(); +- friend ostream& operator<<(ostream& s,matrix<ElType>& m); ++ friend std::ostream& operator<<(std::ostream& s,matrix<ElType>& m); + friend void ludcmp(matrix<ElType>& a,vector<int>& indx,double &d); + friend void lubksb(matrix<ElType>&a,vector<int>& indx,vector<ElType>&b); + }; +@@ -357,7 +357,7 @@ template <class ElType> + return ans; + } + template <class ElType> +- ostream& operator<<(ostream& s,matrix<ElType>& m) ++ std::ostream& operator<<(std::ostream& s,matrix<ElType>& m) + { + for(int i=0; i<m.rows;i++) s << m[i]; + return s; +@@ -381,7 +381,7 @@ void ludcmp(matrix<ElType>& a, vector<in + // kdDebug() << "new search" << endl; + for (j=0;j<n;j++) { if ((temp=fabs(a[i][j])) > big) big=temp; + /* kdDebug() << temp << " " << fabs(a[i][j]) << " "<< big <<endl; */} +- if (big == 0.0) { cerr << "Singular matrix in routine LUDCMP" << endl; big = TINY;} ++ if (big == 0.0) { std::cerr << "Singular matrix in routine LUDCMP" << std::endl; big = TINY;} + vv[i]=1.0/big; + } + for (j=0;j<n;j++) +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 +--- koffice-1.6.3-orig/kspread/plugins/scripting/kspreadcore/krs_cell.cpp 2007-05-30 15:43:20.000000000 -0600 ++++ koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.cpp 2008-11-22 16:55:43.000000000 -0600 +@@ -174,12 +174,7 @@ const QString Cell::text() const { + return m_cell->text(); + } + +-bool Cell::setText(const QString& text, bool asString) { +- +- //FIXME: there is some problem with asString parameter, when it's set +- //to true KSpread says: ASSERT: "f" in Dependencies.cpp (621) +- //kspread: Cell at row 6, col 1 marked as formula, but formula is NULL +- ++bool Cell::setText(const QString& text) { + KSpread::ProtectedCheck prot; + prot.setSheet (m_sheet); + prot.add (QPoint (m_col, m_row)); +@@ -189,7 +184,7 @@ bool Cell::setText(const QString& text, + KSpread::DataManipulator *dm = new KSpread::DataManipulator (); + dm->setSheet (m_sheet); + dm->setValue (text); +- dm->setParsing (!asString); ++ dm->setParsing (true); + dm->add (QPoint (m_col, m_row)); + dm->execute (); + +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 +--- koffice-1.6.3-orig/kspread/plugins/scripting/kspreadcore/krs_cell.h 2007-05-30 15:43:20.000000000 -0600 ++++ koffice-1.6.3/kspread/plugins/scripting/kspreadcore/krs_cell.h 2008-11-22 16:56:56.000000000 -0600 +@@ -131,11 +131,10 @@ class Cell : public Kross::Api::Class<Ce + */ + const QString text() const; + /** +- * Set the text of the cell. If asString is true, the text +- * will be handled as string else we try to parse the +- * string to the expected value. ++ * Set the text of the cell. the text ++ * will be handled as string + */ +- bool setText(const QString& text, bool asString = false); ++ bool setText(const QString& text); + + /** + * Return the textcolor as RGB-value in the format "#RRGGBB". diff --git a/app-office/koffice/koffice-1.6.3-r2.ebuild b/app-office/koffice/koffice-1.6.3-r2.ebuild index 087dfb076a98..b600d17d713b 100644 --- a/app-office/koffice/koffice-1.6.3-r2.ebuild +++ b/app-office/koffice/koffice-1.6.3-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.6.3-r2.ebuild,v 1.7 2007/11/18 08:59:45 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.6.3-r2.ebuild,v 1.8 2008/11/28 03:29:52 dirtyepic Exp $ inherit kde @@ -60,7 +60,8 @@ need-kde 3.45 # and for kivio/kiviopart/kiviosdk. PATCHES="${FILESDIR}/koffice-xpdf-CVE-2007-3387.diff - ${FILESDIR}/koffice-1.6.3-xpdf2-CVE-2007-4352-5392-5393.diff" + ${FILESDIR}/koffice-1.6.3-xpdf2-CVE-2007-4352-5392-5393.diff + ${FILESDIR}/${P}-gcc43.patch" pkg_setup() { # use opengl && |