Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature