freebsd-ports/net/ldapsdk/files/patch-ldap_build_replace.pm
Mathieu Arnold 8ca44828b2 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
2018-03-28 16:52:54 +00:00

11 lines
410 B
Raku

--- 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