On Saturday, 12 June 2021 15:43:18 BST Dr Rainer Woitok wrote:
> Greetings,
> 
> it's been quite a while that I had problems  doing my routine Gentoo up-
> grade.   This time package  "dev-texlive/texlive-basic-2021" balked, and
> in the build log I found this:
> 
>  * Package:    dev-texlive/texlive-basic-2021
>  * Repository: gentoo
>  * Maintainer: aball...@gentoo.org t...@gentoo.org
>  * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux luajittex
> userland_GNU * FEATURES:   network-sandbox preserve-libs sandbox userpriv
> usersandbox ---8><---
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
>       LANGUAGE = "en_GB:en",
>       LC_ALL = (unset),
>       LC_MESSAGES = "C",
>       LC_CTYPE = "C.UTF-8",
>       LC_COLLATE = "C",
>       LANG = "en_GB"
>     are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> 
> While the value of environment variable "LANGUAGE"  is clearly mine, the
> other values except  "LC_COLLATE" and "LC_ALL"  are obviously _not mine_
> (in particular "LANG" is missing the ".utf8" part):
> 
> $ sudo env | grep LANGU
> Password:
> LANGUAGE=en_GB:en
> $ sudo locale
> LANG=en_GB.utf8
> LC_CTYPE="en_GB.utf8"
> LC_NUMERIC="en_GB.utf8"
> LC_TIME="en_GB.utf8"
> LC_COLLATE=C
> LC_MONETARY="en_GB.utf8"
> LC_MESSAGES="en_GB.utf8"
> LC_PAPER="en_GB.utf8"
> LC_NAME="en_GB.utf8"
> LC_ADDRESS="en_GB.utf8"
> LC_TELEPHONE="en_GB.utf8"
> LC_MEASUREMENT="en_GB.utf8"
> LC_IDENTIFICATION="en_GB.utf8"
> LC_ALL=
> $
> 
> Using "grep"  to sift through  my build logs  the first occurance of the
> line "perl: warning: Setting locale failed." occured a year ago at 2020-
> 05-18 while upgrading package "media-libs/exiftool-11.93" and since then
> it is present  in quite a few  build logs  without apparently  doing any
> harm.  However, now making "luatex", "luahbtex", and "dviluatex" as part
> of package "dev-texlive/texlive-basic-2021"  all failed with "Unable  to
> read environment locale: exit now." and finally caused the build to die:
> 
>  ---8><---
> fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence
> order): fmtutil:   texmf-dist/fmtutil/format.texlive-basic.cnf
> fmtutil: fmtutil is using the following fmtutil.cnf file for writing
> changes: fmtutil:   texmf-dist/fmtutil/format.texlive-basic.cnf
> fmtutil [INFO]: writing formats under
> /var/tmp/portage/dev-texlive/texlive-basic-2021/work/texmf-var/web2c
> fmtutil [INFO]: --- remaking luatex with luatex
> fmtutil: running `luatex -ini   -jobname=luatex -progname=luatex luatex.ini'
> ... Unable to read environment locale: exit now.
>  ---8><---
> fmtutil [INFO]: --- remaking luahbtex with luahbtex
> fmtutil: running `luahbtex -ini   -jobname=luahbtex -progname=luahbtex
> luatex.ini' ... Unable to read environment locale: exit now.
>  ---8><---
> fmtutil [INFO]: --- remaking dviluatex with luatex
> fmtutil: running `luatex -ini   -jobname=dviluatex -progname=dviluatex
> dviluatex.ini' ... Unable to read environment locale: exit now.
>  ---8><---
> fmtutil [INFO]: failed to build: 3 (luatex/luatex luahbtex/luahbtex
> luatex/dviluatex) fmtutil [INFO]: total formats: 8
> fmtutil [INFO]: exiting with status 3
>  * ERROR: dev-texlive/texlive-basic-2021::gentoo failed (compile phase):
>  *   failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf
>  *
>  * Call stack:
>  *     ebuild.sh, line 125:  Called src_compile
>  *   environment, line 510:  Called texlive-module_src_compile
>  *   environment, line 721:  Called die
>  * The specific snippet of code:
>  *               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}";
> 
> Is the failure to make "luatex", "luahbtex",  and "dviluatex" due to not
> being able to "read environment locale" a consequence of "perl" claiming
> to have problems with _my_ locale?  If not, what else is going on here?
> 
> Sincerely,
>   Rainer

I can't speak for your lua* packages, but as long as you have defined your 
locale correctly in /etc/locale.gen your system should source what it needs 
from there.

Regarding perl complaining, there was a perl update recently (stable) so 
running perl-cleaner is recommended and may fix at least your texlive-basic 
issue.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to