Bug#799888: libfont-freetype-perl: FTBFS on many architectures

Edmund Grimley Evans edmund.grimley.evans at gmail.com
Wed Sep 23 18:41:09 UTC 2015


Source: libfont-freetype-perl
Version: 0.06-1

It's failing to build on architectures with plain char unsigned:

https://buildd.debian.org/status/package.php?p=libfont-freetype-perl&suite=sid

A couple of tests are failing:

not ok 601 - no fallback glyph
not ok 603 - missing glyph has horizontal advance

I think the corresponding code is lines 197-202 here:

https://sources.debian.net/src/libfont-freetype-perl/0.06-1/t/10metrics_verasans.t/

In both cases there is a call to glyph_from_char with the first
argument a non-ASCII character, '˗'.

This is not supposed to work, according to line 21 here:

https://sources.debian.net/src/libfont-freetype-perl/0.06-1/TODO/

Line 808 of 
https://sources.debian.net/src/libfont-freetype-perl/0.06-1/FreeType.xs/
might be the implementation of how the char is converted:

char_code = *str;

If that's it, it's no surprise that it doesn't work on non-ASCII
characters. Presumably the tests pass by accident on architectures
where plain char is signed.

You could just disable the failing tests, though it probably wouldn't
be hard to make glyph_from_char work properly.



More information about the pkg-perl-maintainers mailing list