[MacPorts] #47115: texlive can't find docbook.sty
#47115: texlive can't find docbook.sty ------------------------------+-------------------------------- Reporter: Joel.Brogniart@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: dblatex ------------------------------+-------------------------------- Since, r132311 tex commands can't find docbook files installed by dblatex. For example. Create a test.xml file with: {{{ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis- open.org/docbook/xml/4.2/docbookx.dtd" [ ]> <article class="techreport" status="final"> <para>Just some blabla.</para> </article> }}} Then use dblatex to transform the xml to latex with: {{{ dblatex -t tex test.xml -o test.tex }}} Then use pdflatex to transform the latex file to pdf with: {{{ pdflatex test.tex }}} The later command fails with the error: {{{ This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/MacPorts 2014_7) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./test.tex LaTeX2e <2014/05/01> Babel <3.9k> and hyphenation patterns for 4 languages loaded. (/opt/local/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/opt/local/share/texmf-texlive/tex/latex/base/size10.clo)) (/opt/local/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty) (/opt/local/share/texmf-texlive/tex/latex/base/fontenc.sty (/opt/local/share/texmf-texlive/tex/latex/base/t1enc.def)) (/opt/local/share/texmf-texlive/tex/latex/base/inputenc.sty (/opt/local/share/texmf-texlive/tex/latex/base/latin1.def)) (/opt/local/share/texmf-texlive/tex/latex/fancybox/fancybox.sty Style option: `fancybox' v1.4 <2010/05/15> (tvz) ) (/opt/local/share/texmf-texlive/tex/latex/base/makeidx.sty) ! LaTeX Error: File `docbook.sty' not found. }}} -- Ticket URL: <https://trac.macports.org/ticket/47115> MacPorts <https://www.macports.org/> Ports system for OS X
#47115: texlive can't find docbook.sty -------------------------------+-------------------------------- Reporter: Joel.Brogniart@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: dblatex | -------------------------------+-------------------------------- Comment (by Joel.Brogniart@…): I changed my local version of dblatex to make texlive tools find docbook informations. Here are my modifications: {{{ --- Portfile.orig 2015-03-11 15:16:10.000000000 +0100 +++ Portfile 2015-03-12 11:41:43.000000000 +0100 @@ -66,6 +66,17 @@ ln -s ${python.prefix}/share/$f ${destroot}${prefix}/share/$f } } + file mkdir ${destroot}${prefix}/share/texmf-local/tex/latex/dblatex + fs-traverse f ${destroot}${python.prefix}/share/dblatex/latex { + if {[file isfile $f]} { + set fn [file tail $f] + if {[catch {exec ${prefix}/bin/kpsewhich -a $fn} result]} { + set f [string range $f [string length ${destroot}${python.prefix}/share/dblatex/latex/] end] + file mkdir [file dirname ${destroot}${prefix}/share /texmf-local/tex/latex/dblatex/$f] + ln -s ${python.prefix}/share/dblatex/latex/$f ${destroot}${prefix}/share/texmf-local/tex/latex/dblatex/$f + } + } + } ln -s ${python.prefix}/bin/dblatex ${destroot}${prefix}/bin/ } }}} My modifications add links to dblatex files in "/opt/local/share/texmf- local/tex/latex/dblatex", but only for files that are not allready known by texlive (use of kpsewhich) to avoid the replacement of texlive files by outdated versions. I don't know anything about TCL, dblatex or texlive so I don't know if this is a good or valid way to process, but with this modification, I could use texlive tools to manage dblatex generated files. -- Ticket URL: <https://trac.macports.org/ticket/47115#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47115: texlive can't find docbook.sty -------------------------------+-------------------------------- Reporter: Joel.Brogniart@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: dblatex | -------------------------------+-------------------------------- Comment (by Joel.Brogniart@…): After reading the textlive portgroup file, I changed a little bit the dblatex Portfile to use the texlive_texmflocal variable: {{{ --- Portfile.orig 2015-03-11 15:16:10.000000000 +0100 +++ Portfile 2015-03-12 14:46:46.000000000 +0100 @@ -66,6 +66,16 @@ ln -s ${python.prefix}/share/$f ${destroot}${prefix}/share/$f } } + file mkdir ${destroot}${texlive_texmflocal}/tex/latex/dblatex + fs-traverse f ${destroot}${python.prefix}/share/dblatex/latex { + if {[file isfile $f]} { + if {[catch {exec ${prefix}/bin/kpsewhich -a [file tail $f]} result]} { + set f [string range $f [string length ${destroot}${python.prefix}/share/dblatex/latex/] end] + file mkdir [file dirname ${destroot}${texlive_texmflocal}/tex/latex/dblatex/$f] + ln -s ${python.prefix}/share/dblatex/latex/$f ${destroot}${texlive_texmflocal}/tex/latex/dblatex/$f + } + } + } ln -s ${python.prefix}/bin/dblatex ${destroot}${prefix}/bin/ } }}} -- Ticket URL: <https://trac.macports.org/ticket/47115#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47115: texlive can't find docbook.sty -------------------------------+---------------------- Reporter: Joel.Brogniart@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: dblatex | -------------------------------+---------------------- Changes (by cal@…): * owner: macports-tickets@… => cal@… * cc: cal@… (removed) * status: new => assigned Comment: Thanks for the patch, that looks good. I'll take a look once I'm back at my Mac. -- Ticket URL: <https://trac.macports.org/ticket/47115#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47115: texlive can't find docbook.sty -------------------------------+---------------------- Reporter: Joel.Brogniart@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: dblatex | -------------------------------+---------------------- Comment (by cal@…): Commited in r134131. There may have been better ways to do this without touching texmf-local, but I'd rather have a non-optimal version than a broken one. I've also increased the revision since this changes which files are installed by the port and we need to force a rebuild because of that. -- Ticket URL: <https://trac.macports.org/ticket/47115#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47115: texlive can't find docbook.sty -------------------------------+-------------------- Reporter: Joel.Brogniart@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: dblatex | -------------------------------+-------------------- Changes (by cal@…): * status: assigned => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/47115#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts