hello, the pango-1.1.0-slighthint.patch breaks pango 1.1.3 when compiling it with the xfree-4.2.99.3.ebuild's xft. i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/etc\" -DLIBDIR=\"/usr/lib\" -DMODULE_VERSION=\"1.1.0\" -DG_DISABLE_DEPRECATED -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/X11R6/include -I.. -march=athlon-xp -O3 -pipe -g -Wall -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c pangoft2.c -fPIC -DPIC -o pangoft2.lo pangoft2.c: In function `pango_ft2_font_get_face': pangoft2.c:225: `FC_HINT_STYLE' undeclared (first use in this function) pangoft2.c:225: (Each undeclared identifier is reported only once pangoft2.c:225: for each function it appears in.) pangoft2.c:226: `FC_HINT_FULL' undeclared (first use in this function) pangoft2.c:228: `FC_HINT_NONE' undeclared (first use in this function) pangoft2.c:232: `FC_HINT_SLIGHT' undeclared (first use in this function) pangoft2.c:233: `FT_HINT_NO_INTEGER_STEM' undeclared (first use in this function ) pangoft2.c:233: `FT_HINT_NO_VSTEM_ALIGN' undeclared (first use in this function) pangoft2.c:235: `FC_HINT_MEDIUM' undeclared (first use in this function) pangoft2.c:263: warning: implicit declaration of function `FT_Set_Hint_Flags' make[3]: *** [pangoft2.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/pango-1.1.3/work/pango-1.1.3/pango' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/pango-1.1.3/work/pango-1.1.3/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/pango-1.1.3/work/pango-1.1.3' make: *** [all-recursive-am] Error 2 !!! ERROR: x11-libs/pango-1.1.3 failed. !!! Function src_compile, Line 47, Exitcode 2 !!! serial make failed pango compiles without errors when I comment out the following line in the ebuild. # epatch ${FILESDIR}/pango-1.1.0-slighthint.patch im not sure if commenting this out is the appropriate fix. thanks! sa
The new version of xfree-4.2.1 overwrites the Xft.h belonging to xft-2.0. Remerging xft will fix the problem.
This bug only applies to xfree-4.2.99.3, which uses its own xft2. If I try to use the xft2.0 ebuild for xfree-4.2.99.3 it breaks. I figured out this bug is because gentoo's fonconfig is patched with /usr/portage/media-libs/fontconfig/files/patch/fontconfig-0.0.1.020811.1151-slighthint.patch, and xfree-4.2.99.3's fontconfig isnt patched with it. Again xfree-4.2.99.3 has to use its internal fontconfig or else fonts wont work.
dunno if this is still valid with 4.2.99.3?
It depends. If you remerge fontconfig and then the xfree-4.2.99.3-r1 I commited a few moments ago that again remove the fontconfig stuff after the change to site.def, it should work fine.
Like I said, with latest versions of xfree, fontconfig, xft and freetype it works.