Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80468 - latex2html uses wrong path to perl
Summary: latex2html uses wrong path to perl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 105767 120059 130811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-02 07:37 UTC by caspar-gentoo-bugs
Modified: 2008-10-31 21:26 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description caspar-gentoo-bugs 2005-02-02 07:37:02 UTC
latex2html doesn't use /usr/bin/perl to call the perl interpreter but /usr/bin/perlX.X.X, depending  on the version of perl installed at the time latex2html got installed.

Reproducible: Always
Steps to Reproduce:
1. look into /usr/bin/latex2html, at top of file.
Actual Results:  
the path information is /usr/bin/perlX.X.X with X.X.X being the version of perl
at the time, latex2html was installed

Expected Results:  
it should use /usr/bin/perl instead
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-02-12 06:06:00 UTC
Thanks for the report. Fixed in CVS.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-07-03 03:13:54 UTC
There's still no fixed version marked stable or it didn't got a revision bump.

$ grep perl  /usr/bin/latex2html
# -*- perl -*- -w
eval '(exit $?0)' && eval 'exec /usr/bin/perl5.8.5 -S $0 ${1+"$@"}'
  & eval 'exec /usr/bin/perl5.8.5 -S $0 $argv:q'
  if 0; # suppress this stuff in perl
# The above lines start up perl on almost every shell,
# below we find usual perl code
Comment 3 Martin Ehmsen (RETIRED) gentoo-dev 2006-01-25 06:32:03 UTC
It is fixed in latex2html-2002.2.1_pre20041025 which is marked stable on all supported archs.
The ebuild didn't get a rev bump when this problem was fixed, so try to re-emerge latex2html, that should fix it.
If it does not fix it, then fell free to reopen this bug.
Comment 4 katerina 2006-05-07 07:31:42 UTC
Please release latex2html-2002.2.1_pre20041025-r1 (the rev bump which did not get done before).

Other packages, such as darcs with doc in USE, break if the older revision with the hardcoded path to Perl is installed and the version of Perl changes, and portage correctly reports that there is no newer version of latex2html.
Comment 5 katerina 2006-05-07 07:37:55 UTC
Is this bug actually fixed? The problem appears to be that /usr/lib/latex2html/l2hconf.pm contains the following (even after a re-emerge, which I did today, on a machine which has been sync'd recently):

# Setting this variable to where your perl executable resides can lead to
# better performance on some platforms.
#
# It is advisable to do this on an Intel system; e.g.
# $PERL='g:/usr/bin/perl_.exe';
#
# On a unix system it may be best left empty, or set as in:
# $PERL='/usr/local/bin/perl';
#
$PERL = '/usr/bin/perl5.8.8';

$PERL should either not be set, or be set to /usr/bin/perl as the initial reporter said.
Comment 6 Chris Bainbridge (RETIRED) gentoo-dev 2006-05-22 09:12:42 UTC
This bug is not fixed. From a fresh emerge of the latest stable latex2html-2002.2.1_pre20041025:

$ grep /usr/bin/perl /usr/lib/latex2html/*
/usr/lib/latex2html/cfgcache.pm:$cfg{'PERL'} = q'/usr/bin/perl5.8.7';
/usr/lib/latex2html/cfgcache.pm:#! /usr/bin/perl5.8.7 -w
/usr/lib/latex2html/l2hconf.pm:# $PERL='g:/usr/bin/perl_.exe';
/usr/lib/latex2html/l2hconf.pm:$PERL = '/usr/bin/perl5.8.7';
/usr/lib/latex2html/makemap:#!/usr/bin/perl
Comment 7 Chris Bainbridge (RETIRED) gentoo-dev 2006-05-22 09:13:21 UTC
*** Bug 130811 has been marked as a duplicate of this bug. ***
Comment 8 Chris Bainbridge (RETIRED) gentoo-dev 2006-05-22 09:14:46 UTC
*** Bug 105767 has been marked as a duplicate of this bug. ***
Comment 9 Alexandre Buisse (RETIRED) gentoo-dev 2006-05-23 00:39:06 UTC
latex2html-2002.2.1_pre20041025-r1 which has just been commited should solve the problem. If it works properly for you, I'll file a request for stabilisation.
Comment 10 katerina 2006-05-24 15:27:24 UTC
latex2html-2002.2.1_pre20041025-r1 appears to be fine.
Comment 11 Chris Bainbridge (RETIRED) gentoo-dev 2006-06-07 03:00:50 UTC
I can confirm -r1 works for me. Please stabilise it and remove the old broken ebuild.
Comment 12 Duncan Coutts (RETIRED) gentoo-dev 2006-06-15 09:20:50 UTC
I just bumped into this bug when adding the latest darcs ebuild to the tree.

Can I also add my support to have latex2html-2002.2.1_pre20041025-r1 marked stable so that I can get darcs-1.0.7 marked stable too (since it now deps on that version of latex2html so darcs users don't hit this bug).
Comment 13 Alexis Ballier gentoo-dev 2008-10-31 21:26:19 UTC
*** Bug 120059 has been marked as a duplicate of this bug. ***