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-0    2: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-lyx                                        2.4.0-1
ii  ghostscript                                      10.03.1~dfsg-1
ii  graphicsmagick-imagemagick-compat [imagemagick]  1.4+really1.3.43-1
ii  libtiff-tools                                    4.5.1+git230720-4
ii  okular [pdf-viewer]                              4:23.08.1-2+b1
ii  poppler-utils                                    24.02.0-5+b1
ii  preview-latex-style                              13.2-1
ii  psutils                                          1.17.dfsg-4
ii  texlive-fonts-recommended                        2024.20240401-3
ii  texlive-latex-extra                              2024.20240401-2
ii  texlive-latex-recommended                        2024.20240401-3
ii  texlive-plain-generic                            2024.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                   <none>
pn  gnumeric                        <none>
ii  groff                           1.23.0-4
pn  latex2rtf                       <none>
pn  librsvg2-bin | inkscape         <none>
pn  lilypond                        <none>
pn  maxima                          <none>
pn  noweb                           <none>
pn  r-cran-knitr                    <none>
pn  rcs                             <none>
ii  texlive-plain-generic [tex4ht]  2024.20240401-2
pn  texlive-xetex                   <none>
pn  writer2latex                    <none>
pn  wv                              <none>

-- no debconf information

Reply via email to