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 766334 - Please consider API versioning the include directory and library name
Please consider API versioning the include directory and library name
Status: RESOLVED FIXED
Product: libgnome-games-support
Classification: Other
Component: general
1.0.x
Other Linux
: Normal normal
: ---
Assigned To: libgames-scores maintainer(s)
libgames-scores maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-05-12 16:26 UTC by Michael Biebl
Modified: 2016-08-14 22:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add API version to include directory and library name (3.56 KB, patch)
2016-07-31 02:15 UTC, Michael Catanzaro
none Details | Review
Add API version to include directory and library name (3.55 KB, patch)
2016-07-31 02:21 UTC, Michael Catanzaro
accepted-commit_now Details | Review

Description Michael Biebl 2016-05-12 16:26:52 UTC
Hi,

libgames-support already uses an API version for its pkg-config file and the Vala support file.
I think it would be more consistent to follow what other (GNOME) libraries do and also API-version the include directory and library name, i.e.
use
/usr/include/gnome-games-1.0/
/usr/lib/libgames-support-1.0.so*
Comment 1 Michael Catanzaro 2016-05-12 17:14:04 UTC
Ooops. :(

I guess this can be changed for the next stable release, without incrementing the pkg-config API version. Everything should Just Work so long as you rebuild dependent applications.
Comment 2 Michael Catanzaro 2016-07-31 02:15:23 UTC
Created attachment 332418 [details] [review]
Add API version to include directory and library name

This should have been done from the start; it was a serious oversight.
Unfortunately it means all dependent games (gnome-klotski, gnome-robots,
gnome-nibbles, gnome-mines) will need to be rebuilt. Fortunately no
changes in the games should be required, as the games all get the
include directory and library name from pkg-config.

Sneakily rename the include directory location while we're at it.

(Michael, does this look good to you?)
Comment 3 Michael Catanzaro 2016-07-31 02:21:06 UTC
Created attachment 332419 [details] [review]
Add API version to include directory and library name

This should have been done from the start; it was a serious oversight.
Unfortunately it means all dependent games (gnome-klotski, gnome-robots,
gnome-nibbles, gnome-mines) will need to be rebuilt. Fortunately no
changes in the games should be required, as the games all get the
include directory and library name from pkg-config.

Sneakily rename the include directory location while we're at it.
Comment 4 Sahil Sareen 2016-08-14 17:27:55 UTC
Review of attachment 332419 [details] [review]:

LGTM
Comment 5 Michael Biebl 2016-08-14 21:32:21 UTC
LGTM as well
Comment 6 Sahil Sareen 2016-08-14 22:04:58 UTC
Thanks for reviewing Michael, and thanks for the patch Michael ;)

Pushed to master
To ssh://ssareen@git.gnome.org/git/libgames-support
   4e5c055..5792592  master -> master