Bug#1081821: libimager-perl: FTBFS with freetype 2.13.3: implicit declaration of function 'FT_Has_PS_Glyph_Names'

Niko Tyni ntyni at debian.org
Sun Sep 15 09:14:25 BST 2024


Source: libimager-perl
Version: 1.024+dfsg-1
Severity: serious
Tags: patch

This package fails to build from source on current sid.

  https://perl.debian.net/rebuild-logs/sid/libimager-perl_1.024+dfsg-1/libimager-perl_1.024+dfsg-1.buildlog

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/arm64/libimager-perl.html

   make[3]: Entering directory '/<<PKGBUILDDIR>>/FT2'
   cp FT2.pm ../blib/lib/Imager/Font/FT2.pm
   Running Mkbootstrap for FT2 ()
   chmod 644 "FT2.bs"
   "/usr/bin/perl" "/usr/share/perl/5.38.2/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.38/ExtUtils/typemap' -typemap '/<<PKGBUILDDIR>>/FT2/typemap'  FT2.xs > FT2.xsc
   mv FT2.xsc FT2.c
   x86_64-linux-gnu-gcc -c  -I.. -I/usr/include/freetype2 -I/usr/include/libpng16  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"1.000\" -DXS_VERSION=\"1.000\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.38/CORE" -DOS_linux     freetyp2.c
   freetyp2.c: In function ‘i_ft2_glyph_name’:
   freetyp2.c:1142:25: error: implicit declaration of function ‘FT_Has_PS_Glyph_Names’; did you mean ‘FT_Get_Glyph_Name’? [-Wimplicit-function-declaration]
    1142 |   if (reliable_only && !FT_Has_PS_Glyph_Names(handle->face)) {
         |                         ^~~~~~~~~~~~~~~~~~~~~
         |                         FT_Get_Glyph_Name
   make[3]: *** [Makefile:330: freetyp2.o] Error 1

AFAICS it regressed with freetype 2.13.3+dfsg-1, specifically upstream
commit

  https://gitlab.freedesktop.org/freetype/freetype/-/commit/4a85db7e3181f23126af6c4473b245e48f6b1902

as <freetype/t1tables.h> is no longer pulled in by <freetype/ftmm.h>.

The attached patch makes the package build again for me.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-include-t1tables.h-for-FT_Has_PS_Glyph_Names.patch
Type: text/x-diff
Size: 667 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20240915/77f281b5/attachment.patch>


More information about the pkg-perl-maintainers mailing list