summaryrefslogtreecommitdiff
path: root/usr.bin/pkg-config
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2013-05-30 00:02:03 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2013-05-30 00:02:03 +0000
commitad22f5453f619ff31251460e944183b701cf0d32 (patch)
treec597fa5cf71acd8df156d82ce4fb27ccf196cd53 /usr.bin/pkg-config
parent1c9e6f3293b6d3d51814efaba31c013c2a531f2b (diff)
adjust error message for empty files to display the full path to the file,
helps in case the file exists in multiple locations. this also matches fd.o.
Diffstat (limited to 'usr.bin/pkg-config')
-rw-r--r--usr.bin/pkg-config/pkg-config6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config
index eeaa2791e1b..559ff65bbe6 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.79 2013/03/31 13:58:01 brad Exp $
+# $OpenBSD: pkg-config,v 1.80 2013/05/30 00:02:02 jasper Exp $
# $CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $
# Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org>
@@ -358,9 +358,7 @@ sub validate_config
# Check if we're dealing with an empty file, but don't error out just
# yet, we'll do that when we realize there's no Name field.
if (stat($f)->size == 0) {
- my $p = $f;
- $p =~ s/(^.*\/)(.*?)$/$2/g;
- say_error("Package file '$p' appears to be empty");
+ say_error("Package file '$f' appears to be empty");
}
foreach (@required_elems) {