Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143831 - dev-tex/latex2html broken because of typo in /usr/lib/latex2html.pl
Summary: dev-tex/latex2html broken because of typo in /usr/lib/latex2html.pl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-13 17:59 UTC by groepaz
Modified: 2008-10-31 22:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The updated ebuild that applies the no undefined perl function patch (latex2html-2002.2.1_pre20041025-r2.ebuild,2.89 KB, text/plain)
2007-03-04 05:07 UTC, John
Details
This patch fixes a call to a deprecated perl function in table.pl (latex2html-no-undefined-perl-func.patch,574 bytes, patch)
2007-03-04 05:09 UTC, John
Details | Diff
Sample .tex file found on the internet to use for testing (MyDoc.tex,1.45 KB, text/plain)
2007-03-04 05:10 UTC, John
Details

Note You need to log in before you can comment on or make changes to this bug.
Description groepaz 2006-08-13 17:59:21 UTC
latex2html seems to somehow expect perl 5.8.6, after i upgraded perl it dies with an error saying it cant find perl5.8.6 ... then when i symlinked perl5.8.6->perl for a quick test, i get the error below. urgs, this is a nice little tool i dont want to miss, i dont have any perl knowledge whatsoever though so i cant really fix it myself (although i assume it would be a trivial thing). any takers? anything i could provide to make fixing easier? (i'm just going back to perl 5.8.7 to see if that works)


LATEX2HTML: psp_doc.html.latex2html
This is LaTeX2HTML Version 2002-2-1 (1.71)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

Revised and extended by:
 Marcus Hennecke, Ross Moore, Herb Swan and others
...producing markup for HTML version 4.0  with table extensions



Extension: loading /usr/lib/latex2html/versions/latin1.pl
HTML version: loading /usr/lib/latex2html/versions/html4_0.pl

Extension: loading /usr/lib/latex2html/versions/table.plUndefined subroutine &main::undefined called at /usr/lib/latex2html/versions/table.pl line 94.
Compilation failed in require at /usr/lib/latex2html/latex2html.pl line 11012.
Compilation failed in require at /usr/bin/latex2html line 39.
Comment 1 groepaz 2006-08-13 19:00:44 UTC
mmh i downgraded to perl5.8.7, run perl-cleaner, reemerged latex2html - no go, same problem :(

now if someone could point me to the old 5.8.6 ebuild that would be nice, so i can check if its actually perl or my specific system which is the problem :/
Comment 2 groepaz 2006-08-13 20:23:36 UTC
ok one more, its becoming weird and confusing :=P i grabbed the old 5.8.6 ebuild and patches from cvs and emerged 5.8.6, perl-cleaner, and emerge latex2html again - and it STILL does not work. thats completely strange coz i have used the thing fine before with exactly this config.

fortunatly though with the help of someone else who knows perl i could track down the problem to a single line in /usr/lib/latex2html.pl, and also could fix it trivially.

line 94 is originally

if (undefined (&convert_length)) { sub convert_length {&convert_length_table(@_)} }

what it complains about is the "undefined" function not beeing defined. changing this into "!defined" fixes it. is this some kind of perl feature that was silently removed? or is some dependend perl module that provides it missing in the latex2html ebuild?

that said, i'll now go back to the latest stable 5.8.8 and see if latex2html works there with the above fix
Comment 3 groepaz 2006-08-13 21:08:29 UTC
last one...

a) typo, the file in question was /usr/lib/latex2html/versions/table.pl

b) it works in 5.8.8 aswell with the above fix, craps out without it.
Comment 4 John 2007-03-04 04:00:39 UTC
Confirm that groepaz's analysis is correct. Working on a patch and updated ebuild.
Comment 5 John 2007-03-04 05:07:29 UTC
Created attachment 112015 [details]
The updated ebuild that applies the no undefined perl function patch

This ebuild applies a new patch that should fix the call to the deprecated "undefined" function from the latex2html table.pl script.
Comment 6 John 2007-03-04 05:09:21 UTC
Created attachment 112016 [details, diff]
This patch fixes a call to a deprecated perl function in table.pl

This patch will fix the breakage that occurs in r1 from the call in versions/table.pl. Changes from deprecated if( undefined(...)) to if(!defined(...))
Comment 7 John 2007-03-04 05:10:22 UTC
Created attachment 112018 [details]
Sample .tex file found on the internet to use for testing

A file that can be used to test latex2html.
Comment 8 John 2007-03-04 05:11:46 UTC
Also latex2html is stable on amd64 with perl 5.8.8.
Comment 9 lkd-gentoo 2008-05-03 16:30:52 UTC
Successful build on amd64 as well here
Comment 10 Eric Thibodeau 2008-09-06 14:14:25 UTC
Builds and successful minimal test with dev-tex/latex2html-2002.2.1_pre20041025-r1.
Comment 11 Alexis Ballier gentoo-dev 2008-10-31 22:02:39 UTC
applied, thanks