Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (476701acd0f09066f7e7e8d7542dc3040eeb5b50)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (476701acd0f09066f7e7e8d7542dc3040eeb5b50)
  • Date: Fri, 3 Aug 2018 04:08:46 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

latex/texinfo/DETAILS | 1
latex/texinfo/HISTORY | 4 +
latex/texinfo/PRE_BUILD | 3
latex/texinfo/patches/locales-and-braces.patch | 78
+++++++++++++++++++++++++
4 files changed, 86 insertions(+)

New commits:
commit 476701acd0f09066f7e7e8d7542dc3040eeb5b50
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>

latex/texinfo: fixed endless looping

diff --git a/latex/texinfo/DETAILS b/latex/texinfo/DETAILS
index 9c1d96e..a7a33b5 100755
--- a/latex/texinfo/DETAILS
+++ b/latex/texinfo/DETAILS
@@ -1,5 +1,6 @@
SPELL=texinfo
VERSION=6.5
+ PATCHLEVEL=1
SOURCE=$SPELL-$VERSION.tar.xz
SOURCE2=$SOURCE.sig
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-${VERSION}"
diff --git a/latex/texinfo/HISTORY b/latex/texinfo/HISTORY
index fff930f..a257446 100644
--- a/latex/texinfo/HISTORY
+++ b/latex/texinfo/HISTORY
@@ -1,3 +1,7 @@
+2018-08-03 Pavel Vinogradov <public AT sourcemage.org>
+ * DETAILS, PRE_BUILD, patches/locales-and-braces.patch: added patch to
+ fix endless looping in some info installatiions (for ex. glibc)
+
2017-09-13 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS: version 6.5

diff --git a/latex/texinfo/PRE_BUILD b/latex/texinfo/PRE_BUILD
new file mode 100755
index 0000000..0cab101
--- /dev/null
+++ b/latex/texinfo/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+apply_patch_dir patches
diff --git a/latex/texinfo/patches/locales-and-braces.patch
b/latex/texinfo/patches/locales-and-braces.patch
new file mode 100644
index 0000000..0cc59a7
--- /dev/null
+++ b/latex/texinfo/patches/locales-and-braces.patch
@@ -0,0 +1,78 @@
+From 9031aefb7f180f718db83aec5e2782079455a32f Mon Sep 17 00:00:00 2001
+From: Niko Tyni <nt... AT debian.org>
+Date: Sat, 30 Jun 2018 16:51:13 +0100
+Subject: [PATCH] Update locale handling for Perl 5.28
+
+Perl 5.28 introduced thread-safe locales, where setlocale()
+only affects the locale of the current thread. External code
+like mbrtowc(3) isn't aware of this thread specific locale,
+so we need to explicitly modify the global one instead.
+
+Without this we could enter a busy loop in xspara__add_next()
+(Texinfo::Convert::XSParagraph) for UTF-8 documents when mbrtowc(3)
+returned -1.
+---
+ tp/Texinfo/Convert/XSParagraph/xspara.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/tp/Texinfo/Convert/XSParagraph/xspara.c
b/tp/Texinfo/Convert/XSParagraph/xspara.c
+index 51eea4a..f2d6d1c 100644
+--- a/tp/Texinfo/Convert/XSParagraph/xspara.c
++++ b/tp/Texinfo/Convert/XSParagraph/xspara.c
+@@ -248,6 +248,11 @@ xspara_init (void)
+
+ dTHX;
+
++#if PERL_VERSION > 27 || (PERL_VERSION == 27 && PERL_SUBVERSION > 8)
++ /* needed due to thread-safe locale handling in newer perls */
++ switch_to_global_locale();
++#endif
++
+ if (setlocale (LC_CTYPE, "en_US.UTF-8")
+ || setlocale (LC_CTYPE, "en_US.utf8"))
+ goto success;
+@@ -320,6 +325,10 @@ failure:
+ {
+ success: ;
+ free (utf8_locale);
++#if PERL_VERSION > 27 || (PERL_VERSION == 27 && PERL_SUBVERSION > 8)
++ /* needed due to thread-safe locale handling in newer perls */
++ sync_locale();
++#endif
+ /*
+ fprintf (stderr, "tried to set LC_CTYPE to UTF-8.\n");
+ fprintf (stderr, "character encoding is: %s\n",
+--
+2.17.0
+
+>From 1f27900352e04ff4f19bec1c1e9635adad2be31c Mon Sep 17 00:00:00 2001
+From: Niko Tyni <nt... AT debian.org>
+Date: Fri, 18 May 2018 10:40:00 +0100
+Subject: [PATCH] Fix unescaped left braces in regexps, deprecated since Perl
+ 5.27.8
+
+This fixes test failures on recent Perl versions.
+---
+ tp/Texinfo/Parser.pm | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tp/Texinfo/Parser.pm b/tp/Texinfo/Parser.pm
+index dc32ca2..c577aa9 100644
+--- a/tp/Texinfo/Parser.pm
++++ b/tp/Texinfo/Parser.pm
+@@ -5478,11 +5478,11 @@ sub _parse_special_misc_command($$$$)
+ }
+ } elsif ($command eq 'clickstyle') {
+ # REMACRO
+- if ($line =~ /^\s+@([[:alnum:]][[:alnum:]\-]*)({})?\s*/) {
++ if ($line =~ /^\s+@([[:alnum:]][[:alnum:]\-]*)(\{\})?\s*/) {
+ $args = ['@'.$1];
+ $self->{'clickstyle'} = $1;
+ $remaining = $line;
+- $remaining =~
s/^\s+@([[:alnum:]][[:alnum:]\-]*)({})?\s*(\@(c|comment)((\@|\s+).*)?)?//;
++ $remaining =~
s/^\s+@([[:alnum:]][[:alnum:]\-]*)(\{\})?\s*(\@(c|comment)((\@|\s+).*)?)?//;
+ $has_comment = 1 if (defined($4));
+ } else {
+ $self->line_error (sprintf($self->__(
+--
+2.17.0



  • [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (476701acd0f09066f7e7e8d7542dc3040eeb5b50), Pavel Vinogradov, 08/03/2018

Archive powered by MHonArc 2.6.24.

Top of Page