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

Bug 459482

Summary: x11-libs/libXft: freetype should be in Requires, not Requires.private
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED INVALID    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 459352    

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2013-02-27 11:56:32 UTC
This is unfortunate but the problem is:

/usr/include/X11/Xft/Xft.h:39:22: fatal error: ft2build.h: No such file or directory


So Xft adds a dependency on freetype on all its users. Since it's using Requires.private, it does not get added by default to the list of packages, but then, it fails this way.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-27 22:26:16 UTC
I'm afraid I don't understand the issue.

As far as I'm aware, Requires.private is supposed to be followed when obtaining cflags.

$ pkg-config --cflags xft
-I/usr/lib64/freetype2/include/freetype2 -I/usr/lib64/freetype2/include  

$ qlist freetype | grep ft2build
/usr/lib32/freetype2/include/ft2build.h
/usr/lib64/freetype2/include/ft2build.h
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-02-28 06:12:10 UTC
You're right. The packages need to discover xft through pkg-config as well for this to work though.