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 662708 - Add vapi bindings generation
Add vapi bindings generation
Status: RESOLVED FIXED
Product: gtk-vnc
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-vnc-maint
gtk-vnc-maint
: 664588 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-10-25 19:17 UTC by Marc-Andre Lureau
Modified: 2011-12-13 15:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add vapi bindings generation (7.50 KB, patch)
2011-10-25 19:17 UTC, Marc-Andre Lureau
committed Details | Review
Proposed patch (2.31 KB, patch)
2011-11-29 12:02 UTC, Christophe Fergeau
committed Details | Review

Description Marc-Andre Lureau 2011-10-25 19:17:48 UTC
Generate Vala bindings.
Comment 1 Marc-Andre Lureau 2011-10-25 19:17:49 UTC
Created attachment 199959 [details] [review]
Add vapi bindings generation
Comment 2 Zeeshan Ali 2011-10-26 20:40:02 UTC
Attachment 199959 [details] pushed as 8f1d3d0 - Add vapi bindings generation
Comment 3 Daniel P. Berrange 2011-10-27 10:04:31 UTC
This patch has broken the build of GTK-VNC with GTK-2. Please update it to ensure the vala bindings generation is disabled if --with-gtk=2.0 is passed to configure.
Comment 4 Christophe Fergeau 2011-10-28 14:27:28 UTC
This also breaks the build with gtk-3.0 here:

  GEN    GtkVnc-2.0.gir
Package gtk-vnc-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk-vnc-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-vnc-2.0' found
In file included from <stdin>:4:0:
/home/teuf/hack/gtk-vnc/src/vnccairoframebuffer.h:25:21: fatal error: gdk/gdk.h: No such file or directory
compilation terminated.
Error while processing the source.
make[3]: *** [GtkVnc-2.0.gir] Error 1
Comment 5 Zeeshan Ali 2011-10-28 15:06:15 UTC
I believe I pushed fixes for both cases. Could you guys please check.
Comment 6 Christophe Fergeau 2011-11-29 12:02:26 UTC
Created attachment 202364 [details] [review]
Proposed patch

Reopening since I don't think overriding PKG_CONFIG_PATH is a great idea. This patch solves this by using --include-uninstalled. However, I needed to change --pkg to --pkg-export, and I'm not sure this is the right thing to do here since I have no idea why vala needs --pkg in the first place
Comment 7 Zeeshan Ali 2011-11-29 13:29:13 UTC
(In reply to comment #6)
> Created an attachment (id=202364) [details] [review]
> Proposed patch
> 
> Reopening since I don't think overriding PKG_CONFIG_PATH is a great idea. This
> patch solves this by using --include-uninstalled. However, I needed to change
> --pkg to --pkg-export, and I'm not sure this is the right thing to do here
> since I have no idea why vala needs --pkg in the first place

So you want us to switch from a working solution to a one you are not sure about yourself? :)
Comment 8 Christophe Fergeau 2011-11-29 13:47:04 UTC
Have you read the patch changelog ? The current solution is broken if glib/gobject/... are not installed in pkg-config default search path.
Comment 9 Daniel P. Berrange 2011-11-29 13:57:44 UTC
The change from --pkg to --pkg-export should be a no-op afaict, since '--pkg-export' defaults to the value of '--pkg' if omitted

       --pkg-export=PACKAGE
              List of pkg-config packages that are provided by  the  generated  gir.   This
              option can be specified multiple times if the gir provides more packages.  If
              not specified, the packages specified with --pkg= will be used.
Comment 10 Zeeshan Ali 2011-11-29 14:02:52 UTC
(In reply to comment #8)
> Have you read the patch changelog ? The current solution is broken if
> glib/gobject/... are not installed in pkg-config default search path.

No, I only read your comment here. Its a real bug then. I'll look at this later if its not resolved by then. :)
Comment 11 Christophe Fergeau 2011-12-08 07:58:45 UTC
Other people are hitting this issue, see bug #664588, should I push this patch?
Comment 12 Christophe Fergeau 2011-12-13 13:37:42 UTC
*** Bug 664588 has been marked as a duplicate of this bug. ***
Comment 13 Christophe Fergeau 2011-12-13 13:38:30 UTC
Comment on attachment 202364 [details] [review]
Proposed patch

I pushed this patch since I hit this issue again
Comment 14 Christophe Fergeau 2011-12-13 15:27:51 UTC
And I pushed a follow-up patch doing the same for GVncPulse which I hadn't noticed at first...