Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 509180

Summary: dev-games/cegui - .../work/cegui-0.8.3/cegui/include/CEGUI/FreeTypeFont.h:37:22: fatal error: ft2build.h: No such file or directory
Product: Gentoo Linux Reporter: Philipp <carlphilippreh>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://cegui.org.uk/mantis/view.php?id=1007
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to use cmake's FindFreetype
Ebuild patch

Description Philipp 2014-04-30 13:08:32 UTC
Created attachment 376074 [details, diff]
Patch to use cmake's FindFreetype

CEGUI ships and uses its own version of FindFreetype.cmake which results in

/var/tmp/paludis/dev-games-cegui-0.8.3/work/cegui-0.8.3/cegui/include/CEGUI/FreeTypeFont.h:37:22: fatal error: ft2build.h: No such file or directory

To fix this, I remove cmake/FindFreetype.cmake in src_prepare and also apply a patch that sets FREETYPE_INCLUDE_DIR. The reason for the latter is that cegui_add_dependency(... FREETYPE) expects this to be set while cmake's own FindFreetype.cmake uses FREETYPE_INCLUDE_DIRS (note the plural) instead.
Comment 1 Philipp 2014-04-30 13:10:09 UTC
Created attachment 376076 [details, diff]
Ebuild patch
Comment 2 Julian Ospald 2014-04-30 18:26:35 UTC
# @ECLASS-VARIABLE: CMAKE_REMOVE_MODULES_LIST
# @DESCRIPTION:
# Space-separated list of CMake modules that will be removed in $S during src_prepare,
# in order to force packages to use the system version.
CMAKE_REMOVE_MODULES_LIST="${CMAKE_REMOVE_MODULES_LIST:-FindBLAS FindLAPACK}"
Comment 3 Philipp 2014-04-30 21:29:46 UTC
(In reply to Julian Ospald (hasufell) from comment #2)
> # @ECLASS-VARIABLE: CMAKE_REMOVE_MODULES_LIST
> # @DESCRIPTION:
> # Space-separated list of CMake modules that will be removed in $S during
> src_prepare,
> # in order to force packages to use the system version.
> CMAKE_REMOVE_MODULES_LIST="${CMAKE_REMOVE_MODULES_LIST:-FindBLAS FindLAPACK}"

Thanks, I didn't know about that.
Comment 4 Julian Ospald 2014-05-09 19:39:31 UTC
Problem is, the patch is not upstreamable this way since gentoo hacks FindFreetype.cmake (for good reason).
Comment 6 Julian Ospald 2014-05-09 20:12:26 UTC
+  09 May 2014; Julian Ospald <hasufell@gentoo.org> cegui-0.8.3.ebuild,
+  +files/cegui-0.8.3-freetype.patch:
+  fix build with >=freetype-2.5.1 wrt #509180