Skip to content

Gobject introspection file also bumps version string under major.minor versioning scheme #175

@hosiet

Description

@hosiet

This is a follow-up for #174 .

Actually libmypaint is also providing optional gobject introspection support. The problem is that using gobject introspection would require explicitly specifying the version. For example on my system:

Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> gi.require_version('MyPaint', '1.5')
>>> gi.require_version('MyPaint', '1.6')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 132, in require_version
    raise ValueError('Namespace %s not available for version %s' %
ValueError: Namespace MyPaint not available for version 1.6
% dpkg -L gir1.2-mypaint-1.5
/usr/lib/x86_64-linux-gnu/girepository-1.0/MyPaint-1.5.typelib
[...]

However this version string still follows the major.minor scheme, showing similar issues like what we discussed in #174 . This iscaused by

--nsversion="$(LIBMYPAINT_API_PLATFORM_VERSION)" \
and

libmypaint/configure.ac

Lines 42 to 43 in 2d1c974

m4_define([libmypaint_api_platform_version],
[libmypaint_api_major.libmypaint_api_minor])
.

I'm not suggesting to fix it soon with a 1.6.2 release or so since few other projects are using this gir binding and that I'm not familiar with gobject introspection conventions either. Maybe we need more investigation about how other libraries are handling it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions