[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1021515: marked as done (tex-common: user locale settings can cause postinst to fail)



Your message dated Wed, 12 Oct 2022 22:38:35 +0000
with message-id <E1oikN1-006Lna-VB@fasolo.debian.org>
and subject line Bug#1021515: fixed in tex-common 6.18
has caused the Debian Bug report #1021515,
regarding tex-common: user locale settings can cause postinst to fail
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1021515: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021515
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: tex-common
Version: 6.17
Severity: normal
X-Debbugs-Cc: stuart@debian.org

Dear Maintainer,

The postinst for tex-common is sensitive to the locale settings from the
environment and so can fail in strange ways. Users can end up with odd
locale settings in a chroot (as I did, where my login environment had
leaked into the chroot but the specified locale was not installed), when
connecting over ssh (the remote system's locale settings are applied to
the remote session), or through simple misconfiguration.

While the particularly odd locale seettings that I had in the chroot were
my fault, the postinst should be robust to such failures.

----- 8< -----
Setting up tex-common (6.17) ...
debconf: falling back to frontend: Readline
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time... done.
Running mktexlsr /var/lib/texmf ... done.
Building format(s) --all.
        This may take some time...
fmtutil failed. Output has been stored in
/tmp/fmtutil.YvPIYmjZ
Please include this file if you report a bug.

dpkg: error processing package tex-common (--configure):
 installed tex-common package post-installation script subprocess returned error exit status 1
----- 8< -----

The log file mentioned ends with the following lines:
----- 8< -----
fmtutil [ERROR]: running `luahbtex -ini   -jobname=luahbtex -progname=luahbtex luatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luatex -ini   -jobname=luatex -progname=luatex luatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luatex -ini   -jobname=dvilualatex-dev -progname=dvilualatex-dev dvilualatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luatex -ini   -jobname=dviluatex -progname=dviluatex dviluatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luatex -ini   -jobname=dvilualatex -progname=dvilualatex dvilualatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luahbtex -ini   -jobname=lualatex-dev -progname=lualatex-dev lualatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luahbtex -ini   -jobname=lualatex -progname=lualatex lualatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
----- 8< -----


Running the offending command on its own gave:
----- 8< -----
$ luahbtex -ini   -jobname=luahbtex -progname=luahbtex luatex.ini </dev/null
Unable to read environment locale: exit now.
----- 8< -----


Feeding in some environment variables to see if I could convince it to
behave:
----- 8< -----
$ LANG=C LANGUAGE=C LC_CTYPE=C LC_NUMERIC=C LC_TIME=C LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C LC_PAPER=C LC_NAME=C LC_ADDRESS=C luahbtex -ini   -jobname=luahbtex -progname=luahbtex luatex.ini </dev/null
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_AU.UTF-8)
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_AU.UTF-8)
bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_AU.UTF-8)
bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_AU.UTF-8)
bash: warning: setlocale: LC_TIME: cannot change locale (en_GB.UTF-8)
This is LuaHBTeX, Version 1.15.0 (TeX Live 2022/Debian)  (INITEX)
 restricted system commands enabled.
(/usr/share/texlive/texmf-dist/tex/generic/tex-ini-files/luatex.ini
[... snip lots of output before exiting successfully ...]
----- 8< -----

(I can't explain why it's still looking for en_AU there when I have
asked for the C locale, but at least it exited cleanly)

Installing the 'locales' package and correctly configuring it to the
locales that were in the environment was also enough.

>From a Debian perspective, tex-common depending on the locales package is
not a nice thing to do; it's also not sufficient to solve this bug, since
installing the locales package is not the same as configuring the
particular locale required. Adding some locale overrides to the postinst
would be better, but it might mean that users do not get error messages
displayed to them in their preferred language.

regards
Stuart

--- End Message ---
--- Begin Message ---
Source: tex-common
Source-Version: 6.18
Done: Hilmar Preusse <hille42@web.de>

We believe that the bug you reported is fixed in the latest version of
tex-common, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1021515@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Hilmar Preusse <hille42@web.de> (supplier of updated tex-common package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 12 Oct 2022 23:25:33 +0200
Source: tex-common
Architecture: source
Version: 6.18
Distribution: unstable
Urgency: medium
Maintainer: Debian TeX Task Force <debian-tex-maint@lists.debian.org>
Changed-By: Hilmar Preusse <hille42@web.de>
Closes: 1021515
Changes:
 tex-common (6.18) unstable; urgency=medium
 .
   [ Hilmar Preusse ]
   * Update standards version to 4.6.1, no changes needed.
   * Lintian:
     - E: depends-on-essential-package-without-using-version Pre-Depends: dpkg
     - I: conflicts-with-version
     - I: no-dh-sequencer
     - P: no-dep5-copyright
     - O: package-contains-empty-directory
 .
   [ Norbert Preining ]
   * set LC_ALL=C before running fmtutil (Closes: #1021515)
Checksums-Sha1:
 7ff218b53acf88cc978c6ad3e7c0360ff52ca0fd 1815 tex-common_6.18.dsc
 a0cf684051a4d01718d04875ad4fe8b9f0759bc2 42088 tex-common_6.18.tar.xz
 5a58d99ec96f2ab512416383bd731a12132afc3e 5701 tex-common_6.18_source.buildinfo
Checksums-Sha256:
 599cf3109f2a4bd8b89e1a2647dfb4de54f16c1c2ef597c1c4d2c5c7d1905564 1815 tex-common_6.18.dsc
 81ec21cfcbd920d2c11deab84e230961d87ab7b8d0913112ca68cecaa495381b 42088 tex-common_6.18.tar.xz
 e882f7308d48185e8631b06c2c4e09be3ff131ad4a84e1fb03c71c32507c9663 5701 tex-common_6.18_source.buildinfo
Files:
 628689f95065202b532bc556b5018f0b 1815 tex optional tex-common_6.18.dsc
 5945a8426ebf5690012e35d66cd97291 42088 tex optional tex-common_6.18.tar.xz
 d87e4631f5da7da8934b7c1108eb1980 5701 tex optional tex-common_6.18_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEaXGmC/nkbIhxf16kxiZYRqvgLIsFAmNHM4FfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDY5
NzFBNjBCRjlFNDZDODg3MTdGNUVBNEM2MjY1ODQ2QUJFMDJDOEIACgkQxiZYRqvg
LIsVexAAxoY8s3Dk2JhidK4nIXWBw35uLvQBwiPaFRxRyOnjOeXKQ/+2eBsqcvbj
7dJLzDJaLTAhIY95EfjJo9n0tgQ4Uzb7O74oaX39PPKwoYwjZgY7v+PdSuEuwzvn
lUIEca5exBERksljQo/WXawTGEI4y1lwQgsnY3iUXD+hhNwxh3hgosT752iL63G9
/A16xKU+Jk1xv8WRZivYmdw36nZ3u9z8wKs+dMFHM35tHXg3rSAmY3xdyC0DHz02
hqTWJ+X0W8G88myKpoCX7qVvfqqSEybW03nO/g10Ws2WpyJ8LGthBKEoJkMS0IV/
dPQnCXI9u3yjM+hETxwAtL4IzMhyxGcDBH43xxgJhBWsPAtNk1/wujRGADpOehgL
i4qGs9Pu2ruFlE3DDak7RWXqX8Xzbt2rwUvyjL6nsvPHpSwf/YvM6Ht4yJXP2MA5
EnT9tOAK3V78VCtcKTjcGAxifoK/zpgYp9DEUBinnXxecx6qQ8LjpOOe8sAwF59s
PDyU+vz6NSEU+Pw+eFPKUn/IS+8AabjaXwE+micy94YSzNZhp7t2JQJPODxLLwjt
X6I5OelcNHS8ZsdAWf9Xzfrht0r0SwH+vgeX+sBwRZsVe+qnqanVCRo63akcGJMG
7XIUpWQoGRZrW7C3eaj9cYRUtxWB4mGKXFJmDujGXFeM8/9GaEc=
=KHg0
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: