Don't reject properties with no whitespace after the colon; it's perfectly
authorjasper <jasper@openbsd.org>
Mon, 26 Oct 2015 18:08:44 +0000 (18:08 +0000)
committerjasper <jasper@openbsd.org>
Mon, 26 Oct 2015 18:08:44 +0000 (18:08 +0000)
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

index 28227e7..6b47913 100644 (file)
@@ -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 <espie@openbsd.org>
 #
@@ -108,7 +108,7 @@ sub read_fh
                s/(?<!\\)\#.*//;
                if (m/^([\w.]*)\s*\=\s*(.*)$/) {
                        $cfg->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);