Bug 1582267 - latex2html 2017.2 has issues with Perl 5.26, chokes on \color, please upgrade
Summary: latex2html 2017.2 has issues with Perl 5.26, chokes on \color, please upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: latex2html
Version: 28
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ben Cotton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-24 16:51 UTC by Pavel Roskin
Modified: 2018-08-22 01:26 UTC (History)
4 users (show)

Fixed In Version: latex2html-2017.2-5.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-22 01:26:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Failing example (98 bytes, text/plain)
2018-05-24 16:52 UTC, Pavel Roskin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github https://github.com/latex2html latex2html issues 46 0 None None None 2018-05-24 16:51:32 UTC

Description Pavel Roskin 2018-05-24 16:51:32 UTC
Description of problem:

latex2html shipped with Fedora 28 is incompatible with Perl in the same distro.

Version-Release number of selected component (if applicable):

latex2html-2017.2-4.fc28.noarch

How reproducible:

100%

Steps to Reproduce:
$ cat >test.tex <<\EOF
\documentclass[12pt]{report}
\usepackage{color}
\begin{document}
{\color{Red}text}
\end{document}
EOF
$ latex2html test.tex

Actual results:

;.Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^color{ <-- HERE Red}/ at /usr/bin/latex2html line 4475.

Expected results:

No Perl errors.

Additional info:

The issue is resolved in latex2html 2018.2

Even "latex2html --version" elicits a Perl warning:

Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/^([^{]*){ <-- HERE / at /usr/bin/latex2html line 1891.
This is LaTeX2HTML Version 2017.2 (Released Jan 23, 2017)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

Comment 1 Pavel Roskin 2018-05-24 16:52:39 UTC
Created attachment 1441152 [details]
Failing example

Comment 2 Pavel Roskin 2018-05-24 17:42:17 UTC
I've made a package using latex2html 2018.2. All patches in the package apply with minimal adjustments. It turns out the issue with \color is not resolved in 2018.2. There is just one commit after the v2018.2 tag, and it's not related to the Perl issues.

So I opened another ticket with latex2html:
https://github.com/latex2html/latex2html/issues/48

The issue in "latex2html --version" is actually fixed in 2018.2.

Comment 3 Pavel Roskin 2018-05-24 23:31:42 UTC
Great news! The issue with Perl compatibility has been fixed upstream (as well as another issue when the "xcolor" package is used instead of "color"). Please consider building a package from the git snapshot if the maintainers don't make a release soon.

Comment 4 Ben Cotton 2018-05-25 00:02:19 UTC
Great to hear! We'll give upstream a little bit to put out a release and if they don't, we'll carry that patch in the Fedora package until the next release.

Comment 5 Pavel Roskin 2018-08-12 06:45:39 UTC
I've just checked the Fedora repository for the latex2html package. The current master branch (2018.2-4) resolves all my issues with the Perl errors. I made a package by running:

fedpkg --release=f28 srpm
rpmbuild --rebuild latex2html-2018.2-4.fc28.src.rpm

No issues whatsoever, all the documents are processed correctly. Would it be possible to make official Fedora 28 packages and submit them to bodhi?

I believe keeping packages compatible with each other is an important goal of a distribution. If there is a known incompatibility between Perl and latex2html in Fedora 28, it should be resolved by an update.

Also, latex2html 2018.3 is available. That should take care of some local patches.
https://github.com/latex2html/latex2html/releases

Comment 6 Ben Cotton 2018-08-13 08:42:51 UTC
> I believe keeping packages compatible with each other is an important goal of a distribution. If there is a known incompatibility between Perl and latex2html in Fedora 28, it should be resolved by an update.

That is a good argument. I'll put the patched version into F28 and the new upstream release into F29. I'll try to get to that either today or tomorrow.

Comment 7 Fedora Update System 2018-08-13 12:43:00 UTC
latex2html-2017.2-5.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a39fbaf7ed

Comment 8 Fedora Update System 2018-08-14 22:41:36 UTC
latex2html-2017.2-5.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-a39fbaf7ed

Comment 9 Fedora Update System 2018-08-22 01:26:37 UTC
latex2html-2017.2-5.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.