Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#16081 closed defect (worksforme)

latex2html 2002-2-1, Revision 2 doesn't work without latex binary

Reported by: jlmuir@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: latex2html latex Cc: raimue (Rainer Müller)
Port:

Description

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.

Attachments (1)

fix-latex-dep.patch (374 bytes) - added by jlmuir@… 16 years ago.

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by jlmuir@…

Attachment: fix-latex-dep.patch added

comment:1 Changed 16 years ago by raimue (Rainer Müller)

Cc: raimue@… added

The bin: dependency was chosen to also allow this port to be used with the older teTeX. ${prefix}/bin/latex is provided by texlive, so I think a dependency on bin:latex:texlive would be appropriate.

Not sure what the problem with $LATEX was, but depends_* does not affect building.

comment:2 Changed 16 years ago by jlmuir@…

I just tried again with a vanilla MacPorts 1.6.0 install and it worked. So maybe something has been changed in the related portfiles since I filed this problem ticket that makes it work now? Or maybe there was something wrong with my MacPorts installation that made it break? I don't know. Adding a dependency for bin:latex:texlive seems reasonable, but I can't confirm that it would solve the problem since I now can't reproduce the problem. I would be OK with closing this ticket.

comment:3 Changed 16 years ago by raimue (Rainer Müller)

Resolution: worksforme
Status: newclosed

comment:4 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.