Bug 236559 - dev-tex/mh-20080903 with USE=doc: latex hangs for xfrac.dtx
Bug#: 236559 Product:  Gentoo Linux Version: 2008.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: tex@gentoo.org Reported By: Martin.vGagern@gmx.net
Component: Unspecified
URL: 
Summary: dev-tex/mh-20080903 with USE=doc: latex hangs for xfrac.dtx
Keywords:  
Status Whiteboard: 
Opened: 2008-09-03 12:20 0000
Description:   Opened: 2008-09-03 12:20 0000
Latex has now spent over two hours on this command:
latex --file-line-error \nonstopmode
      \input /var/tmp/portage/dev-tex/mh-20080903/work/mh/./xfrac.dtx
invoked from /usr/bin/texi2dvi -q -c --language=latex ./xfrac.dtx
invoked from latex-package_src_doinstall from latex-package.eclass
I fear it's not about to finish any time soon.

Running "/usr/bin/texi2dvi -c --language=latex ./xfrac.dtx" interactively
results in this error message:
xfrac.sty:30: Undefined control sequence.
l.30 \ProvidesExplPackage
                         {xfrac}{2008/08/04}{0.2}{Text fractions}

Running "/usr/bin/texi2dvi -b -c --language=latex ./xfrac.dtx" to get
nonstopmode and still see some output shows the process to hang here:
l.30 \ProvidesExplPackage{x
                           frac}{2008/08/04}{0.2}{Text fractions}
(/usr/share/texmf-dist/tex/latex/base/textcomp.sty
(/usr/share/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics/dvips.def)))
(/usr/share/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-dist/tex/latex3/template/template.sty
(/usr/share/texmf-dist/tex/latex3/xparse/ldcsetup.sty
(/usr/share/texmf-dist/tex/latex/tools/calc.sty

stracing the process displays no syscall activity at all. Interrupting the
process shows these messages:
/usr/share/texmf-dist/tex/latex/tools/calc.sty:75: Interruption.
\GenericInfo ...irstchoice@ \else 4\fi \endcsname 
                                                  \protect \GenericInfo 
l.75 \DeclareRobustCommand\setlength
                                    {\calc@assign@skip}
? 
/usr/share/texmf-dist/tex/latex/tools/calc.sty:75: Emergency stop.
\GenericInfo ...irstchoice@ \else 4\fi \endcsname 
                                                  \protect \GenericInfo 
l.75 \DeclareRobustCommand\setlength
                                    {\calc@assign@skip}
No pages of output.
Transcript written on xfrac.log.
/usr/bin/texi2dvi: latex exited with bad status, quitting.

Disabling the doc USE flag for this package works around the problem.
calc.sty comes from dev-texlive/texlive-latex-2007
latex is a symlink to pdftex from app-text/texlive-core-2007-r13

------- Comment #1 From Alexis Ballier 2008-09-04 07:52:35 0000 -------
confirmed.

it was fine here but I had TeX Live 2008 installed.

I've masked it until tl2008 hits the tree.

# Alexis Ballier <aballier@gentoo.org> (04 Sep 2008)
# It appears to need more recent TeX packages than what we currently provide.
# Bug #236559
# It works fine with TeX Live 2008; so it will need its deps to be adjusted
when
# it will hit the tree. Mask it meanwhile.
>=dev-tex/mh-20080903

------- Comment #2 From Alexis Ballier 2008-09-09 16:55:54 0000 -------
texlive-latex3-2008 is the only one providing new enough packages for build it
and therefore run it afterward. I've add the dep. It'll remain masked as long
as tl2008 will be.