Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 258139 Details for
Bug 349669
Failed to emerge kde-base/lokalize-4.5.5 with USE=kdeenablefinal: redefinition of "void initDb(QSqlDatabase&)"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch that fixes the build
kdesdk-4.5.4-lokalize-fix_build-1.diff (text/plain), 1.79 KB, created by
Erik
on 2010-12-26 19:02:45 UTC
(
hide
)
Description:
patch that fixes the build
Filename:
MIME Type:
Creator:
Erik
Created:
2010-12-26 19:02:45 UTC
Size:
1.79 KB
patch
obsolete
>--- kdesdk-4.5.4/lokalize/src/project/projectmodel.cpp.orig 2010-12-26 18:42:44.132000006 +0100 >+++ kdesdk-4.5.4/lokalize/src/project/projectmodel.cpp 2010-12-26 18:42:44.132000006 +0100 >@@ -1233,21 +1233,6 @@ > { > } > >-static void initDb(QSqlDatabase& db) >-{ >- QSqlQuery queryMain(db); >- queryMain.exec("PRAGMA encoding = \"UTF-8\""); >- queryMain.exec("CREATE TABLE IF NOT EXISTS metainfo (" >- "filepath INTEGER PRIMARY KEY ON CONFLICT REPLACE, "// AUTOINCREMENT," >- //"filepath TEXT UNIQUE ON CONFLICT REPLACE, " >- "metainfo BLOB, "//XLIFF markup info, see catalog/catalogstring.h catalog/xliff/* >- "changedate INTEGER" >- ")"); >- >- //queryMain.exec("CREATE INDEX IF NOT EXISTS filepath_index ON metainfo ("filepath)"); >-} >- >- > static KFileMetaInfo cachedMetaInfo(const KFileItem& file) > { > QString dbName="metainfocache"; >@@ -1257,7 +1242,16 @@ > db.setDatabaseName(KStandardDirs::locateLocal("appdata", dbName+".sqlite")); > if (KDE_ISUNLIKELY( !db.open() )) > return KFileMetaInfo(file.url()); >- initDb(db); >+ QSqlQuery queryMain(db); >+ queryMain.exec("PRAGMA encoding = \"UTF-8\""); >+ queryMain.exec("CREATE TABLE IF NOT EXISTS metainfo (" >+ "filepath INTEGER PRIMARY KEY ON CONFLICT REPLACE, "// AUTOINCREMENT," >+ //"filepath TEXT UNIQUE ON CONFLICT REPLACE, " >+ "metainfo BLOB, "//XLIFF markup info, see catalog/catalogstring.h catalog/xliff/* >+ "changedate INTEGER" >+ ")"); >+ >+ //queryMain.exec("CREATE INDEX IF NOT EXISTS filepath_index ON metainfo ("filepath)"); > } > QSqlDatabase db=QSqlDatabase::database(dbName); > if (!db.isOpen())
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 349669
: 258139