Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 286153 Details for
Bug 360729
[PATCH] Failed to emerge kde-base/kwin-4.6.5 with USE=kdeenablefinal: several MAP_GET macros and redefinition of "struct QMetaTypeId<SWrapper::ClientGroup*>"
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
kwin-4.6.5_fix_build-2.diff (text/plain), 5.86 KB, created by
Erik
on 2011-09-11 19:32:10 UTC
(
hide
)
Description:
patch that fixes the build
Filename:
MIME Type:
Creator:
Erik
Created:
2011-09-11 19:32:10 UTC
Size:
5.86 KB
patch
obsolete
>diff -rNU2 -Xi kdebase-workspace-4.6.5.orig/kwin/scripting/meta.cpp kdebase-workspace-4.6.5/kwin/scripting/meta.cpp >--- kdebase-workspace-4.6.5.orig/kwin/scripting/meta.cpp 2011-09-11 17:29:21.932011279 +0200 >+++ kdebase-workspace-4.6.5/kwin/scripting/meta.cpp 2011-09-11 21:11:37.754290557 +0200 >@@ -20,7 +20,7 @@ > > #include "meta.h" >+#include "qmetatype_swrapper_clientgroup.h" > > Q_DECLARE_METATYPE(SWrapper::Client*) >-Q_DECLARE_METATYPE(SWrapper::ClientGroup*) > > using namespace KWin::MetaScripting; >diff -rNU2 -Xi kdebase-workspace-4.6.5.orig/kwin/scripting/qmetatype_swrapper_clientgroup.h kdebase-workspace-4.6.5/kwin/scripting/qmetatype_swrapper_clientgroup.h >--- kdebase-workspace-4.6.5.orig/kwin/scripting/qmetatype_swrapper_clientgroup.h 1970-01-01 01:00:00.000000000 +0100 >+++ kdebase-workspace-4.6.5/kwin/scripting/qmetatype_swrapper_clientgroup.h 2011-09-11 21:13:50.345632937 +0200 >@@ -0,0 +1,26 @@ >+/******************************************************************** >+ KWin - the KDE window manager >+ This file is part of the KDE project. >+ >+Copyright (C) 2010 Rohan Prabhu <rohan@rohanprabhu.com> >+ >+This program is free software; you can redistribute it and/or modify >+it under the terms of the GNU General Public License as published by >+the Free Software Foundation; either version 2 of the License, or >+(at your option) any later version. >+ >+This program is distributed in the hope that it will be useful, >+but WITHOUT ANY WARRANTY; without even the implied warranty of >+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+GNU General Public License for more details. >+ >+You should have received a copy of the GNU General Public License >+along with this program. If not, see <http://www.gnu.org/licenses/>. >+*********************************************************************/ >+ >+#ifndef KWIN_QMETATYPE_SWRAPPER_CLIENTGROUP_H >+#define KWIN_QMETATYPE_SWRAPPER_CLIENTGROUP_H >+ >+Q_DECLARE_METATYPE(SWrapper::ClientGroup*) >+ >+#endif >diff -rNU2 -Xi kdebase-workspace-4.6.5.orig/kwin/scripting/s_clientgroup.cpp kdebase-workspace-4.6.5/kwin/scripting/s_clientgroup.cpp >--- kdebase-workspace-4.6.5.orig/kwin/scripting/s_clientgroup.cpp 2011-09-11 17:29:21.932011279 +0200 >+++ kdebase-workspace-4.6.5/kwin/scripting/s_clientgroup.cpp 2011-09-11 21:14:49.618891920 +0200 >@@ -20,6 +20,5 @@ > > #include "s_clientgroup.h" >- >-Q_DECLARE_METATYPE(SWrapper::ClientGroup*) >+#include "qmetatype_swrapper_clientgroup.h" > > SWrapper::ClientGroup::ClientGroup(KWin::ClientGroup* group) >diff -rNU2 -Xi kdebase-workspace-4.6.5.orig/kwin/scripting/toplevel.cpp kdebase-workspace-4.6.5/kwin/scripting/toplevel.cpp >--- kdebase-workspace-4.6.5.orig/kwin/scripting/toplevel.cpp 2011-09-11 17:29:21.932011279 +0200 >+++ kdebase-workspace-4.6.5/kwin/scripting/toplevel.cpp 2011-09-11 20:45:49.761643129 +0200 >@@ -41,4 +41,16 @@ > } > >+#undef MAP_GET >+#define MAP_GET(type, method) \ >+QScriptValue SWrapper::Toplevel::method(QScriptContext* ctx, QScriptEngine* eng) { \ >+ KWin::Toplevel* central = extractClient(ctx->thisObject()); \ >+ \ >+ if(central == 0) { \ >+ return QScriptValue(); \ >+ } else { \ >+ return eng->toScriptValue<type>(central->method()); \ >+ } \ >+} >+ > MAP_GET(int, x) > MAP_GET(int, y) >diff -rNU2 -Xi kdebase-workspace-4.6.5.orig/kwin/scripting/toplevel.h kdebase-workspace-4.6.5/kwin/scripting/toplevel.h >--- kdebase-workspace-4.6.5.orig/kwin/scripting/toplevel.h 2011-09-11 17:29:21.932011279 +0200 >+++ kdebase-workspace-4.6.5/kwin/scripting/toplevel.h 2011-09-11 20:45:34.754830739 +0200 >@@ -26,16 +26,4 @@ > #include <QScriptEngine> > >-#undef MAP_GET >-#define MAP_GET(type, method) \ >-QScriptValue SWrapper::Toplevel::method(QScriptContext* ctx, QScriptEngine* eng) { \ >- KWin::Toplevel* central = extractClient(ctx->thisObject()); \ >- \ >- if(central == 0) { \ >- return QScriptValue(); \ >- } else { \ >- return eng->toScriptValue<type>(central->method()); \ >- } \ >-} >- > #define MAP_PROTO(method) static QScriptValue method(QScriptContext* ctx, QScriptEngine* eng); > >diff -rNU2 -Xi kdebase-workspace-4.6.5.orig/kwin/scripting/windowinfo.cpp kdebase-workspace-4.6.5/kwin/scripting/windowinfo.cpp >--- kdebase-workspace-4.6.5.orig/kwin/scripting/windowinfo.cpp 2011-09-11 17:29:21.932011279 +0200 >+++ kdebase-workspace-4.6.5/kwin/scripting/windowinfo.cpp 2011-09-11 20:49:27.178925039 +0200 >@@ -28,4 +28,28 @@ > } > >+// The following two extremely helpful functions are taken >+// from the KWin Scripting proof-of-concept submitted by >+// Lubos Lunak <l.lunak@kde.org>. Copyrights belong with >+// original author (Lubos Lunak). >+ >+#undef MAP_GET >+#undef MAP_SET >+ >+#define MAP_GET2(name, type2) \ >+type2 SWrapper::WindowInfo::name() const { \ >+ return type2(infoClass.name()); \ >+} >+ >+#define MAP_GET(name, type) \ >+type SWrapper::WindowInfo::name() const { \ >+ return infoClass.name(); \ >+} >+ >+#define MAP_SET(name, type) \ >+void SWrapper::Toplevel::name(type value) { \ >+ subObject->name(value); \ >+} >+ >+ > MAP_GET(valid, bool) > MAP_GET(state, int) >diff -rNU2 -Xi kdebase-workspace-4.6.5.orig/kwin/scripting/windowinfo.h kdebase-workspace-4.6.5/kwin/scripting/windowinfo.h >--- kdebase-workspace-4.6.5.orig/kwin/scripting/windowinfo.h 2011-09-11 17:29:21.932011279 +0200 >+++ kdebase-workspace-4.6.5/kwin/scripting/windowinfo.h 2011-09-11 20:49:32.341860492 +0200 >@@ -31,28 +31,4 @@ > #include <QScriptEngine> > >-// The following two extremely helpful functions are taken >-// from the KWin Scripting proof-of-concept submitted by >-// Lubos Lunak <l.lunak@kde.org>. Copyrights belong with >-// original author (Lubos Lunak). >- >-#undef MAP_GET >-#undef MAP_SET >- >-#define MAP_GET2(name, type2) \ >-type2 SWrapper::WindowInfo::name() const { \ >- return type2(infoClass.name()); \ >-} >- >-#define MAP_GET(name, type) \ >-type SWrapper::WindowInfo::name() const { \ >- return infoClass.name(); \ >-} >- >-#define MAP_SET(name, type) \ >-void SWrapper::Toplevel::name(type value) { \ >- subObject->name(value); \ >-} >- >- > namespace SWrapper > {
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 360729
:
267355
| 286153