Bug#1074129: lyx: Hard coded path to xslt proc prevent Lyx to find it
On Sun, Jun 23, 2024 at 01:39:33PM +0200, Xavier Brochard wrote: > At first start (or reconfigure option) Lyx look for xslt proc path. > But path is hardcoded in file /usr/share/lyx/configure.py and look > only for package docbook-xsl-ns. If the docbook-xsl package is > installed, as recommended by Lyx package, the script can't find it. Hello, thanks for the report. You are right, there is now bug in docbook deps. > Adding the right path in the script works for me :. > # > xpath, xslt_sheet = checkProg('XSLT stylesheets for ePub', ['chunk.xsl'], '', > ['/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/epub3','/usr/share/xml/docbook/stylesheet/docbook-xsl/epub3/']) > if xslt_sheet == 'chunk.xsl': > xpath = '/usr/share/xml/docbook/stylesheet/docbook-xsl-ns' > else: > xpath = 'none' It might work, but I think it's not the correct solution, as LyX should now produce DocBook 5, which is covered by docbook-xsl-ns, not by docbook-xsl. Would you mind undo your fix, install docbook-xsl-ns instead and check whether the LyX output works for you after reconfigure? I'll fix the dependecy from docbook-xsl to docbook-xsl-ns for 2.4.1, which should be released within few weeks. Pavel
Bug#1074129: lyx: Hard coded path to xslt proc prevent Lyx to find it
Package: lyx Version: 2.4.0-1 Severity: important Tags: upstream patch Dear Maintainer, At first start (or reconfigure option) Lyx look for xslt proc path. But path is hardcoded in file /usr/share/lyx/configure.py and look only for package docbook-xsl-ns. If the docbook-xsl package is installed, as recommended by Lyx package, the script can't find it. Adding the right path in the script works for me :. # xpath, xslt_sheet = checkProg('XSLT stylesheets for ePub', ['chunk.xsl'], '', ['/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/epub3','/usr/share/xml/docbook/stylesheet/docbook-xsl/epub3/']) if xslt_sheet == 'chunk.xsl': xpath = '/usr/share/xml/docbook/stylesheet/docbook-xsl-ns' else: xpath = 'none' Thanks for your work Xavier -- System Information: Debian Release: trixie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.8.12-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages lyx depends on: ii libc6 2.38-13 ii libenchant-2-2 2.3.3-2+b2 ii libgcc-s1 14.1.0-2 ii libmagic1t64 1:5.45-3 ii libmythes-1.2-02:1.2.5-1+b1 ii libqt5core5t64 5.15.13+dfsg-2 ii libqt5gui5t64 5.15.13+dfsg-2 ii libqt5svg5 5.15.13-2 ii libqt5widgets5t64 5.15.13+dfsg-2 ii libstdc++6 14.1.0-2 ii lyx-common 2.4.0-1 ii xdg-utils 1.1.3-4.1 ii zlib1g 1:1.3.dfsg+really1.3.1-1 Versions of packages lyx recommends: ii docbook-xsl 1.79.2+dfsg-7 ii dvipng 1.15-1.1+b2 ii fonts-lyx2.4.0-1 ii ghostscript 10.03.1~dfsg-1 ii graphicsmagick-imagemagick-compat [imagemagick] 1.4+really1.3.43-1 ii libtiff-tools4.5.1+git230720-4 ii okular [pdf-viewer] 4:23.08.1-2+b1 ii poppler-utils24.02.0-5+b1 ii preview-latex-style 13.2-1 ii psutils 1.17.dfsg-4 ii texlive-fonts-recommended2024.20240401-3 ii texlive-latex-extra 2024.20240401-2 ii texlive-latex-recommended2024.20240401-3 ii texlive-plain-generic2024.20240401-2 ii texlive-science 2024.20240401-2 ii xsltproc 1.1.35-1+b1 Versions of packages lyx suggests: ii chktex 1.7.9-1 pn gnuhtml2latex pn gnumeric ii groff 1.23.0-4 pn latex2rtf pn librsvg2-bin | inkscape pn lilypond pn maxima pn noweb pn r-cran-knitr pn rcs ii texlive-plain-generic [tex4ht] 2024.20240401-2 pn texlive-xetex pn writer2latex pn wv -- no debconf information