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
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.
Still fails with kde-base/lokalize-4.5.5.
Patch looks good. Applied to 4.6.1 and later. Let's hope upstream picks it up or fixes otherwise.