Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566516 - dev-tex/latex2html-2008-r1 bitrotten perl code
Summary: dev-tex/latex2html-2008-r1 bitrotten perl code
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-22 21:32 UTC by Sergey 'L29Ah' Alirzaev
Modified: 2016-03-29 08:04 UTC (History)
7 users (show)

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


Attachments
latex2html-defined-hash.patch (latex2html-defined-hash.patch,990 bytes, patch)
2015-12-20 10:14 UTC, Juergen Rose
Details | Diff
latex2html-2015.ebuild (latex2html-2015.ebuild,2.20 KB, text/plain)
2015-12-25 10:18 UTC, Ulrich Müller
Details
Ebuild that applies the defined-hash patch (latex2html-2008-r2.ebuild,2.65 KB, text/plain)
2016-03-25 22:38 UTC, Cengiz Gunay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey 'L29Ah' Alirzaev 2015-11-22 21:32:46 UTC
Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /usr/lib64/latex2html/latex2html.pl line 489.
Compilation failed in require at /usr/bin/latex2html line 39.
Comment 1 Juergen Rose 2015-12-20 10:11:38 UTC
I have the same issue. Removing some "defined" in seems to solve the issue.
I will attach a patch.
Comment 2 Juergen Rose 2015-12-20 10:14:11 UTC
Created attachment 419888 [details, diff]
latex2html-defined-hash.patch

With this patch the "Can't use 'defined(%hash)'" issue disappears.
Comment 3 Ulrich Müller gentoo-dev 2015-12-25 10:18:13 UTC
Created attachment 420732 [details]
latex2html-2015.ebuild

There is also a new latex2html-2015 release at:
https://www.ctan.org/tex-archive/support/latex2html

See attached ebuild.
Comment 4 Ulrich Müller gentoo-dev 2015-12-25 10:20:28 UTC
@dilfridge: Your ${PN}-match-multiline.patch fails for the 2015 release. As I am no Perl expert, could you check if it can be simply skipped or if we need an updated patch there?
Comment 5 Cengiz Gunay 2016-03-25 22:38:44 UTC
Created attachment 429018 [details]
Ebuild that applies the defined-hash patch

Leaving alone the 2015 version for now, it would be nice to have the defined-hash patch applied. Otherwise latex2html doesn't work when Perl 5.22 is installed. I tested the patch and created a new ebuild if anyone is interested.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2016-03-26 10:59:38 UTC
I'be bumped version 2015. That has both the defined-hash patch and the match-multiline patch already applied. Please test...
Comment 7 Sergey 'L29Ah' Alirzaev 2016-03-27 11:16:28 UTC
>  This document was generated using the LaTeX2HTML translator Version 2008 (1.71)
hmmm
Comment 8 Cengiz Gunay 2016-03-28 01:40:57 UTC
@dilfridge: Other than not reporting that it's the new version like @zl29ah said, the 2015 version worked for me.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2016-03-28 13:39:36 UTC
(In reply to Cengiz Gunay from comment #8)
> @dilfridge: Other than not reporting that it's the new version like @zl29ah
> said, the 2015 version worked for me.

Ah that's what he meant... seems upstream is weird.
Comment 10 Ulrich Müller gentoo-dev 2016-03-29 08:04:31 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #7)
> >  This document was generated using the LaTeX2HTML translator
> > Version 2008 (1.71)

Has somebody reported this upstream?

The release is set in config/config.pl:

   # This is the central place to modify the release name!!!
   my $RELEASE = '2008';

The various revisions (like 1.71 above) are generated from CVS keyword substitution, e.g. in latex2html.pin:

   # $Id: latex2html.pin,v 1.71 2004/01/06 23:49:54 RRM Exp $
   my ($REVISION) = q$Revision: 1.71 $ =~ /:\s*(\S+)/;

These should probably be cleaned up too, since upstream doesn't appear to use CVS any longer.