Move internal/private dependencies to Requires.private
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 5 Sep 2014 00:46:40 +0000 (01:46 +0100)
committerUli Schlachter <psychon@znc.in>
Fri, 3 Oct 2014 21:53:54 +0000 (23:53 +0200)
commit382d306d6c44a9ece5551c210a932773b5cb94a5
treec62697721384c02e88835d8fb6c72be67dc80433
parentb0e6c2de09c7474868dd7185674fa113a5c2e0aa
Move internal/private dependencies to Requires.private

Program using the xcb sub-modules has indirect compile and runtime
dependency of core xcb. To ensure this out we currently list xcb in
the Requires field of the pkg-config files. While this provides all
the required dependencies for successful compilation this causes
over-linking and hides potential linking miss-use against the xcb modules.

By moving to Requires.private we retain the compilation and runtime
compatibility and avoids any runtime problems.

Cc: Keith Packard <keithp@keithp.com>
Cc: Alan Coopersmith <alan.coopersmith@oracle.com>
References: http://people.freedesktop.org/~dbn/pkg-config-guide.html#faq
References: https://wiki.mageia.org/en/Overlinking_issues_in_packaging
References: http://err.no/personal/blog/2008/Mar/25
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Uli Schlachter <psychon@znc.in>
27 files changed:
check-pc-requires
xcb-composite.pc.in
xcb-damage.pc.in
xcb-dpms.pc.in
xcb-dri2.pc.in
xcb-dri3.pc.in
xcb-glx.pc.in
xcb-present.pc.in
xcb-randr.pc.in
xcb-record.pc.in
xcb-render.pc.in
xcb-res.pc.in
xcb-screensaver.pc.in
xcb-shape.pc.in
xcb-shm.pc.in
xcb-sync.pc.in
xcb-xevie.pc.in
xcb-xf86dri.pc.in
xcb-xfixes.pc.in
xcb-xinerama.pc.in
xcb-xinput.pc.in
xcb-xkb.pc.in
xcb-xprint.pc.in
xcb-xselinux.pc.in
xcb-xtest.pc.in
xcb-xv.pc.in
xcb-xvmc.pc.in