the line 88 of verbatimfiles.perl has to be changed from s/(^|\n)/$1.sprintf("%4d ",++$counter)/ge; to s/^/$1.sprintf("%4d ",++$counter)/ge; Reproducible: Always Steps to Reproduce: 1. 2. 3.
Having lost my crystal ball, I have really no clue what ebuild are you talking about.
You can find the bug in all latex2html versions.
this doesn't double the line numbers here: foo.tex: \documentclass{article} \usepackage{verbatimfiles} \begin{document} \verbatimlisting{foo} \end{document} and produces something like: 1 \documentclass{article} 2 \usepackage{verbatimfiles} 3 \begin{document} 4 \verbatimlisting{foo} 5 \end{document} please reopen and provide a suitable way to reproduce the problem.