On Mon, Dec 30, 2013 at 5:53 AM, Patrick Matthäi <pmatth...@debian.org> wrote: > Hi Dan, > > see below. This also should be fixed upstream to work with recent > freetype versions. > Thanks! > > Am 28.12.2013 19:12, schrieb David Suárez: >> Source: mlt >> Version: 0.9.0-2 >> Severity: serious >> Tags: jessie sid >> User: debian...@lists.debian.org >> Usertags: qa-ftbfs-20131226 qa-ftbfs >> Justification: FTBFS on amd64 >> >> Hi, >> >> During a rebuild of all packages in sid, your package failed to build on >> amd64. >> >> On the new 2.5 version the headers are located at >> '/usr/include/freetype2/ftglyph.h' instead of >> '/usr/include/freetype2/freetype/ftglyph.h' like in previous versions. >> >> Relevant part (hopefully): >>> cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat >>> -Werror=format-security -DARCH_X86_64 -Wall -DPIC -O2 -pipe >>> -fno-tree-dominator-opts -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE >>> -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pthread >>> -DARCH_X86_64 -Wall -DPIC -O2 -pipe -fno-tree-dominator-opts >>> -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g >>> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pthread -I../.. >>> -DARCH_X86_64 -Wall -DPIC -O2 -pipe -fno-tree-dominator-opts >>> -fno-tree-pre -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g >>> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pthread `pkg-config >>> --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0` `pkg-config >>> --cflags pangoft2` -D_FORTIFY_SOURCE=2 -c -o producer_pango.o >>> producer_pango.c >>> producer_pango.c:28:31: fatal error: freetype/freetype.h: No such file or >>> directory >>> #include <freetype/freetype.h> >>> ^ >>> compilation terminated. >>> make[3]: *** [producer_pango.o] Error 1 >> >> The full build log is available from: >> http://aws-logs.debian.net/ftbfs-logs/2013/12/26/mlt_0.9.0-2_unstable.log >>
What a major pain. This alone fails because we are using pkg-config --cflags pangoft2: diff --git a/src/modules/gtk2/producer_pango.c b/src/modules/gtk2/producer_pango.c index 4969dd2..ba902bd 100644 --- a/src/modules/gtk2/producer_pango.c +++ b/src/modules/gtk2/producer_pango.c @@ -25,7 +25,7 @@ #include <string.h> #include <gdk-pixbuf/gdk-pixbuf.h> #include <pango/pangoft2.h> -#include <freetype/freetype.h> +#include <freetype.h> #include <iconv.h> #include <pthread.h> #include <ctype.h> Adding pkg-config --cflags freetype2 does not help on any of my other systems because of that old freetype subdirectory. So, I have to resort to this ugly hack because `pkg-config --cflags-only-I freetype2` (assuming it only ever outputs one -I) has a trailing space: diff --git a/src/modules/gtk2/Makefile b/src/modules/gtk2/Makefile index b4fb3ff..4a3f5cb 100644 --- a/src/modules/gtk2/Makefile +++ b/src/modules/gtk2/Makefile @@ -35,6 +35,7 @@ endif ifdef USE_PANGO OBJS += producer_pango.o CFLAGS += `pkg-config $(PKGCONFIG_PREFIX) --cflags pangoft2` +CFLAGS += `pkg-config --cflags-only-I freetype2 | sed 's/ *$$//g')`/freetype LDFLAGS += `pkg-config $(PKGCONFIG_PREFIX) --libs pangoft2` ifeq ($(targetos),Darwin) LDFLAGS += -liconv -- +-DRD-+ -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org