Skip to contentSkip to conversation

python3-ansible: Add locale-base-en-us to RDEPENDS

PATCH New [email protected] 1 participant 1 message May 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-ansible: Add locale-base-en-us to RDEPENDS

From: Mingli Yu <[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.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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

Quoted 1 line
Quoted 1 line
Quoted 1 line
---
 recipes-devtools/python/python3-ansible_2.14.5.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
recipes-devtools/python/python3-ansible_2.14.5.bb +5 -1
index ea0fdbe5..f3ab2377 100644
@@ -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 \
Signature · 1 line
2.25.1