Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349669 - Failed to emerge kde-base/lokalize-4.5.5 with USE=kdeenablefinal: redefinition of "void initDb(QSqlDatabase&)"
Summary: Failed to emerge kde-base/lokalize-4.5.5 with USE=kdeenablefinal: redefinitio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks: kdeenablefinal
  Show dependency tree
 
Reported: 2010-12-25 07:16 UTC by Erik
Modified: 2011-03-05 19:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch that fixes the build (kdesdk-4.5.4-lokalize-fix_build-1.diff,1.79 KB, patch)
2010-12-26 19:02 UTC, Erik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik 2010-12-25 07:16:46 UTC
Emerge of kde-base/lokalize-4.5.4 fails with USE=kdeenablefinal.

Reproducible: Always

Steps to Reproduce:
1. include kdeenablefinal in /etc/make.conf:USE=
2. create /etc/portage/profile/use.mask with the line "-kdeenablefinal"
3. emerge -uDNav world

Actual Results:
In file included from /var/tmp/portage/kde-base/lokalize-4.5.4/work/lokalize-4.5.4_build/lokalize/src/lokalize_final_cpp.cpp:38:
/var/tmp/portage/kde-base/lokalize-4.5.4/work/lokalize-4.5.4/lokalize/src/tm/jobs.cpp: In function "void initDb(QSqlDatabase&)":
/var/tmp/portage/kde-base/lokalize-4.5.4/work/lokalize-4.5.4/lokalize/src/tm/jobs.cpp:647: fel: redefinition of "void initDb(QSqlDatabase&)"
/var/tmp/portage/kde-base/lokalize-4.5.4/work/lokalize-4.5.4/lokalize/src/project/projectmodel.cpp:1236: fel: "void initDb(QSqlDatabase&)" definierades tidigare här

Expected Results:  
successful installation of the package
Comment 1 Erik 2010-12-26 19:02:45 UTC
Created attachment 258139 [details, diff]
patch that fixes the build

This patch for kdesdk-4.5.4/lokalize/src/project/projectmodel.cpp inlines the function "static void initDb(QSqlDatabase& db)" in the only place where it is used. This avoids the collision with the function with the same signature in kdesdk-4.5.4/lokalize/src/project/jobs.cpp.
Comment 2 Erik 2011-01-15 07:56:06 UTC
Still fails with kde-base/lokalize-4.5.5.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2011-03-05 19:57:00 UTC
Patch looks good. Applied to 4.6.1 and later. Let's hope upstream picks it up or fixes otherwise.