File: 07_fix_FTBFS_perl5.26.patch

package info (click to toggle)
esys-particle 2.3.5%2Bdfsg2-11
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 13,404 kB
  • sloc: cpp: 81,479; python: 5,872; makefile: 1,258; sh: 313; perl: 225
file content (47 lines) | stat: -rw-r--r-- 1,338 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: Fix "Unescaped left brace in regex is illegal" error in perl helper scripts
Origin: vendor
Bug-Debian: https://bugs.debian.org/870821
Forwarded: no
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2017-08-06

--- a/Doc/Notes/makeglos.pl
+++ b/Doc/Notes/makeglos.pl
@@ -46,7 +46,7 @@
 {
    while (<LOGFILE>)
    {
-      if (m/\\newglossarytype\[(.*)\]{(.*)}{(.*)}{(.*)}/)
+      if (m/\\newglossarytype\[(.*)\]\{(.*)}\{(.*)}\{(.*)}/)
       {
          $exttype{$2}{'in'}  = $3;
          $exttype{$2}{'out'} = $4;
@@ -237,7 +237,7 @@
 
          for ($i = 1, $j=-1; $i < $n; $i++)
          {
-            if ($stuff[$i]=~s/{(.+)\\glosslabel{(.+)}}//)
+            if ($stuff[$i]=~s/\{(.+)\\glosslabel\{(.+)}}//)
             {
                $name = $&;
 
--- a/Doc/Tutorial/makeglos.pl
+++ b/Doc/Tutorial/makeglos.pl
@@ -46,7 +46,7 @@
 {
    while (<LOGFILE>)
    {
-      if (m/\\newglossarytype\[(.*)\]{(.*)}{(.*)}{(.*)}/)
+      if (m/\\newglossarytype\[(.*)\]\{(.*)}\{(.*)}\{(.*)}/)
       {
          $exttype{$2}{'in'}  = $3;
          $exttype{$2}{'out'} = $4;
@@ -237,7 +237,7 @@
 
          for ($i = 1, $j=-1; $i < $n; $i++)
          {
-            if ($stuff[$i]=~s/{(.+)\\glosslabel{(.+)}}//)
+            if ($stuff[$i]=~s/\{(.+)\\glosslabel\{(.+)}}//)
             {
                $name = $&;