|
From: Andrey G. G. <A.G...@in...> - 2025-05-09 10:05:23
|
Hello *,
I'm the maintainer of the gle package in Gentoo linux, and I'm trying to
do a reasonable 4.3.6 package.
First I patch the CMakeLists.txt to make installation directories
FHS-compliant. I follow the patch by Vladimir Lomov with small
modificalions (in Gentoo the doc directory must be
/usr/share/doc/gle-4.3.6, not /usr/share/doc/gle). After that things seem
straightforward. But the resulting /usr/bin/gle wants to find glerc in
/usr/glerc (this is insane from the FHS point of view), or in ${GLE_TOP}.
My package installs it in /usr/share/glerc, i.e. in the same directory
where init.tex, inittex.ini, gleinc, font. So, I rename /usr/bin/gle ->
/usr/bin/gle.bin and install the script /usr/bin/gle:
#!/bin/sh
export GLE_TOP=/usr/share/gle
exec /usr/bin/gle.bin $*
Then the command-line gle works as expected. But qgle still says
Error: GLE is unable to locate its configuration file.
GLE searched these locations:
'/usr/glerc'
Please set GLE_TOP to the correct location.
In principle, I can repeat the same hack: rename /usr/bin/qgle ->
/usr/bin/qgle.bin and install a script /usr/bin/qgle which sets GLE_TOP
and then starts /usr/bin/qgle.bin.
Is it possible to do something more reasonable? To patch some C++ file[s]
and to explain gle and qgle that glerc should be searched not in
/usr/glerc but in /usr/share/gle/glerc. Any suggestions what I should
patch?
By the way, while I'm here:
https://github.com/vlabella/GLE/releases/download/v4.3.6/gle-manual.pdf
is completely broken: the table of contents and the index are empty, all
cross-references look as ??. This is because gle-manual-4.3.6/Makefile.gcc
runs pdflatex only once. This can be fixed by another patch from Vladimit
Lomov - use latexmk to run latex enough times (of course, I've done it in
the package for Gentoo). But it's a shame that this broken pdf is present
at tps://github.com/vlabella/GLE/releases/tag/v4.3.6. Please replace it by
a reasonable pdf.
Best wishes,
Andrey
|