From ffb6df6f4a5cf2c707ae7b948a20b8bba639747b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 14 Mar 2013 10:24:36 -0400 Subject: [PATCH] libnm-glib,libnm-util: -glib requires -util, -util requires NetworkManager libnm-glib's public headers include headers from libnm-util. While it does work to just $(pkg-config --cflags --libs libnm-glib), this is only because libnm-glib has a requires on NetworkManager which happens to use the same include directory as libnm-util. The correct dependency chain is thus: libnm-glib -> libnm-util -> NetworkManager Signed-off-by: Colin Walters --- libnm-glib/libnm-glib.pc.in | 2 +- libnm-util/libnm-util.pc.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libnm-glib/libnm-glib.pc.in b/libnm-glib/libnm-glib.pc.in index 754c43daa5..2b4e699674 100644 --- a/libnm-glib/libnm-glib.pc.in +++ b/libnm-glib/libnm-glib.pc.in @@ -6,7 +6,7 @@ includedir=@includedir@ Name: libnm-glib Description: Convenience library for clients of NetworkManager Version: @VERSION@ -Requires: NetworkManager >= @VERSION@ gobject-2.0 dbus-glib-1 +Requires: libnm-util >= @VERSION@ NetworkManager >= @VERSION@ gobject-2.0 dbus-glib-1 Cflags: -I${includedir}/libnm-glib Libs: -L${libdir} -lnm-glib diff --git a/libnm-util/libnm-util.pc.in b/libnm-util/libnm-util.pc.in index a6e8ee5959..4f1ff3ef0e 100644 --- a/libnm-util/libnm-util.pc.in +++ b/libnm-util/libnm-util.pc.in @@ -6,7 +6,7 @@ includedir=@includedir@ Name: libnm-util Description: Convenience library for clients of NetworkManager Version: @VERSION@ -Requires: glib-2.0 dbus-glib-1 +Requires: NetworkManager >= @VERSION@ glib-2.0 dbus-glib-1 Cflags: -I${includedir}/NetworkManager Libs: -L${libdir} -lnm-util