Hello, Thanks for investigating this bug.
On Tue, Aug 08, 2017 at 04:13:47PM -0400, gregor herrmann wrote: > Control: tag -1 + patch > > On Mon, 07 Aug 2017 11:58:29 -0400, Lucas Nussbaum wrote: > > > > Unescaped left brace in regex is illegal here in regex; marked by <-- > > > HERE in m/\\end{ <-- HERE document}/ at > > > /usr/share/perl5/Locale/Po4a/TransTractor.pm line 643. > > > debian/rules:13: recipe for target 'override_dh_auto_build' failed > > > make[1]: *** [override_dh_auto_build] Error 255 > > That's an interesting bug. > > The error is in /usr/share/perl5/Locale/Po4a/TransTractor.pm:643 > which is > my $found = scalar grep { /$position/ } @{$self->{TT}{doc_out}}; > and $position (comes from addendum_parse() in the same file and) > contains '\\end{document}' at that point. > > And this '\\end{document}' itself comes from files in the > packaging-tutorial po4a directory. > > So I don't know if po4a needs a generic fix, or packaging-tutorial > needs to change how it uses it. I would be unable to generate a patch for the first option. My perl is rather rotten nowadays. I think that the second option is sensible: packaging-tutorial is providing some code that is interpreted by po4a, so it should ensure that it provides correct code. > I'm attaching a patch for the second option. Many thanks for that. It looks great to me. Bye, Mt. -- The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!" (I found it!) but "That's funny ..." --- Isaac Asimov
signature.asc
Description: PGP signature