Bug 5166

Summary: pkg-config .pc files lack dependencies
Product: xorg Reporter: Egmont Koblinger <egmont>
Component: Build/ModularAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: high    
Version: 6.99.99.902 (7.0 RC2)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Egmont Koblinger 2005-11-26 03:15:35 UTC
.pc files miss one of the coolest features of pkg-config, that is, to be able
to track dependencies. To make them provide this information, please add a
proper "Requires:" field to the .pc files shipped by the new modular X.Org.

For example, libSM/sm.pc.in should contain a line like this:
Requires: xproto ice
and similar for most other .pc files throughout the whole X.Org.

(As a maintainer of a distribution now I'm creating packages from X.Org 7.0-rc2,
where (as in most distributions) the libraries are split into two binary
packages: the runtime and the development package. Pkg-config is the only clear
and reliable way to automatically discover the dependencies amongst the -devel
packages in the build system, e.g. to automatically find out that libsm-devel
requires libice-devel and so on. Other methods, e.g. parsing the header files,
.la files or manually maintaining these pieces of information all suck for
various reasons, while with pkg-config this works perfectly (proven by Gnome).
So having the .pc files properly filled out would be a huge help, I hope that
not only for me :-))
Comment 1 Alan Coopersmith 2005-11-26 05:47:39 UTC
Already fixed in CVS head after the RC2 release.

*** This bug has been marked as a duplicate of 4037 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.