Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1668400
Summary: | rpmlint needs locale data | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jerry James <loganjerry> |
Component: | rpmlint | Assignee: | Tom "spot" Callaway <tcallawa> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | j, mhroncok, tcallawa, tmz, twoerner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | rpmlint-1.10-22.fc30 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-03-29 19:11:34 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jerry James
2019-01-22 16:19:30 UTC
rpmlint uses the following: >>> import locale >>> locale.setlocale(locale.LC_COLLATE, '') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.7/locale.py", line 604, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting The git blame for the call is rather big commit: https://github.com/rpm-software-management/rpmlint/commit/115d640c8d0b13b70d464a25a3401a7011cd369c LC_COLLATE is for sorting things. Yet the empty call makes it sort based on env variables, e.g. on my machine, this is what I get: >>> locale.setlocale(locale.LC_COLLATE, '') 'cs_CZ.utf8' So if I run mock this is what rpmlint is trying to set, installing English locales won't help me: $ locale LANG=cs_CZ.utf8 ... LC_COLLATE="cs_CZ.utf8" ... LC_ALL= [FedoraReview (python3)]$ mock -r fedora-rawhide-x86_64 shell <mock-chroot> sh-5.0# locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=cs_CZ.utf8 ... LC_COLLATE="cs_CZ.utf8" ... LC_ALL= So I guess we need to figure out what is this line actually trying to achieve. So the git blame is actually https://github.com/rpm-software-management/rpmlint/commit/6f4af3cd65b0ccdab7455e3fbe8ff9947b979d39 Process installed packages matched by a wildcard in locale's alphabetic order. I'll open an issue upstream. rpmlint-1.10-22.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-5758e738d2 rpmlint-1.10-22.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-5758e738d2 rpmlint-1.10-22.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. |