From: jasper Date: Mon, 26 Oct 2015 18:08:44 +0000 (+0000) Subject: Don't reject properties with no whitespace after the colon; it's perfectly X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=926c576bd4d56ed0e421b07e0b8c5f70bfe1f4d8;p=openbsd 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 --- 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);