LINUX.ORG.RU
решено ФорумAdmin

locale gentoo jail

 ,


0

1

Собираю минимальное окружение через jail. Не могу сгенерировать локали, уже не знаю, чего не хватает.

* Generating 3 locales (this might take a while) with 8 jobs
 *  (1/3) Generating en_US.UTF-8 ...
failed to set locale!
[error] character map file `UTF-8' not found: No such file or directory
failed to set locale!
[error] default character map file `ANSI_X3.4-1968' not found: No such f  [ !! ]irectory
 *  (2/3) Generating ru_RU.UTF-8 ...
failed to set locale!
[error] character map file `UTF-8' not found: No such file or directory
failed to set locale!
[error] default character map file `ANSI_X3.4-1968' not found: No such f  [ !! ]irectory
 *  (3/3) Generating C.UTF-8 ...
failed to set locale!
[error] character map file `UTF-8' not found: No such file or directory
failed to set locale!
[error] default character map file `ANSI_X3.4-1968' not found: No such f  [ !! ]irectory
 * Generation complete
 * Adding locales to archive ...
incomplete set of locale files in "//usr/lib/locale/C.utf8"
incomplete set of locale files in "//usr/lib/locale/en_US.utf8"
incomplete set of locale files in "//usr/lib/locale/ru_RU.utf8"           [ !! ]
strace --trace=file locale-gen

https://textbin.net/raw/xdgjtmvvst

Причем, в stage4 файлов и правда нет, которые вроде как требуются.

\ls //usr/lib/locale/ -1a
.
..
.keep_sys-apps_locale-gen-0
locale-archive

Видимо, источник проблемы

default character map file `ANSI_X3.4-1968' not found

Но, что это за файл?

★★

Последнее исправление: macumazan (всего исправлений: 1)
Ответ на: комментарий от anonymous

Аналогично.

failed to set locale!
[error] character map file `UTF-8' not found: No such file or directory
failed to set locale!
[error] default character map file `ANSI_X3.4-1968' not found: No such file or directory

Но, зацепка

openat(AT_FDCWD, "/usr/share/i18n/charmaps/TSCII.gz", O_RDONLY) = 4

Не хватало gzip в chroot.

macumazan ★★
() автор топика