Gentoo Archives: gentoo-user

From: Dr Rainer Woitok <rainer.woitok@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Building package "dev-texlive/texlive-basic-2021" failed
Date: Sat, 12 Jun 2021 14:43:28
Message-Id: 24772.51206.613497.514284@tux.local
1 Greetings,
2
3 it's been quite a while that I had problems doing my routine Gentoo up-
4 grade. This time package "dev-texlive/texlive-basic-2021" balked, and
5 in the build log I found this:
6
7 * Package: dev-texlive/texlive-basic-2021
8 * Repository: gentoo
9 * Maintainer: aballier@g.o tex@g.o
10 * USE: abi_x86_64 amd64 elibc_glibc kernel_linux luajittex userland_GNU
11 * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
12 ---8><---
13 perl: warning: Setting locale failed.
14 perl: warning: Please check that your locale settings:
15 LANGUAGE = "en_GB:en",
16 LC_ALL = (unset),
17 LC_MESSAGES = "C",
18 LC_CTYPE = "C.UTF-8",
19 LC_COLLATE = "C",
20 LANG = "en_GB"
21 are supported and installed on your system.
22 perl: warning: Falling back to the standard locale ("C").
23
24 While the value of environment variable "LANGUAGE" is clearly mine, the
25 other values except "LC_COLLATE" and "LC_ALL" are obviously _not mine_
26 (in particular "LANG" is missing the ".utf8" part):
27
28 $ sudo env | grep LANGU
29 Password:
30 LANGUAGE=en_GB:en
31 $ sudo locale
32 LANG=en_GB.utf8
33 LC_CTYPE="en_GB.utf8"
34 LC_NUMERIC="en_GB.utf8"
35 LC_TIME="en_GB.utf8"
36 LC_COLLATE=C
37 LC_MONETARY="en_GB.utf8"
38 LC_MESSAGES="en_GB.utf8"
39 LC_PAPER="en_GB.utf8"
40 LC_NAME="en_GB.utf8"
41 LC_ADDRESS="en_GB.utf8"
42 LC_TELEPHONE="en_GB.utf8"
43 LC_MEASUREMENT="en_GB.utf8"
44 LC_IDENTIFICATION="en_GB.utf8"
45 LC_ALL=
46 $
47
48 Using "grep" to sift through my build logs the first occurance of the
49 line "perl: warning: Setting locale failed." occured a year ago at 2020-
50 05-18 while upgrading package "media-libs/exiftool-11.93" and since then
51 it is present in quite a few build logs without apparently doing any
52 harm. However, now making "luatex", "luahbtex", and "dviluatex" as part
53 of package "dev-texlive/texlive-basic-2021" all failed with "Unable to
54 read environment locale: exit now." and finally caused the build to die:
55
56 ---8><---
57 fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
58 fmtutil: texmf-dist/fmtutil/format.texlive-basic.cnf
59 fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
60 fmtutil: texmf-dist/fmtutil/format.texlive-basic.cnf
61 fmtutil [INFO]: writing formats under /var/tmp/portage/dev-texlive/texlive-basic-2021/work/texmf-var/web2c
62 fmtutil [INFO]: --- remaking luatex with luatex
63 fmtutil: running `luatex -ini -jobname=luatex -progname=luatex luatex.ini' ...
64 Unable to read environment locale: exit now.
65 ---8><---
66 fmtutil [INFO]: --- remaking luahbtex with luahbtex
67 fmtutil: running `luahbtex -ini -jobname=luahbtex -progname=luahbtex luatex.ini' ...
68 Unable to read environment locale: exit now.
69 ---8><---
70 fmtutil [INFO]: --- remaking dviluatex with luatex
71 fmtutil: running `luatex -ini -jobname=dviluatex -progname=dviluatex dviluatex.ini' ...
72 Unable to read environment locale: exit now.
73 ---8><---
74 fmtutil [INFO]: failed to build: 3 (luatex/luatex luahbtex/luahbtex luatex/dviluatex)
75 fmtutil [INFO]: total formats: 8
76 fmtutil [INFO]: exiting with status 3
77 * ERROR: dev-texlive/texlive-basic-2021::gentoo failed (compile phase):
78 * failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf
79 *
80 * Call stack:
81 * ebuild.sh, line 125: Called src_compile
82 * environment, line 510: Called texlive-module_src_compile
83 * environment, line 721: Called die
84 * The specific snippet of code:
85 * VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS $fmt_call --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${i}";
86
87 Is the failure to make "luatex", "luahbtex", and "dviluatex" due to not
88 being able to "read environment locale" a consequence of "perl" claiming
89 to have problems with _my_ locale? If not, what else is going on here?
90
91 Sincerely,
92 Rainer

Replies

Subject Author
Re: [gentoo-user] Building package "dev-texlive/texlive-basic-2021" failed Michael <confabulate@××××××××.com>