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 724172 - gedit API broke without changing the pkg-config name
gedit API broke without changing the pkg-config name
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-11 19:34 UTC by Jim Nelson
Modified: 2014-02-17 18:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add Vala bindings. (7.54 KB, patch)
2014-02-16 20:49 UTC, Evan Nemerson
needs-work Details | Review
Add Vala bindings. (7.82 KB, patch)
2014-02-17 05:15 UTC, Evan Nemerson
accepted-commit_now Details | Review

Description Jim Nelson 2014-02-11 19:34:42 UTC
gedit.vapi refers to "gedit/gedit-panel.h" as a necessary include file for certain symbols.  However, gedit-panel.h has been removed in master:

https://git.gnome.org/browse/gedit/commit/?id=d8c6a832e8f7d8f6bcd57a553b1951303c8d5a19
Comment 1 Luca Bruno 2014-02-11 19:41:25 UTC
That's a heavy api breakage, isn't a new .pc file coming in?
Comment 2 Evan Nemerson 2014-02-11 21:25:16 UTC
Moving to gedit, we'll start distributing a new vapi as soon as they start distributing a new pkg-config file.
Comment 3 Ignacio Casal Quinteiro (nacho) 2014-02-12 14:44:45 UTC
I agree we should bump the api version
Comment 4 Ignacio Casal Quinteiro (nacho) 2014-02-14 10:31:41 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 5 Evan Nemerson 2014-02-16 07:51:38 UTC
The pkg-config name and is still gedit (not gedit-3.12 or something similar), and the GIR is still Gedit-3.0.gir.
Comment 6 Paolo Borelli 2014-02-16 09:00:06 UTC
While changing the pkg-config file is not a problem, would this problem go away if we put the vapi in gedit itself?

I ask because gedit is an application not a library, so you cannot have two parallel versions side by side in the same prefix...
Comment 7 Evan Nemerson 2014-02-16 09:30:40 UTC
I don't know that I would say it would go away since code written against a prior version may still not longer work in the newer version, but the problem would be reduced to the same level as the C API.

If that's how you want to go I'd be happy to put together a patch.
Comment 8 Paolo Borelli 2014-02-16 10:36:59 UTC
That would be great. I think shipping the vapi upstream is better in any case, independently from the api break
Comment 9 Evan Nemerson 2014-02-16 20:49:51 UTC
Created attachment 269328 [details] [review]
Add Vala bindings.
Comment 10 Paolo Borelli 2014-02-16 20:53:42 UTC
Comment on attachment 269328 [details] [review]
Add Vala bindings.

go ahead, you are the vapi master :-)

thanks
Comment 11 Evan Nemerson 2014-02-16 20:56:29 UTC
Comment on attachment 269328 [details] [review]
Add Vala bindings.

It looks like I can make some improvements from the vapi distributed with Vala are possible, I'll take care of it this afternoon.
Comment 12 Evan Nemerson 2014-02-17 05:15:05 UTC
Created attachment 269356 [details] [review]
Add Vala bindings.

This improves the metadata a bit (no more warnings, add the right header to some types), but the important changes are really adding the pkg-config name and C headers to the GIR.  This should make things work by default whenever you add new types instead of having to manually set the right cheader_filename in metadata.  Of course if you don't set the cheader_filename *all* headers will be included, but that's better than the wrong one (Gedit-3.0.h).
Comment 13 Paolo Borelli 2014-02-17 08:47:58 UTC
Review of attachment 269356 [details] [review]:

looks good