Gentoo Archives: gentoo-desktop

From: "V. Ram" <vramml0@××××××××.fm>
To: gentoo-desktop@l.g.o
Subject: Re: [gentoo-desktop] kde-sunset: gtk-engines-qt build failure
Date: Tue, 18 Oct 2011 17:55:34
Message-Id: 1318960499.30415.140660987415105@webmail.messagingengine.com
In Reply to: [gentoo-desktop] kde-sunset: gtk-engines-qt build failure by "V. Ram"
1 I was able to get past this issue by using the attached patch that I
2 created (hopefully it stays attached during distribution to the list).
3 I'm running ~ Firefox 7 with this and the engine works.
4
5 For anyone else that might struggle with the issue (until such time that
6 this patch or similar get applied to the official kde-sunset repo), you
7 can do the following:
8
9 1. In your kde-sunset repo copy (by default these days it would be in
10 /var/lib/layman/kde-sunset), go to the x11-themes/gtk-engines-qt
11 directory.
12
13 2. Copy the current .ebuild file to a new .ebuild, changing the r<X> to
14 your own version number, higher than the official version, e.g. r99.
15 Complete example:
16 /var/lib/layman/kde-sunset/x11-themes/gtk-engines-qt $ cp
17 gtk-engines-qt-0.8-r4.ebuild gtk-engines-qt-0.8-r99.ebuild
18
19 3. Put the attached patch into the files subdirectory. You can rename
20 it if you like.
21
22 4. Edit the new .ebuild file created in step 2. In the PATCHES=
23 section, before the closing ")", add a new line following the format of
24 the previous line. The new line should read
25 "${FILESDIR}/undef_signals_cpp.patch" (or if you decided to rename the
26 patch, use your chosen filename). Save and exit.
27
28 5. Legitimize the ebuild in the eyes of Portage. At the command-line
29 and still in the gtk-engines-qt dir, run "ebuild
30 gtk-engines-qt-0.8-r99.ebuild digest" .
31
32 6. Now when you "emerge gtk-engines-qt", it should pick up your new
33 local version and proceed successfully through compilation. If not,
34 perhaps the original ebuild was marked as testing (0.8-r4 is stable as
35 of this writing, so this was not an issue for me), in which case you can
36 keyword the package.
37
38 7. Remember that a sync operation can blow away these files. Back up at
39 least your .ebuild and patch file. You may want to be more aggressive,
40 and backup the whole
41 /var/lib/layman/kde-sunset/x11-themes/gtk-engines-qt directory as well.
42
43 I disclaim copyright on the patch since it's so trivial.
44
45 V. Ram.
46
47 On Thursday, October 13, 2011 3:06 PM, "V. Ram" <vramml0@××××××××.fm>
48 wrote:
49 > I finally got KDE 3.5.10 built and installed, after keywording kdelibs,
50 > kcontrol, gdk-pixbuf, and libpng. Revdep-rebuild appears to have done
51 > the trick with the upgrade to libpng.
52 >
53 > Now I'm trying to install gtk-engines-qt, whose build fails with the
54 > indicated error:
55 >
56 > In file included from /usr/include/glib-2.0/gio/gio.h:54:0,
57 > from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
58 > from /usr/include/gtk-2.0/gdk/gdk.h:32,
59 > from /usr/include/gtk-2.0/gdk/gdkprivate.h:30,
60 > from /usr/include/gtk-2.0/gdk/gdkx.h:30,
61 > from
62 > /tmp/portage/x11-themes/gtk-engines-qt-0.8-r4/work/gtk-qt-engine/src/qt_qt_wrapper.cpp:18:
63 > /usr/include/glib-2.0/gio/gdbusintrospection.h: At global scope:
64 > /usr/include/glib-2.0/gio/gdbusintrospection.h:151:25: error: expected
65 > unqualified-id before ‘protected’
66 > /usr/include/glib-2.0/gio/gdbusintrospection.h:151:25: error: expected
67 > ‘;’ before ‘protected’
68 >
69 > The system glib is 2.28.8 and gtk+ is at 2.24.4 .
70 >
71 > I think this may be due to a conflicting use of the keyword "signals"
72 > between Qt and GLib (or gtk).
73 >
74 > Nokia (for now) has a guide on what to do about this:
75 >
76 > http://www.developer.nokia.com/Community/Wiki/How_to_prevent_symbol_collisions_between_GTK%2B_and_Qt
77 >
78 > There are a couple of bug reports along similar lines in the Debian bug
79 > tracker:
80 >
81 > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627016
82 > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614436
83 >
84 > kde-sunset devs: could you please address this in a subsequent rev of
85 > the theming engine package?
86 >
87 > Thank you very much.
88
89 --
90 http://www.fastmail.fm - Choose from over 50 domains or use your own

Attachments

File name MIME type
undef_signals_cpp.patch application/octet-stream

Replies

Subject Author
Re: [gentoo-desktop] kde-sunset: gtk-engines-qt build failure Dale <rdalek1967@×××××.com>