diff options
author | mat <mat@FreeBSD.org> | 2018-03-29 00:52:54 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2018-03-29 00:52:54 +0800 |
commit | 6714bf68b87af33984c61987034a3aa06373c655 (patch) | |
tree | a83c54fd533ca6d2012cc55d3f614244b45606b9 /net | |
parent | 67dd4bd4e7f65e2a0cf33deb5937cd16f11f7688 (diff) | |
download | freebsd-ports-gnome-6714bf68b87af33984c61987034a3aa06373c655.tar.gz freebsd-ports-gnome-6714bf68b87af33984c61987034a3aa06373c655.tar.zst freebsd-ports-gnome-6714bf68b87af33984c61987034a3aa06373c655.zip |
Fix build with Perl 5.26.
Unescaped left brace in regex is illegal in regex when not used as a
quantifier.
- /foo{3}/ will match foofoofoo.
- /\\new{bar}/ is illegal and should be written as /\\new\{bar}/.
PR: 226817
Sponsored by: Absolight
Diffstat (limited to 'net')
-rw-r--r-- | net/ldapsdk/files/patch-ldap_build_replace.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/ldapsdk/files/patch-ldap_build_replace.pm b/net/ldapsdk/files/patch-ldap_build_replace.pm new file mode 100644 index 000000000000..cda71784b04a --- /dev/null +++ b/net/ldapsdk/files/patch-ldap_build_replace.pm @@ -0,0 +1,11 @@ +--- ldap/build/replace.pm.orig 2011-01-06 12:05:39 UTC ++++ ldap/build/replace.pm +@@ -62,7 +62,7 @@ sub GenerateHeader ($$\%) { + while(<TEMPLATE>) { + my $line = $_; + while(($orig, $replace) = each %$keywords) { +- $line =~ s/{{$orig}}/$replace/g; ++ $line =~ s/\{\{$orig}}/$replace/g; + } + + # the first line is a comment specific to the template file, which we |