Skip to content

Fixed Broken Anthy Version Number

Elsie Hupp requested to merge elsiehupp/jhbuild:anthy-version into master

When I ran jhbuild sysdeps, I got the following error:

System installed packages which are too old:
    anthy (anthy.pc, required=9100h, installed=0.4)

Which seems to relate to the following line of code: https://gitlab.gnome.org/GNOME/jhbuild/-/blob/master/modulesets/gnome-sysdeps-latest.modules#L41

The version comparison, 9100h vs 0.4, seemed suspiciously like apples to oranges, and when I googled "anthy 9100h debian" I discovered that between Debian 9 and Debian 10 the versioning scheme used by Anthy had, indeed, changed, jumping from 9100h-25+b2 to 1:0.3-8.1. (I was able to install the older version manually, but that seems like an untenable requirement.)

According to the Debian Anthy team, Debian has maintained Anthy independently since May 2010, after upstream development halted in February 2009, and it does not appear that there are any other actively maintained forks. Therefore, it seems safe to target Debian Anthy's peculiar versioning scheme.

As far as I could tell from the moduleset documentation and DTD, there is no way of specifying a complex range for module versions, such as version >= 0.3 && version < 1000, so specifying 0.3 unfortunately seems to allow for all previous versions, as, for example, 6300 (released in 2005) is technically a larger number than 0.3 (released in 2019). If there is a workaround for this issue, please let me know.

Merge request reports