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 787198 - Re-establish vapi generation, rename the vapi to the correct name
Re-establish vapi generation, rename the vapi to the correct name
Status: RESOLVED FIXED
Product: libgit2-glib
Classification: Core
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: gitg-maint
gitg-maint
: 770910 775810 (view as bug list)
Depends on: 792699
Blocks:
 
 
Reported: 2017-09-02 21:23 UTC by Corentin Noël
Modified: 2019-02-22 03:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
meson: Create a symlink with the old VAPI name (2.64 KB, patch)
2018-01-28 19:28 UTC, Iñigo Martínez
none Details | Review
build: Create a symlink with the old VAPI name (1.45 KB, patch)
2018-01-28 20:09 UTC, Iñigo Martínez
none Details | Review
build: Create a symlink with the old VAPI name (3.30 KB, patch)
2018-02-07 12:05 UTC, Iñigo Martínez
none Details | Review
Change the VAPI name to follow the pkgconfig one (1.28 KB, patch)
2018-02-07 13:30 UTC, Corentin Noël
committed Details | Review
meson: Create a symlink with the old VAPI name (2.66 KB, patch)
2018-02-07 14:08 UTC, Iñigo Martínez
committed Details | Review

Description Corentin Noël 2017-09-02 21:23:17 UTC
Here is a branch containing the fix:
https://git.gnome.org/browse/libgit2-glib/log/?h=tintou/wip/vala-fix
Comment 1 Al Thomas 2017-09-07 12:32:18 UTC
*** Bug 775810 has been marked as a duplicate of this bug. ***
Comment 2 Al Thomas 2017-09-07 12:33:04 UTC
*** Bug 770910 has been marked as a duplicate of this bug. ***
Comment 3 Iñigo Martínez 2018-01-21 18:21:37 UTC
I have recently done some improvements to the meson ports and uploaded the patches to bug 792699. One of those improvements have been the VAPI generation. However, I still haven't fixed the name as I remembered that there was already a patch in the works.

Corentin Noël, would you mind updating the fix to be applied over those patches? I have also created a wip branch[0] with all those patches applied, so you won't have to apply all the patches over upstream.

I think that it would be enough to change the `libgit2_glib_ns` variable[1] to the proper name (or just fully replace that variable by using meson.project_name() instead which is used for the `.pc` generation).

[0] https://git.gnome.org/browse/libgit2-glib/log/?h=wip/inigomartinez/meson
[1] https://git.gnome.org/browse/libgit2-glib/tree/meson.build?h=wip/inigomartinez/meson#n18
Comment 4 Corentin Noël 2018-01-25 08:22:54 UTC
I forked your branch and applied the required changes, it even removes one variable in meson, yay!
Comment 5 Iñigo Martínez 2018-01-25 08:42:12 UTC
Thank you! It looks good to me :)
Comment 6 Rico Tzschichholz 2018-01-28 13:41:18 UTC
It would make sense to install symlinks for the old naming to preserve backwards compatibility with existing projects.
Comment 7 Iñigo Martínez 2018-01-28 19:28:32 UTC
Created attachment 367553 [details] [review]
meson: Create a symlink with the old VAPI name

This patch, which is a follow up to the commit that changes the VAPI file name, creates a symlink with the old VAPI name pointing to the new file for backwards compatibility.
Comment 8 Rico Tzschichholz 2018-01-28 19:41:20 UTC
Why not just put the symlinks in the source tree and use meson's install_data() ?
Note the symlinks need to be relative, so need to include no dir at all.
Comment 9 Iñigo Martínez 2018-01-28 20:09:58 UTC
Created attachment 367556 [details] [review]
build: Create a symlink with the old VAPI name

(In reply to Rico Tzschichholz from comment #8)
> Why not just put the symlinks in the source tree and use meson's
> install_data() ?
> Note the symlinks need to be relative, so need to include no dir at all.

I have changed the links to be relative instead of absolute paths. I have also remembered that autotools is still in place (until buildstream MR is finally merged) and added autotools support.

However, in the autotools case, I didn't want to mess very much with the `chdir` trick and followed what other gnome packages do, so absolute link is created.
Comment 10 Iñigo Martínez 2018-02-07 12:05:00 UTC
Created attachment 367990 [details] [review]
build: Create a symlink with the old VAPI name

I squashed both commits in this one.
Comment 11 Corentin Noël 2018-02-07 13:30:13 UTC
Created attachment 367997 [details] [review]
Change the VAPI name to follow the pkgconfig one
Comment 12 Iñigo Martínez 2018-02-07 14:08:58 UTC
Created attachment 368070 [details] [review]
meson: Create a symlink with the old VAPI name

Patch update that only applies to meson (now that autotools has been removed).
Comment 13 Ignacio Casal Quinteiro (nacho) 2018-02-08 11:30:02 UTC
Review of attachment 367997 [details] [review]:

ok for me
Comment 14 Ignacio Casal Quinteiro (nacho) 2018-02-08 11:31:42 UTC
Review of attachment 368070 [details] [review]:

OK
Comment 15 Iñigo Martínez 2018-02-10 15:38:06 UTC
attachment 367997 [details] [review] pushed as 363d075 - meson: Make the vapi name follow the pkgconfig name
attachment 368070 [details] [review] pushed as 2dd507d - meson: Create a symlink with the old VAPI name