dblatex sets wrong package base path
Description:
The script /usr/bin/dblatex
sets a wrong package_base
path exactly in this line:
package_base = os.path.join(os.path.dirname(sys.argv[0]), "..")
which resolves to /usr
instead of /usr/share/dblatex
, which make compiling documents fail.
In version 0.3.12-7
this path is set correctly.
Additional info:
- package version(s): 0.3.12-8
- config and/or log files: See example below
- link to upstream bug report, if any: None
Steps to reproduce:
- Create an example file
hello.xml
using this sample document from wikipedia. - run
dblatex -o hello.pdf hello.xml
- This fail with
$ dblatex -o hello.pdf hello.xml
Build the book set list...
warning: failed to load external entity "/usr/xsl/latex_book_fast.xsl"
compilation error: file doclist.xsl line 6 element import
xsl:import : unable to load /usr/xsl/latex_book_fast.xsl
warning: failed to load external entity "/usr/xsl/common/mkdoclist.xsl"
compilation error: file doclist.xsl line 7 element import
xsl:import : unable to load /usr/xsl/common/mkdoclist.xsl
Unexpected error occured
Error: xsltproc failed
Note that it attempts to search for files located in /usr/xsl
instead of /usr/share/dblatex/xsl
Downgrading to 0.3.12-7
or setting package_base = "/usr/share/dblatex"
makes the compilation succeed.
FWIW, I discover this issue while trying to compile the AUR package dia-git.