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 675355 - Generate VAPI from GIR and include it in GSSDP itself.
Generate VAPI from GIR and include it in GSSDP itself.
Status: RESOLVED FIXED
Product: gssdp
Classification: Other
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: GUPnP Maintainers
GUPnP Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-05-03 09:50 UTC by Jens Georg
Modified: 2019-02-22 09:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make GSSDPError a registered type (5.30 KB, patch)
2012-05-03 09:50 UTC, Jens Georg
needs-work Details | Review
Create vapi file from introspection (6.28 KB, patch)
2012-05-03 09:50 UTC, Jens Georg
needs-work Details | Review
Update patch to (3.45 KB, patch)
2012-07-01 08:35 UTC, Jens Georg
none Details | Review
Make GSSDPError a registered type (5.30 KB, patch)
2012-07-01 08:38 UTC, Jens Georg
none Details | Review

Description Jens Georg 2012-05-03 09:50:47 UTC
First step migrating away from gupnp-vala and .gi files
Comment 1 Jens Georg 2012-05-03 09:50:48 UTC
Created attachment 213359 [details] [review]
Make GSSDPError a registered type

Together with the fix for bgo#670673 this will finally fix the
errordomain matching in gobject-introspection
Comment 2 Jens Georg 2012-05-03 09:50:51 UTC
Created attachment 213360 [details] [review]
Create vapi file from introspection

The skipping of the error-domain in .metadata and the -custom.vala file
are necessary due to https://bugzilla.gnome.org/show_bug.cgi?id=670673.

They can be removed once that is fixed
Comment 3 Zeeshan Ali 2012-05-03 14:03:28 UTC
Review of attachment 213360 [details] [review]:

otherwise, looks good.

::: vala/gssdp-1.0.vapi
@@ +1,1 @@
+/* gssdp-1.0.vapi generated by vapigen, do not modify. */

why are you adding generated vapi file to git?
Comment 4 Zeeshan Ali 2012-05-03 14:03:56 UTC
Review of attachment 213359 [details] [review]:

Otherwise, looks good.

::: libgssdp/gssdp-type-builtins.c.template
@@ +1,1 @@
+/*** BEGIN file-header ***/

what is this? Seems like a generated file so shouldn't be in git?
Comment 5 Jens Georg 2012-05-03 14:29:48 UTC
(In reply to comment #4)
> Review of attachment 213359 [details] [review]:
> 
> Otherwise, looks good.
> 
> ::: libgssdp/gssdp-type-builtins.c.template
> @@ +1,1 @@
> +/*** BEGIN file-header ***/
> 
> what is this? Seems like a generated file so shouldn't be in git?

That's not generated. That is the template file used to generate the enum stuff. See http://developer.gnome.org/gobject/unstable/glib-mkenums.html


(In reply to comment #3)
> Review of attachment 213360 [details] [review]:
> 
> otherwise, looks good.
> 
> ::: vala/gssdp-1.0.vapi
> @@ +1,1 @@
> +/* gssdp-1.0.vapi generated by vapigen, do not modify. */
> 
> why are you adding generated vapi file to git?

I'm cargo-culting vala. Only regenerate the vapi when you know something changed. If you look at the Makefile.am, you can see that the vapi is not generated automatically.
Comment 6 Zeeshan Ali 2012-05-03 17:07:38 UTC
(In reply to comment #5)
>
> I'm cargo-culting vala. Only regenerate the vapi when you know something
> changed. If you look at the Makefile.am, you can see that the vapi is not
> generated automatically.

Why? I think it should be done the same way as gir file.
Comment 7 Jens Georg 2012-05-03 17:28:48 UTC
Well mainly for the sake of simplicity to not check for the vapigen versions, assuming that a maintainer knows that the correct vapigen version (>= 0.15.x) is available.
Comment 8 Zeeshan Ali 2012-05-04 16:04:43 UTC
(In reply to comment #7)
> Well mainly for the sake of simplicity to not check for the vapigen versions,
> assuming that a maintainer knows that the correct vapigen version (>= 0.15.x)
> is available.

Wouldn't the same appy to gir/typelib generation?
Comment 9 Jens Georg 2012-07-01 08:35:39 UTC
Created attachment 217757 [details] [review]
Update patch to

- Always generate vapi
 - Only try to generate vapi if gobject-introspcetion was enabled
Comment 10 Jens Georg 2012-07-01 08:38:40 UTC
Created attachment 217758 [details] [review]
Make GSSDPError a registered type

Updated to fix a typo in the include guard
Comment 11 Jens Georg 2012-08-18 13:12:35 UTC
Comment on attachment 217758 [details] [review]
Make GSSDPError a registered type

Not necessary anmore with latest introspection