diff options
author | Carsten Lohrke <carlo@gentoo.org> | 2009-02-09 00:51:57 +0000 |
---|---|---|
committer | Carsten Lohrke <carlo@gentoo.org> | 2009-02-09 00:51:57 +0000 |
commit | f9481ed371d70914516bfdf6e1770dfbe29ab08f (patch) | |
tree | 99ff4095342127004bd2b02566d04915603161c3 /media-gfx/showimg/files | |
parent | Cleanup ebuild a bit. (diff) | |
download | gentoo-2-f9481ed371d70914516bfdf6e1770dfbe29ab08f.tar.gz gentoo-2-f9481ed371d70914516bfdf6e1770dfbe29ab08f.tar.bz2 gentoo-2-f9481ed371d70914516bfdf6e1770dfbe29ab08f.zip |
Fix bug #229093 and #226421. Get rid of the invalid aRts dependency.
(Portage version: 2.2_rc23/cvs/Linux i686)
Diffstat (limited to 'media-gfx/showimg/files')
-rw-r--r-- | media-gfx/showimg/files/showimg-0.9.5-gcc-4.3.patch | 59 | ||||
-rw-r--r-- | media-gfx/showimg/files/showimg-0.9.5-libpqxx-2.6.9.diff | 109 |
2 files changed, 168 insertions, 0 deletions
diff --git a/media-gfx/showimg/files/showimg-0.9.5-gcc-4.3.patch b/media-gfx/showimg/files/showimg-0.9.5-gcc-4.3.patch new file mode 100644 index 000000000000..634426df4a7b --- /dev/null +++ b/media-gfx/showimg/files/showimg-0.9.5-gcc-4.3.patch @@ -0,0 +1,59 @@ +diff -NrU5 showimg-0.9.5.orig/showimg/kexi/kexidb/parser/sqlparser.cpp showimg-0.9.5/showimg/kexi/kexidb/parser/sqlparser.cpp +--- showimg-0.9.5.orig/showimg/kexi/kexidb/parser/sqlparser.cpp 2006-01-07 09:47:45.000000000 +0100 ++++ showimg-0.9.5/showimg/kexi/kexidb/parser/sqlparser.cpp 2008-04-27 21:30:03.000000000 +0200 +@@ -357,10 +357,11 @@ + #include <string.h> + #include <string> + #include <iostream> + #include <assert.h> + #include <limits.h> ++#include <cstdlib> + //TODO OK? + #ifdef Q_WS_WIN + //workaround for bug on msvc + # undef LLONG_MIN + #endif +diff -NrU5 showimg-0.9.5.orig/showimg/kexi/kexidb/parser/sqlparser.y showimg-0.9.5/showimg/kexi/kexidb/parser/sqlparser.y +--- showimg-0.9.5.orig/showimg/kexi/kexidb/parser/sqlparser.y 2006-01-07 09:47:45.000000000 +0100 ++++ showimg-0.9.5/showimg/kexi/kexidb/parser/sqlparser.y 2008-04-27 21:17:31.000000000 +0200 +@@ -438,10 +438,12 @@ + #include <string.h> + #include <string> + #include <iostream> + #include <assert.h> + #include <limits.h> ++#include <alloca.h> ++#include <cstdlib> + //TODO OK? + #ifdef Q_WS_WIN + //workaround for bug on msvc + # undef LLONG_MIN + #endif +diff -NrU5 showimg-0.9.5.orig/showimg/showimg/imagelistview.cpp showimg-0.9.5/showimg/showimg/imagelistview.cpp +--- showimg-0.9.5.orig/showimg/showimg/imagelistview.cpp 2006-01-07 09:48:04.000000000 +0100 ++++ showimg-0.9.5/showimg/showimg/imagelistview.cpp 2008-04-27 21:17:31.000000000 +0200 +@@ -47,10 +47,13 @@ + #include "imagefileiconitem.h" + #include "dirfileiconitem.h" + #include "imageviewer.h" + #include "imagemetainfo.h" + ++#include <cstdlib> ++#include <climits> ++ + #ifdef HAVE_KIPI + #include "kipiplugins/kipipluginmanager.h" + #endif /* HAVE_KIPI */ + + #ifdef HAVE_LIBKEXIF +--- showimg-0.9.5/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp.orig 2009-02-09 01:29:07.000000000 +0100 ++++ showimg-0.9.5/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2009-02-09 01:31:36.000000000 +0100 +@@ -19,6 +19,8 @@ + #include <klocale.h> + #include <kdebug.h> + ++#include <cstdlib> ++ + using namespace KexiDB; + + diff --git a/media-gfx/showimg/files/showimg-0.9.5-libpqxx-2.6.9.diff b/media-gfx/showimg/files/showimg-0.9.5-libpqxx-2.6.9.diff new file mode 100644 index 000000000000..c38c515a79a3 --- /dev/null +++ b/media-gfx/showimg/files/showimg-0.9.5-libpqxx-2.6.9.diff @@ -0,0 +1,109 @@ +diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.cpp showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.cpp +--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.cpp 2006-01-07 19:47:46.000000000 +1100 ++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.cpp 2008-11-12 18:11:01.000000000 +1100 +@@ -16,6 +16,8 @@ + #include <kexidb/error.h> + #include <klocale.h> + #include <string> ++#include <pqxx/nontransaction> ++#include <pqxx/transaction> + + using namespace KexiDB; + +@@ -26,6 +28,7 @@ + data = new pqxx::nontransaction(*static_cast<pqxxSqlConnection*>(conn)->m_pqxxsql /* todo: add name? */); + else + data = new pqxx::transaction<>(*static_cast<pqxxSqlConnection*>(conn)->m_pqxxsql /* todo: add name? */); ++ + if (!static_cast<pqxxSqlConnection*>(conn)->m_trans) { + static_cast<pqxxSqlConnection*>(conn)->m_trans = this; + } +@@ -248,7 +251,8 @@ + // m_trans = new pqxx::nontransaction(*m_pqxxsql); + + //Create a result object through the transaction +- m_res = new pqxx::result(m_trans->data->exec(statement.utf8())); ++ std::string query(statement.utf8()); ++ m_res = new pqxx::result(m_trans->data->exec(query)); + + //Commit the transaction + if (implicityStarted) { +diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.h showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.h +--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.h 2006-01-07 19:47:46.000000000 +1100 ++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxconnection.h 2008-11-12 18:10:06.000000000 +1100 +@@ -16,7 +16,9 @@ + + #include <kexidb/connection.h> + #include "pqxxcursor.h" +-#include <pqxx/all.h> ++#include <pqxx/result> ++#include <pqxx/connection> ++#include <pqxx/transaction_base> + + + namespace KexiDB +diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp +--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2006-01-07 19:47:46.000000000 +1100 ++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp 2008-11-12 18:10:11.000000000 +1100 +@@ -11,6 +11,7 @@ + // + #include "pqxxcursor.h" + #include "pqxxconnection.h" ++#include <pqxx/nontransaction> + + #include <kexidb/error.h> + #include <kexidb/global.h> +@@ -84,7 +85,8 @@ + m_implicityStarted = true; + } + +- m_res = new pqxx::result(((pqxxSqlConnection*)connection())->m_trans->data->exec(statement.utf8())); ++ std::string std_statement(statement.utf8()); ++ m_res = new pqxx::result(((pqxxSqlConnection*)connection())->m_trans->data->exec(std_statement)); + ((pqxxSqlConnection*)connection()) + ->drv_commitTransaction(((pqxxSqlConnection*)connection())->m_trans); + // my_conn->m_trans->commit(); +diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.h showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.h +--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.h 2006-01-07 19:47:46.000000000 +1100 ++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxcursor.h 2008-11-12 18:10:16.000000000 +1100 +@@ -15,7 +15,8 @@ + #include <kexidb/cursor.h> + #include <kexidb/connection.h> + +-#include <pqxx/all.h> ++#include <pqxx/result> ++#include <pqxx/connection> + + namespace KexiDB { + +diff -Naur showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxdriver.cpp showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxdriver.cpp +--- showimg-0.9.5-orig/showimg/kexi/kexidb/drivers/pqxx/pqxxdriver.cpp 2006-01-07 19:47:46.000000000 +1100 ++++ showimg-0.9.5-libpqxx/showimg/kexi/kexidb/drivers/pqxx/pqxxdriver.cpp 2008-11-12 18:10:23.000000000 +1100 +@@ -22,6 +22,7 @@ + #include <kexidb/driver_p.h> + #include "pqxxdriver.h" + #include "pqxxconnection.h" ++#include <pqxx/util> + #include <string> + + #include <kdebug.h> +@@ -132,14 +133,17 @@ + // + QString pqxxSqlDriver::escapeString( const QString& str) const + { +- return QString(pqxx::Quote(str.ascii()).c_str()); ++ // pqxx::sqlesc has been marked as deprecated ++ // in libpqxx 2.6, but this will get us through ++ // until showimg is killed or upgraded to a new kexi ++ return QString(pqxx::sqlesc(str.ascii()).c_str()); + } + + //================================================================================== + // + QCString pqxxSqlDriver::escapeString( const QCString& str) const + { +- return QCString(pqxx::Quote(QString(str).ascii()).c_str()); ++ return QCString(pqxx::sqlesc(QString(str).ascii()).c_str()); + } + + //================================================================================== |