From 926c576bd4d56ed0e421b07e0b8c5f70bfe1f4d8 Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 26 Oct 2015 18:08:44 +0000 Subject: [PATCH] Don't reject properties with no whitespace after the colon; it's perfectly valid to have a line like 'Requires:requiree'. Confirmed with fd.o and this fixes using the libczmq pc file --- usr.bin/pkg-config/OpenBSD/PkgConfig.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/pkg-config/OpenBSD/PkgConfig.pm b/usr.bin/pkg-config/OpenBSD/PkgConfig.pm index 28227e730d8..6b4791335e9 100644 --- a/usr.bin/pkg-config/OpenBSD/PkgConfig.pm +++ b/usr.bin/pkg-config/OpenBSD/PkgConfig.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PkgConfig.pm,v 1.5 2014/03/31 18:16:24 jasper Exp $ +# $OpenBSD: PkgConfig.pm,v 1.6 2015/10/26 18:08:44 jasper Exp $ # # Copyright (c) 2006 Marc Espie # @@ -108,7 +108,7 @@ sub read_fh s/(?add_variable($1, $2); - } elsif (m/^([\w.]*)\:\s+(.*)$/) { + } elsif (m/^([\w.]*)\:\s*(.*)$/) { $cfg->add_property($1, $2); } elsif (m/^([\w.]*)\:\s*$/) { $cfg->add_property($1); -- 2.20.1