gnome-base/libgnomeprint-2.18.8 fails to build with new freetype. freetype is installing header files in /usr/include/freetype2 and libgnomeprint is looking in /usr/include/freetype. I worked around by ln -sf /usr/include/freetype2 /usr/include/freetype after the ln libgnomeprint builds without issue
Fixed without a revision bump, thanks for reporting. + 17 Mar 2014; Alexandre Rostovtsev <tetromino@gentoo.org> + libgnomeprint-2.18.8.ebuild, + +files/libgnomeprint-2.18.8-freetype-2.5.1.patch: + Fix building with >=freetype-2.5.1 (bug #504850, thanks to Harris + Landgarten).
the patch is not needed with freetype 2.4.11, which is the current stable version, because freetype's includes are installed in /usr/include/freetype2 (so the missing file is /usr/include/freetype2/freetype/ftoutln.h)
(In reply to Fabio Rossi from comment #2) But libgnomeprint-2.18.8 with the patch still builds with freetype-2.4.11, correct?
> But libgnomeprint-2.18.8 with the patch still builds with freetype-2.4.11, > correct? No, it fails, without the patch libgnomeprint-2.18.8 compiles correctly
I guess we can simply apply the patch on a revbump that would go to stable with newer freetype
(In reply to Pacho Ramos from comment #5) > I guess we can simply apply the patch on a revbump that would go to stable > with newer freetype I am 99% sure there is a way to patch gnomeprint so that it works with both versions of freetype. I thought that I got it right, but it seems I missed something. Rebuilding my stable chroot now to investigate...
Ah, ok, in that case no problem :) I was thinking that maybe it wouldn't deserve the effort as old freetype will likely be punted once the security fixed version is stabilized but, of course, making it compatible with both is much more elegant ;)
+ 17 Mar 2014; Alexandre Rostovtsev <tetromino@gentoo.org> + libgnomeprint-2.18.8.ebuild, files/libgnomeprint-2.18.8-freetype-2.5.1.patch: + Fix patch to work with both freetype-2.4.11 and >=2.5.1 (bug #504850, thanks + to Fabio Rossi).
tested, thanks!
(In reply to Alexandre Rostovtsev from comment #8) > + 17 Mar 2014; Alexandre Rostovtsev <tetromino@gentoo.org> > + libgnomeprint-2.18.8.ebuild, > files/libgnomeprint-2.18.8-freetype-2.5.1.patch: > + Fix patch to work with both freetype-2.4.11 and >=2.5.1 (bug #504850, > thanks > + to Fabio Rossi). ahem,... How about just #include <ft2build.h> #include FT_BBOX_H #include FT_GLYPH_H #include FT_OUTLINE_H instead of that include path hackery ?
(In reply to Rafał Mużyło from comment #10) > ahem,... > > How about just > > #include <ft2build.h> > #include FT_BBOX_H > #include FT_GLYPH_H > #include FT_OUTLINE_H > > instead of that include path hackery ? Because I can't read, thought it was FT_FTBBOX_H not FT_BBOX_H, and of course discovered that it wasn't working with 2.4.11 :)