Skip to content
Snippets Groups Projects
Closed dblatex sets wrong package base path
  • View options
  • dblatex sets wrong package base path

  • View options
  • Closed Issue created by a821 a821

    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:

    1. Create an example file hello.xml using this sample document from wikipedia.
    2. run dblatex -o hello.pdf hello.xml
    3. 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.

    Linked items 0

  • Link items together to show that they're related or that one is blocking others.

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading