After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 637557 - libchamplain fails configure stage
libchamplain fails configure stage
Status: RESOLVED DUPLICATE of bug 638521
Product: jhbuild
Classification: Infrastructure
Component: module sets
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on: 631009 632695
Blocks:
 
 
Reported: 2010-12-19 11:57 UTC by Tshepang Lekhonkhobe
Modified: 2011-01-02 17:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add clutter-gtk2 and dependencies (1.40 KB, patch)
2010-12-20 10:14 UTC, Craig Keogh
none Details | Review

Description Tshepang Lekhonkhobe 2010-12-19 11:57:53 UTC
clutter-gtk installed ok, so I'm don't know what's up with this error:

checking for GTK... no
configure: error: Package requirements (   gtk+-2.0 >= 2.12
        clutter-gtk-0.10 >= 0.10

  ) were not met:

No package 'clutter-gtk-0.10' found

I also note is says GTK=no, and there are no build failures on GTK itself
Comment 1 Craig Keogh 2010-12-19 22:25:53 UTC
Yes, I get the same error. It seems the build bots pass as they have the system's clutter-gtk-devel (version 0.10.x) installed:
http://build.gnome.org/builders/libchamplain-bxlug-sid/builds/624/steps/libchamplain%20build/logs/stdio

Relevant libchamplain bugs are at bug 632695 and bug 631009.

I have a patch that adds clutter-gtk-010 (as well as clutter-gtk) back to the moduleset. libchamplain then builds, but I haven't worked out what happens when a gtk3-ported application links libchamplain, where libchamplain links gtk2. (gtk2 & gtk3 in the same application)
Comment 2 Craig Keogh 2010-12-20 10:14:13 UTC
Created attachment 176751 [details] [review]
Add clutter-gtk2 and dependencies


If you apply this patch, libchamplain will build. Only empathy depends on libchamplain. But will empathy work with this patch - using gtk2 & gtk3? I don't know and I can't test because empathy doesn't build due to bug 636654
Comment 3 Frederic Peters 2010-12-24 08:17:02 UTC
Empathy won't work, it's not possible to link against both GTK 2 & 3.
Comment 4 Robert Bruce Park 2010-12-28 21:50:07 UTC
(In reply to comment #1)
> I have a patch that adds clutter-gtk-010 (as well as clutter-gtk) back to the
> moduleset. libchamplain then builds, but I haven't worked out what happens when
> a gtk3-ported application links libchamplain, where libchamplain links gtk2.
> (gtk2 & gtk3 in the same application)

As an author of such an application, let me tell you... shit's broke! Porting libchamplain-gtk to gtk3 should be a high priority for somebody who is capable of that, as it is a major bug that is blocking me developing my own app.

Thanks.
Comment 5 Robert Bruce Park 2010-12-28 22:09:14 UTC
Sorry, I should be more specific. Here's an example of an error in Gtk3 caused by libchamplain's gtk2 (some whitespace added for readability):

$ jhbuild run python
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00) 
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> from gi.repository import Clutter, GtkChamplain, Gtk

>>> Clutter.init([])
(<enum CLUTTER_INIT_SUCCESS of type ClutterInitError>, [])

>>> GtkChamplain.Embed()
<Embed object at 0x7fd887a9baa0 (GtkChamplainEmbed at 0x207ead0)>

>>> dialog = Gtk.FileChooserDialog("Open", None, Gtk.FileChooserAction.OPEN, buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT))

Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
  • File "/opt/gnome/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 456 in __init__
    buttons=buttons)
  • File "/opt/gnome/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 371 in __init__
    self.add_buttons(*buttons)
  • File "/opt/gnome/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 393 in add_buttons
    self.add_button(text, response)
AttributeError: 'FileChooserDialog' object has no attribute 'add_button'
>>> 

Whereas, without libchamplain, it works fine:

$ jhbuild run python
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00) 
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> from gi.repository import Gtk

>>> dialog = Gtk.FileChooserDialog("Open", None, Gtk.FileChooserAction.OPEN, buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT))
Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
>>> dialog.run()

(.:9198): Gtk-WARNING **: GtkFileChooserWidget 0x2914480 is mapped but visible=1 child_visible=1 parent GtkBox 0x2972070 mapped=0

(.:9198): Gtk-WARNING **: Could not find the icon 'application-x-python-bytecode'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
	http://icon-theme.freedesktop.org/releases
-6
>>>
Comment 6 Frederic Peters 2011-01-02 17:02:42 UTC
*** This bug has been marked as a duplicate of bug 638521 ***