summaryrefslogtreecommitdiff
path: root/usr.bin/pkg-config
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-18 15:20:23 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-18 15:20:23 +0000
commitb603bf123a5153630f6fcb3e4c755f2c8b942426 (patch)
treeb5c284aea1fac23c440357c3adf29162410f8b23 /usr.bin/pkg-config
parent9b2cc8035affba0af401bcf5e17f2507589c5ab7 (diff)
format the message when a module doesn't validate more like fd.o pkg-config, which will
also be printed when PKG_CONFIG_DEBUG_SPEW isn't set.
Diffstat (limited to 'usr.bin/pkg-config')
-rw-r--r--usr.bin/pkg-config/pkg-config5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config
index 552767e1b96..b653b5d496a 100644
--- a/usr.bin/pkg-config/pkg-config
+++ b/usr.bin/pkg-config/pkg-config
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $OpenBSD: pkg-config,v 1.38 2011/03/18 15:18:13 jasper Exp $
+# $OpenBSD: pkg-config,v 1.39 2011/03/18 15:20:22 jasper Exp $
#$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $
# Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org>
@@ -324,7 +324,8 @@ sub validate_config
foreach (@required_elems) {
$e = $cfg->get_property($_, $variables);
if (!defined $e) {
- print STDERR "incomplete or corrupt file: $f\n" if $D;
+ $f =~ s/(^.*\/)(.*?)\.pc$/$2/g;
+ print STDERR "Package '$f' has no $_: field\n";
return undef;
}
}