diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2013-06-12 13:31:00 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2013-06-12 13:31:00 +0000 |
commit | 6d9dbc39f1aa3d2b01fe9f0943ae5d9904e40ab3 (patch) | |
tree | 03a9385c8ecba65a34c95f0eb0247d55974c2d1c /usr.bin | |
parent | 461cb4fa5cd8d367e63e883b68b5bd3702d02c6f (diff) |
drop any quotes from variables when pulling them out of the .pc file;
fixes parsing of the upstream freetype2.pc file.
original issue spotted by matthieu@
w/ espie@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/pkg-config/OpenBSD/PkgConfig.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pkg-config/OpenBSD/PkgConfig.pm b/usr.bin/pkg-config/OpenBSD/PkgConfig.pm index 5972b44fc0f..073b487134c 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.2 2012/07/08 07:58:26 espie Exp $ +# $OpenBSD: PkgConfig.pm,v 1.3 2013/06/12 13:30:59 jasper Exp $ # # Copyright (c) 2006 Marc Espie <espie@openbsd.org> # @@ -58,7 +58,7 @@ sub add_variable die "Duplicate variable $name"; } push(@{$self->{vlist}}, $name); - $self->{variables}->{$name} = $value; + $self->{variables}->{$name} = ($value =~ s/^\"|\"$//rg); } sub parse_value |