Red Hat Bugzilla – Bug 185421
pkg-config --list-all fails due to xfont.pc needing fontenc.pc
Last modified: 2007-11-30 17:11:27 EST
Description of problem:
pkg-config --list-all fails with the error:
Package fontenc was not found in the pkg-config search path.
It turns out, with debugging enabled, that this occurs because the package
'libXfont-devel' installs a pkg-config xfont.pc file which includes the line:
Requires.private: fontenc freetype2
Yet, libXfont-devel does not have a dependency on libfontenc-devel, and so this
So far as I can see, either (1) libXfont-devel needs a dependency on
libfontenc-devel OR (2) the pkg-config configuration xfont.pc should be edited
to remove this dependency from the build process.
The Requires.private stuff is only used when static linking I believe, however
we only ship the dynamic libraries. So, while Requires.private is still
relevent, it isn't used by anything in practice as far as I'm aware.
I'm more inclined to add an additional (and possibly unnecessary) dependency
on fontenc/freetype2 though than to patch the upstream *.pc files and keep
forked versions of them in our tree.
*** This bug has been marked as a duplicate of 185778 ***