[cc:ing vorlon as the author of 001_no_export_freetype.diff in the xft package]
On Thu, Sep 28, 2006 at 02:12:25 +0200, Jörg Sommer wrote: > the site http://rerun.lefant.net/checklib/ pointed me to the problem that > my package xjed defines too much dependencies: > http://rerun.lefant.net/checklib/log.xjed_0.99.18-5.html I could track > down this problem to > > % pkg-config --libs xft > -lXft -lfontconfig > > According the site above the linker option -lfontconfig is not necessary. > I think the following patch should fix this. It gives the following results: $ pkg-config --libs xft -lXft $ pkg-config --static --libs xft -lXft -lXrender -lfontconfig -lexpat -lfreetype -lz $ pkg-config --cflags xft -I/usr/include/freetype2 $ pkg-config --static --cflags xft -I/usr/include/freetype2 which I think are correct (this is with pkg-config 0.21-1). Unfortunately Requires.private isn't documented and its handling isn't consistent (see #390132), so I'm not completely sure this is the right thing to do :) Cheers, Julien Index: xft/xft.pc.in =================================================================== --- xft.orig/xft.pc.in 2007-03-30 13:12:17.000000000 +0200 +++ xft/xft.pc.in 2007-03-30 13:49:19.000000000 +0200 @@ -6,7 +6,7 @@ Name: Xft Description: X FreeType library Version: @VERSION@ -Requires: xproto, xrender, fontconfig, freetype2 +Requires: xproto Requires.private: xrender, fontconfig, freetype2 Cflags: -I${includedir} Libs: -L${libdir} -lXft
signature.asc
Description: Digital signature