[MacPorts] #16081: latex2html 2002-2-1, Revision 2 doesn't work without latex binary
MacPorts
noreply at macports.org
Wed Jul 23 12:51:04 PDT 2008
#16081: latex2html 2002-2-1, Revision 2 doesn't work without latex binary
-------------------------------------+--------------------------------------
Reporter: jlmuir at imca.aps.anl.gov | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: latex2html latex |
-------------------------------------+--------------------------------------
I ran:
{{{
sudo port install python25-doc
}}}
and it failed in the build phase with the following:
{{{
---> Building python25-doc with target html
Error: Target org.macports.build returned: shell command " cd "/opt3/var
/macports/build/_opt3_var_macports_sources_rsync.macports.org_release_po
rts_lang_python25-doc/work/Python-2.5.2" && cd Doc && make html " retu
rned error 2
Command output: TEXINPUTS=/opt3/var/macports/build/_opt3_var_macports_so
urces_rsync.macports.org_release_ports_lang_python25-doc/work/Python-2.5
.2/Doc/commontex: python /opt3/var/macports/build/_opt3_var_macports_sou
rces_rsync.macports.org_release_ports_lang_python25-doc/work/Python-2.5.
2/Doc/tools/mkhowto --html --about html/stdabout.dat --iconserver ../ico
ns --favicon ../icons/pyfav.png --address "See <i><a href=\"about.html\"
>About this document...</a></i> for information on suggesting changes."
--up-link ../index.html --up-title "Python Documentation Index" --global
-module-index "../modindex.html" --dvips-safe --dir html/api api/api.tex
*** Session transcript and error messages are in /opt3/var/macports/buil
d/_opt3_var_macports_sources_rsync.macports.org_release_ports_lang_pytho
n25-doc/work/Python-2.5.2/Doc/html/api/api.how.
*** Exited with status 127.
The relevant lines from the transcript are:
------------------------------------------------------------------------
+++ latex api
sh: latex: command not found
*** Session transcript and error messages are in /opt3/var/macports/buil
d/_opt3_var_macports_sources_rsync.macports.org_release_ports_lang_pytho
n25-doc/work/Python-2.5.2/Doc/html/api/api.how.
*** Exited with status 127.
+++ TEXINPUTS=/opt3/var/macports/build/_opt3_var_macports_sources_rsync.
macports.org_release_ports_lang_python25-doc/work/Python-2.5.2/Doc/api:/
opt3/var/macports/build/_opt3_var_macports_sources_rsync.macports.org_re
lease_ports_lang_python25-doc/work/Python-2.5.2/Doc/commontex:/opt3/var/
macports/build/_opt3_var_macports_sources_rsync.macports.org_release_por
ts_lang_python25-doc/work/Python-2.5.2/Doc/paper-letter:/opt3/var/macpor
ts/build/_opt3_var_macports_sources_rsync.macports.org_release_ports_lan
g_python25-doc/work/Python-2.5.2/Doc/texinputs:
+++ latex api
make: *** [html/api/api.html] Error 127
Error: Status 1 encountered during processing.
}}}
So it tried to run `latex` but couldn't find it. So I installed the
`texlive` port which provides `latex`:
{{{
sudo port install texlive
}}}
I then tried to install `python25-doc` again:
{{{
sudo port clean --work python25-doc
sudo port install python25-doc
}}}
This time, I got the following:
{{{
---> Building python25-doc with target html
Error: Target org.macports.build returned: shell command " cd "/opt3/var
/macports/build/_opt3_var_macports_sources_rsync.macports.org_release_po
rts_lang_python25-doc/work/Python-2.5.2" && cd Doc && make html " retu
rned error 2
Command output: 16/32....;..,.;.......
17/32....;..,.....,..,.....,.....,.,.;...........
18/32....;..,.;......
19/32....;........,.......,.,.,.,.,.,.,.,.,.,.,...,..,.....,..,....;....
...............................................................
20/32....;...,.,...,.,..,.,.,.,.,.;.......................
21/32....;....,...,.,.,.,.,..,.,.,.,.,...,...........,..................
.,.............................;................................
22/32....;..,.,.,...,.;...............
23/32....;..,.,...,...,.;..........
24/32...;.;
25/32....;..,....................................;...........
26/32....;..,.....;......
27/32....;.................,..;...........
28/32...;....,.....,..,....,.;...............
29/32...;..;
30/32....;....................;
31/32....;.....;...
32/32..;;.
Writing image file ...
Fatal (syswait): exec " ./images.tex" failed: Permission denied
at /opt3/bin/latex2html line 3785
Cannot read logfile './images.log': No such file or directory
*** Session transcript and error messages are in /opt3/var/macports/buil
d/_opt3_var_macports_sources_rsync.macports.org_release_ports_lang_pytho
n25-doc/work/Python-2.5.2/Doc/html/doc/doc.how.
*** Exited with status 2.
+++ TEXINPUTS=/opt3/var/macports/build/_opt3_var_macports_sources_rsync.
macports.org_release_ports_lang_python25-doc/work/Python-2.5.2/Doc/doc:/
opt3/var/macports/build/_opt3_var_macports_sources_rsync.macports.org_re
lease_ports_lang_python25-doc/work/Python-2.5.2/Doc/commontex:/opt3/var/
macports/build/_opt3_var_macports_sources_rsync.macports.org_release_por
ts_lang_python25-doc/work/Python-2.5.2/Doc/paper-letter:/opt3/var/macpor
ts/build/_opt3_var_macports_sources_rsync.macports.org_release_ports_lan
g_python25-doc/work/Python-2.5.2/Doc/texinputs:
+++ latex doc
+++ latex2html -init_file doc.l2h -dir /opt3/var/macports/build/_opt3_va
r_macports_sources_rsync.macports.org_release_ports_lang_python25-doc/wo
rk/Python-2.5.2/Doc/html/doc /opt3/var/macports/build/_opt3_var_macports
_sources_rsync.macports.org_release_ports_lang_python25-doc/work/Python-
2.5.2/Doc/doc/doc.tex
make: *** [html/doc/doc.html] Error 2
Error: Status 1 encountered during processing.
}}}
Looking at line 3785 of `/opt3/bin/latex2html`, the line number is
slightly off, but I believe it is failing because the `$LATEX` variable is
the empty string. I looked at `cfgcache.pm` and `l2hconf.pm` in
`/opt3/lib/latex2html` and saw that `$LATEX` was defined as the empty
string in both. I believe the reason for this is that the `latex2html`
portfile does not include the correct dependency declaration.
I've attached a patch against the `latex2html` portfile that adds a
`depends_lib` for `port:texlive` which provides the needed `latex` binary
and removes the `depends_run` for `bin:texhash:texlive` because it is
invalid since `texhash` is provided by `texlive_base` not `texlive` and
because it will be provided by `texlive_base` since `texlive` depends on
`texlive_base`.
`python25-doc` installs cleanly for me with these changes.
This is on Mac OS X 10.5.4.
--
Ticket URL: <http://trac.macports.org/ticket/16081>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list