Bug#973313: The locales package not installed in salsa lintian Docker image
Hi, On Sun, Oct 24, 2021 at 6:45 AM xiao sheng wen wrote: > > The "LC_ALL=en_US.UTF-8" strings is outdated in this command. With a Chinese default locale, you probably have a lot more experience with all this, but I do not understand. Lintian does not use en_US.UTF-8 but C.UTF-8. [1] Should it only use LANG? How does that jibe with the recommendation here [2][3] to always use LC_ALL when running programs? Thanks! Kind regards Felix Lechner [1] https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Documentation/Manual.pm#L295 [2] https://stackoverflow.com/a/30480596 [3] https://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html
Bug#973313: The locales package not installed in salsa lintian Docker image
and concluded that Salsa's host system was probably to blame. I guess the Salsa's host system use LANG=en_US.UTF-8. Even lintian had set local $ENV{LC_ALL} = 'C.UTF-8'; , But if only reset LC_ALL ,it don't reset LANG, So, the docker still use LANG=en_US.UTF-8(inherit from Salsa's host system), this will casue this bug. So the other way to fix this bug is: set LANG='C.UTF-8' in lib/Lintian/Check/Documentation/Manual.pm. I hope has chance to do so to prove my guess. If it fix the bug, this way will do better than that install locales-all in docker. Thanks! -- 肖盛文 xiao sheng wen Faris Xiao OpenPGP_0x00186602339240CB.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature
Bug#973313: The locales package not installed in salsa lintian Docker image
Hi, lintian-explain-tags groff-message [...] N: You can see the warnings yourself by running the command used by Lintian: N: N: LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 \ N: man --warnings -E UTF-8 -l -Tutf8 -Z >/dev/null [...] The "LC_ALL=en_US.UTF-8" strings is outdated in this command. I also suggest to update. Thanks! -- 肖盛文 xiao sheng wen Faris Xiao 微信(wechat):atzlinux 《铜豌豆 Linux》https://www.atzlinux.com 基于 Debian 的 Linux 中文 桌面 操作系统 Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40sina.com GnuPG Public Key: 0x00186602339240CB OpenPGP_0x00186602339240CB.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature
Bug#973313: The locales package not installed in salsa lintian Docker image
Hi, On Sun, Oct 24, 2021 at 2:46 AM xiao sheng wen(肖盛文) wrote: > > The Salsa's host system, Can ssh to it? I do not think either one of us can. > Install locales package is preferably in Docker image, > /etc/default/locale and /etc/locale.gen will exist in the docker after > install it. For now, I requested locales-all. [1] Kind regards Felix Lechner [1] https://salsa.debian.org/salsa-ci-team/pipeline/-/merge_requests/312
Bug#973313: The locales package not installed in salsa lintian Docker image
Hi, 在 2021/10/24 下午12:13, Felix Lechner 写道: Hi 肖盛文 Possibly. I thought I had looked into the locales question with Iñaki Malerba from the Salsa CI Team about a year ago. If you found it, I am going to have a party! I hope. :-) The messages have never been reported in any other setting. Just this morning, I was again unable to reproduce the messages on my local system with docker run --rm -it --privileged registry.salsa.debian.org/salsa-ci-team/pipeline/lintian:unstable bash and concluded that Salsa's host system was probably to blame. The shared runner operates in 'privileged' mode. [1] The Salsa's host system, Can ssh to it? SSH to it, login into the lintian docker, then run debug tools like strace -p ,etc. on the lintian's groff-message process. If we has lucky, we perhaps find some thing. We also can check the /var/log dir to find error infos. The Salsa's host system's /var/log dir, check it too. I also contemplated other methods making the C.UTF-8 locale available via the Docker file. [2] Install locales package is preferably in Docker image, /etc/default/locale and /etc/locale.gen will exist in the docker after install it. At present, these two files don't exist in the docker of registry.salsa.debian.org/salsa-ci-team/pipeline/lintian:unstable I'll look into the Salsa runner package list again, unless you beat me to it. Thanks! Kind regards 吴大菲 (Felix Lechner) [1] https://www.educba.com/docker-privileged/ [2] https://leimao.github.io/blog/Docker-Locale/ -- 肖盛文 xiao sheng wen Faris Xiao 微信(wechat):atzlinux 《铜豌豆 Linux》https://www.atzlinux.com 基于 Debian 的 Linux 中文 桌面 操作系统 Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40sina.com GnuPG Public Key: 0x00186602339240CB OpenPGP_0x00186602339240CB.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature
Bug#973313: The locales package not installed in salsa lintian Docker image
Hi 肖盛文 On Sat, Oct 23, 2021 at 8:51 PM xiao sheng wen wrote: > > Is this the root case of this bug? Possibly. I thought I had looked into the locales question with Iñaki Malerba from the Salsa CI Team about a year ago. If you found it, I am going to have a party! The messages have never been reported in any other setting. Just this morning, I was again unable to reproduce the messages on my local system with docker run --rm -it --privileged registry.salsa.debian.org/salsa-ci-team/pipeline/lintian:unstable bash and concluded that Salsa's host system was probably to blame. The shared runner operates in 'privileged' mode. [1] I also contemplated other methods making the C.UTF-8 locale available via the Docker file. [2] I'll look into the Salsa runner package list again, unless you beat me to it. Thanks! Kind regards 吴大菲 (Felix Lechner) [1] https://www.educba.com/docker-privileged/ [2] https://leimao.github.io/blog/Docker-Locale/
Bug#973313: The locales package not installed in salsa lintian Docker image
Hi, The Docker images provided by Salsa CI: registry.salsa.debian.org/salsa-ci-team/pipeline/lintian:unstable It has not install the locales package. The locales.postinst of locales package can set the LC_ALL, LANG and generate some files,etc. Is this the root case of this bug? -- 肖盛文 xiao sheng wen Faris Xiao 微信(wechat):atzlinux 《铜豌豆 Linux》https://www.atzlinux.com 基于 Debian 的 Linux 中文 桌面 操作系统 Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40sina.com GnuPG Public Key: 0x00186602339240CB OpenPGP_0x00186602339240CB.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature