self Conflicts

Allan Johns allan-j at moving-picture.com
Tue Apr 7 01:41:41 PDT 2009


Hi,

I would like to use pkg-config's conflicts feature to detect cases where 
different versions of the same library exist within a dependency tree... 
we work with a large number of independently-versioned libraries and 
this sometimes happens.

I have something along the lines of this (file=mylib-3.0.pc):

version=3.0.0
Name: mylib
Description:
Version: ${version}
Conflicts: mylib < 3.0.0
Requires: boost-1.36
Cflags:


however when I pkg-config --cflags mylib-3.0 I get this:

Version 1.36.0 of boost-1.36 creates a conflict.
(mylib < 3.0.0 conflicts with mylib 3.0.0)

boost-1.36 obviously has no reference to my library, so the error 
message doesn't seem to make any sense. Am I doing something wrong, or 
is pkg-config incapable of expressing conflicts between different 
versions of the same library?

thanks in advance,
A



-- 
Allan Johns
Software Engineer
MPC
127 Wardour Street
Soho, London, W1F 0NL
DDI - + 44 (0) 20 7494 7915
Main - + 44 (0) 20 7434 3100
allan-j at moving-picture.com
www.moving-picture.com

Registered in England No. 1191228
Reg Office 26-28 Hammersmith Grove, London, W6 7PE


More information about the pkg-config mailing list