From: Narpat Mali <[email protected]>

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 "<stdin>", line 1, in <module>
    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 <[email protected]>
Signed-off-by: Bruce Ashfield <[email protected]>

Upstream master commit:
https://git.yoctoproject.org/meta-cloud-services/commit/?id=cd048e11c4600636714051c787264a52be19c3f8

Signed-off-by: Narpat Mali <[email protected]>
---
 recipes-devtools/python/python3-ansible_2.14.11.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/recipes-devtools/python/python3-ansible_2.14.11.bb 
b/recipes-devtools/python/python3-ansible_2.14.11.bb
index ea0fdbe5..f3ab2377 100644
--- a/recipes-devtools/python/python3-ansible_2.14.11.bb
+++ b/recipes-devtools/python/python3-ansible_2.14.11.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 \
-- 
2.40.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8427): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8427
Mute This Topic: https://lists.yoctoproject.org/mt/102421321/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to