Skip to content
  • Gaetan Nadon's avatar
    config: declare xserver private dependencies in xorg-server.pc · 32c706c4
    Gaetan Nadon authored and Keith Packard's avatar Keith Packard committed
    
    
    Any module (drivers) depending on xserver also depends on some of the
    server private dependencies. Any driver including xf86.h depends on
    xext, kbproto, inputproto and randr.
    
    These dependencies are in separate packages, so anything can happen,
    removal, wrong version, etc... and the driver fails during compilation.
    Having the private dependencies declared will ensure all packages the
    server depends on are present and at the correct version.
    
    Currently each module attempts to check for server dependencies with
    various degrees of accuracy. With this patch, the driver will only need
    to check for its own explicit dependencies.
    
    Now that xproto is included in Requires.private it is removed from Requires.
    All the cflags from both Requires and Requires.private are returned
    to caller to pkg-config.
    
    Reviewed-by: default avatarDan Nicholson <dbn.lists@gmail.com>
    Signed-off-by: default avatarGaetan Nadon <memsize@videotron.ca>
    Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
    32c706c4