From cd048e11c4600636714051c787264a52be19c3f8 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Thu, 25 May 2023 14:12:00 +0800 Subject: python3-ansible: Add locale-base-en-us to RDEPENDS Fixes: # export LANG='en_US.UTF-8' # ansible --version ERROR: Ansible requires the locale encoding to be UTF-8; Detected None. # python3 Python 3.10.9 (main, Dec 6 2022, 18:44:57) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.setlocale(locale.LC_CTYPE, ("en_US", "UTF-8")) Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.10/locale.py", line 620, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting >>> Signed-off-by: Mingli Yu Signed-off-by: Bruce Ashfield --- recipes-devtools/python/python3-ansible_2.14.5.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes-devtools/python/python3-ansible_2.14.5.bb b/recipes-devtools/python/python3-ansible_2.14.5.bb index ea0fdbe..f3ab237 100644 --- a/recipes-devtools/python/python3-ansible_2.14.5.bb +++ b/recipes-devtools/python/python3-ansible_2.14.5.bb @@ -1,7 +1,11 @@ inherit setuptools3 require python-ansible.inc -RDEPENDS:${PN} += "python3-pyyaml python3-jinja2 python3-modules" +RDEPENDS:${PN} += "python3-pyyaml \ + python3-jinja2 \ + python3-modules \ + locale-base-en-us \ +" SRC_URI += " \ file://python3-ensure-py-scripts-use-py3-for-shebang.patch \ -- cgit v1.2.3-54-g00ecf