From b603bf123a5153630f6fcb3e4c755f2c8b942426 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Fri, 18 Mar 2011 15:20:23 +0000 Subject: 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. --- usr.bin/pkg-config/pkg-config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/pkg-config') 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 @@ -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; } } -- cgit v1.2.3