This patch correct the inclusion of freetype. Without it, avifile will not compile with freetype-2.1.7 Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 27086 [details, diff] patch to correct the inclusion of freetype
works perfect for me (~x86) I hope to see this soon in portage!
It seems the patch fixes this bug when freetype-2.1.9 is installed, at least for me. ;) c++ -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include -D_REENTRANT -I/usr/include/freetype2 -I./../../drivers/vidix -DVIDIX_LIBDIR=\"/usr/lib/avifile-0.7/vidix/\" -I./../subtitles -Wall -Wno-unused -I../../include -O2 -mcpu=i686 -march=i686 -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pipe -c renderer.cpp -fPIC -DPIC -o renderer.lo In file included from sub_ft.cpp:9: /usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /usr/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /usr/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" make[2]: *** [sub_ft.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.38.20030710-r1/work/avifile-0.7-0.7.38/lib/video'
Please check if avifile-0.7.41.20041001.ebuild works for you. No need to patch old versions if newer ones work fine.
No reaction -> closing
actually there is a need to patch older versions... as soon as the newer freetype gets exposed ppl will build everything in the tree against it. For example the new 2004 snapshot are marked -sparc, so sparc ppl will have this problem with the older versions. And anyone running non-x86 stable atm will also see this.
Reminding myself to bump this tommorow...