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 nt...@debian.org
>From 771ef328dcc4adc169b11334a3a9d940db82d250 Mon Sep 17 00:00:00 2001 From: Niko Tyni <nt...@debian.org> Date: Sun, 15 Sep 2024 09:03:46 +0100 Subject: [PATCH] include t1tables.h for FT_Has_PS_Glyph_Names This is no longer pulled in by ftmm.h since FreeType 2.13.3 --- FT2/freetyp2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FT2/freetyp2.c b/FT2/freetyp2.c index 87d5e571..92011f38 100644 --- a/FT2/freetyp2.c +++ b/FT2/freetyp2.c @@ -47,6 +47,9 @@ Truetype, Type1 and Windows FNT. #include FT_MULTIPLE_MASTERS_H #endif #endif +#ifdef FT_TYPE1_TABLES_H +#include FT_TYPE1_TABLES_H +#endif static void ft2_push_message(int code); -- 2.45.2