Skip Menu |
 

This queue is for tickets about the Math-Pari CPAN distribution.

Report information
The Basics
Id: 109047
Status: resolved
Priority: 0/
Queue: Math-Pari

People
Owner: Nobody in particular
Requestors: TODDR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.0305_01080607



Subject: deprecation warnings in perl 5.22.0
Download (untitled) / with headers
text/plain 3.6k
These deprecation warnings happen when you use perl522 Makefile.PL Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\b{ <-- HERE (.)}/ at libPARI/gphelp line 313. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\b{ <-- HERE }\\b{}/ at libPARI/gphelp line 680. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\b{}\\b{ <-- HERE }/ at libPARI/gphelp line 680. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\`{ <-- HERE a}/ at libPARI/gphelp line 693. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\"{ <-- HERE o}/ at libPARI/gphelp line 695. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\"{ <-- HERE u}/ at libPARI/gphelp line 697. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\'{ <-- HERE e}/ at libPARI/gphelp line 699. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\kbd{ <-- HERE \n\s*/ at libPARI/gphelp line 705. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\d?frac{ <-- HERE \s*((?:[^{}]|\{[^{}]*\})*)}{\s*((?:[^{}]|\{[^{}]*\})*)}/ at libPARI/gphelp line 716. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\d?frac{\s*((?:[^{}]|\{[^{}]*\})*)}{ <-- HERE \s*((?:[^{}]|\{[^{}]*\})*)}/ at libPARI/gphelp line 716. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\b{ <-- HERE ([^}]*)}/ at libPARI/gphelp line 825. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\var\s*{f{ <-- HERE }lag}/ at libPARI/gphelp line 1033. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\b{ <-- HERE (.)}/ at libPARI/gphelp line 313. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\b{ <-- HERE }\\b{}/ at libPARI/gphelp line 680. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\b{}\\b{ <-- HERE }/ at libPARI/gphelp line 680. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\`{ <-- HERE a}/ at libPARI/gphelp line 693. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\"{ <-- HERE o}/ at libPARI/gphelp line 695. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\"{ <-- HERE u}/ at libPARI/gphelp line 697. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\'{ <-- HERE e}/ at libPARI/gphelp line 699. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\kbd{ <-- HERE \n\s*/ at libPARI/gphelp line 705. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\d?frac{ <-- HERE \s*((?:[^{}]|\{[^{}]*\})*)}{\s*((?:[^{}]|\{[^{}]*\})*)}/ at libPARI/gphelp line 716. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\d?frac{\s*((?:[^{}]|\{[^{}]*\})*)}{ <-- HERE \s*((?:[^{}]|\{[^{}]*\})*)}/ at libPARI/gphelp line 716. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\b{ <-- HERE ([^}]*)}/ at libPARI/gphelp line 825. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\var\s*{f{ <-- HERE }lag}/ at libPARI/gphelp line 1033.
This patch addresses the problem.
Subject: patch.txt
Download patch.txt
text/plain 2.9k
diff --git a/modules/Math-Pari/Math-Pari/libPARI/gphelp b/modules/Math-Pari/Math-Pari/libPARI/gphelp index 983b579..a02584d 100644 --- a/modules/Math-Pari/Math-Pari/libPARI/gphelp +++ b/modules/Math-Pari/Math-Pari/libPARI/gphelp @@ -310,7 +310,7 @@ sub apropos_check return if (! /$help/); $_ = $current; - s/\\b{(.)}/\\$1/; s/\{\}//g; + s/\\b\{(.)\}/\\$1/; s/\{\}//g; s/\\pow/^/; s/\\%/%/; s/\\bs/\\/; s/\\\#/\#/g; s,\+\$/\$-,+/-,; if (/ /) { push(@sentence_list,$_); } else { push(@list,$_); } @@ -677,7 +677,7 @@ sub basic_subst s/\\fun\s*\{([^{}]*)\}\s*\{((?:[^{}]|\{[^{}]*\})*)\}\s*\{((?:[^{}]|\{[^{}]*\})*)\}/\\kbd{$1 \\key{$2}($3)}\\sidx{$2}/g; s/\\\\(?=[a-zA-Z])/\\bs /g; - s/\\b{}\\b{}/\\bs\\bs /g; + s/\\b\{\}\\b\{\}/\\bs\\bs /g; s/\\\\/\\bs/g; s/(\'\'|\`\`)/"/g unless $to_pod; # (english) double quotes # asymptotic or isomorphic (~) [beware of ties] @@ -690,19 +690,19 @@ sub basic_subst s/\\(equiv)(?![a-zA-Z])/ = /g; s/\\`a/$tr{agrave}/g; - s/\\`{a}/$tr{agrave}/g; + s/\\`\{a\}/$tr{agrave}/g; s/\\"o/$tr{ouml}/g; - s/\\"{o}/$tr{ouml}/g; + s/\\"\{o\}/$tr{ouml}/g; s/\\"u/$tr{uuml}/g; - s/\\"{u}/$tr{uuml}/g; + s/\\"\{u\}/$tr{uuml}/g; s/\\'e/$tr{eacute}/g; - s/\\'{e}/$tr{eacute}/g; + s/\\'\{e\}/$tr{eacute}/g; s/(^|[^\\])%.*/$1/g; # comments s/\\vadjust\s*\{\s*\\penalty\s*\d+\s*\}//g; # We do not strip %\n, thus: - s/\\kbd{\n\s*/\\kbd{/g; + s/\\kbd\{\n\s*/\\kbd{/g; s/\$\\bf(\b|(?=[\d_]))\s*([^\$]+)\$/\$$tr{startbcode}$1$tr{endbcode}\$/g; s/\$\s*\\,\s*\$//g; # Do not make into $$ s/\$/$tr{dollar}/g; # math mode @@ -713,7 +713,7 @@ sub basic_subst s/\\TeX\{\}/TeX/g; s/\\TeX(\W)/TeX$1/g; s/ *\\circ\b */ o /g; - s/\\d?frac{\s*((?:[^{}]|\{[^{}]*\})*)}{\s*((?:[^{}]|\{[^{}]*\})*)}/($1)\/($2)/g; + s/\\d?frac\{\s*((?:[^{}]|\{[^{}]*\})*)}\{\s*((?:[^{}]|\{[^{}]*\})*)}/($1)\/($2)/g; s(\\d?frac\s*(\d)\s*(\d))(($1/$2))g; s[{\s*(\w)\s*\\over(?![a-zA-Z])\s*(\w)\s*}]{($1/$2)}g; s[{\s*((?:[^{}]|\{[^{}]*\})*)\\over(?![a-zA-Z])\s*((?:[^{}]|\{[^{}]*\})*)}][($1)/($2)]g; @@ -822,7 +822,7 @@ sub basic_subst s/\\var\{([^\}]*)\}/$tr{startit}$1$tr{endit}/g; s/\\fl(?![a-zA-Z])/$tr{startit}flag$tr{endit}/g; - s/\\b{([^}]*)}/$tr{startcode}\\$1$tr{endcode}/g; + s/\\b\{([^}]*)}/$tr{startcode}\\$1$tr{endcode}/g; s/\\kbdsidx/\\sidx/g; s/\\sidx\{[^\}]*\}//g unless $to_pod; s/\\[a-zA-Z]*idx\{([^\}]*)\}/$1/g unless $to_pod; @@ -1030,7 +1030,7 @@ sub TeXprint_topod { # s/\\(?:key|li)\s*{(.*)}\s*{}[ \t]*\n/\n\n=back\n\n$1\n\n=over\n\n/mgs; # s/\\(key|var)(?![a-zA-Z])\s*{(\w+)}/C<$2>/mg; s/\\var\s*{\Q$tr{startindex}\E(\w+)\Q$tr{endindex}\E(\w+)}/$tr{startindex}$1$tr{endindex}$tr{startcode}$2$tr{endcode}/mgo; - s/\\var\s*{f{}lag}/$tr{startcode}flag$tr{endcode}/mg; + s/\\var\s*\{f\{\}lag\}/$tr{startcode}flag$tr{endcode}/mg; s/\\metax(?![a-zA-Z])\s*{(.*)}\s*{\s*(\w+)(?=C\<)(.*)}[ \t]*\n/\n\n=item C<L<$2>$3>\n\n$1\n\n/mg; s/\\metax(?![a-zA-Z])\s*{(.*)}\s*{(.*)}[ \t]*\n/\n\n=item C<$2>\n\n$1\n\n/mg;
Looks like the fix was put in place even though I see not notes in this ticket.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.