[csw-maintainers] [libxext_devel 0004314]: xext.pc has xextproto as requirement, but no package dependency

Maciej (Matchek) Blizinski maciej at opencsw.org
Sat Feb 27 18:03:03 CET 2010


On Sat, Feb 27, 2010 at 4:10 PM, Roger Håkansson <hson at opencsw.org> wrote:
> Example:
> Package A have liba.so, A_devel a.pc, B libc.so which depends on liba.so,
> and B_devel b.pc which have a.pc as a requirement.
> When building the packages B will have A as a required dependency and
> checkpkg will sugggest that A_devel needs A and B_devel needs B, but not
> that B_devel needs A_devel.

What would the algorithm look like?  Something like this comes to mind:

- parse pkgconfig/*.pc files
- assemble a list of referenced.pc files
- based on /var/sadm/install/contents figure out which packages
provide those files
- require dependency on the found packages

Is already a parser of .pc files?

Maciej


More information about the maintainers mailing list