From 3d502159e6a3636620c039c4bad111b05db13560 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 25 Jul 2011 17:03:06 -0500 Subject: [PATCH] pkg: use exact same error message as pkg-config when dependency is unresolvable --- pkg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg.c b/pkg.c index 969fb11..d0e597c 100644 --- a/pkg.c +++ b/pkg.c @@ -52,9 +52,12 @@ pkg_traverse(pkg_t *root, continue; pkgdep = pkg_find(node->package); - if (pkgdep == NULL) + if (pkgdep == NULL) { - fprintf(stderr, "dependency '%s' is not satisfiable, see PKG_CONFIG_PATH\n", node->package); + fprintf(stderr, "Package %s was not found in the pkg-config search path.\n", node->package); + fprintf(stderr, "Perhaps you should add the directory containing `%s.pc'\n", node->package); + fprintf(stderr, "to the PKG_CONFIG_PATH environment variable\n"); + fprintf(stderr, "No package '%s' found\n", node->package); exit(EXIT_FAILURE); }