summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}