Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319481 - media-libs/clutter-gtk-0.10.2 fails to compile with gtk+-2.20
Summary: media-libs/clutter-gtk-0.10.2 fails to compile with gtk+-2.20
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gtk+-2.20
  Show dependency tree
 
Reported: 2010-05-13 04:19 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2010-06-26 02:23 UTC (History)
0 users

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


Attachments
gtk+-2.20 compatibility patch (clutter-gtk-0.10.2-gtk-2.20.patch,1.34 KB, patch)
2010-05-13 04:22 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-05-13 04:19:04 UTC
Due to some macros becoming deprecated in gtk+-2.20, clutter-gtk-0.10.2 fails to compile:

# emerge clutter-gtk
[...]
  LINK  libclutter-gtk-0.10.la
/var/tmp/portage/media-libs/clutter-gtk-0.10.2/work/clutter-gtk-0.10.2/clutter-gtk/.libs/libclutter-gtk-0.10.so: undefined reference to `GTK_WIDGET_REALIZED'
/var/tmp/portage/media-libs/clutter-gtk-0.10.2/work/clutter-gtk-0.10.2/clutter-gtk/.libs/libclutter-gtk-0.10.so: undefined reference to `GTK_WIDGET_VISIBLE'
collect2: ld returned 1 exit status
Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 38, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 317, in scanner_main
    glibtransformer.get_get_type_functions())
  File "/usr/lib64/gobject-introspection/giscanner/dumper.py", line 231, in compile_introspection_binary
    return dc.run()
  File "/usr/lib64/gobject-introspection/giscanner/dumper.py", line 132, in run
    self._link(bin_path, o_path)
  File "/usr/lib64/gobject-introspection/giscanner/dumper.py", line 226, in _link
    subprocess.check_call(args)
  File "/usr/lib64/python2.6/subprocess.py", line 488, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/var/tmp/portage/media-libs/clutter-gtk-0.10.2/work/clutter-gtk-0.10.2/clutter-gtk/tmp-introspectR5qR0a/GtkClutter-0.10', '-march=native', '-O2', '-pipe', '-L.', '-lclutter-gtk-0.10', '-pthread', '-Wl,--export-dynamic', '-lgio-2.0', '-lgirepository-1.0', '-lgobject-2.0', '-lgmodule-2.0', '-lffi', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/var/tmp/portage/media-libs/clutter-gtk-0.10.2/work/clutter-gtk-0.10.2/clutter-gtk/tmp-introspectR5qR0a/GtkClutter-0.10.o']' returned non-zero exit status 1
make[2]: *** [GtkClutter-0.10.gir] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

This bug has been fixed in clutter-gtk-0.10.4. However, we cannot use the patch[1] from 0.10.4 directly because it requires gtk+-2.20 (i.e. it unconditionally uses API not found in gtk+-2.18). Furthermore, clutter-gtk-0.10.4 requires clutter-1.2, not yet in portage.

Therefore, we need to patch clutter-gtk-0.10.2 using some ifdefs so that it can be built with any version of gtk+.

[1]: http://git.clutter-project.org/cgit.cgi?url=clutter-gtk/commit/&h=clutter-gtk-0.10&id=920ec05edf8d632d76c564253c74f7ec3c5f0428
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-05-13 04:22:33 UTC
Created attachment 231297 [details, diff]
gtk+-2.20 compatibility patch

This patch allows clutter-gtk-0.10.2 to be built with any version of gtk+ (2.16, 2.18 or 2.20).
Comment 2 acidrums4 2010-05-16 00:19:00 UTC
(In reply to comment #1)
> Created an attachment (id=231297) [details]
> gtk+-2.20 compatibility patch
> 
> This patch allows clutter-gtk-0.10.2 to be built with any version of gtk+
> (2.16, 2.18 or 2.20).
> 

It fixed the trouble for me. Thanks! Wait for the upstream of the patch!
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-06-26 02:23:22 UTC
clutter-gtk has been bumped to 0.10.4 in-tree, closing as FIXED.