Bug 2263837

Summary: Using %lua_requires changes locale to "C"
Product: [Fedora] Fedora Reporter: Nils Philippsen <nphilipp>
Component: lua-rpm-macrosAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lua-packagers-sig, mhroncok, michel, nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lua-rpm-macros-1-13.el8 lua-rpm-macros-1-13.el7 lua-rpm-macros-1-13.fc39 lua-rpm-macros-1-13.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-21 00:30:49 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 Nils Philippsen 2024-02-12 11:28:34 UTC
Description of problem:
Using the %lua_requires macro sets the locale to "C", an ASCII-only locale. This can cause problems if Unicode strings are processed further on (e.g. rpmautospec dealing with umlauts in names).

Version-Release number of selected component (if applicable):
lua-srpm-macros-1-11.fc40

How reproducible:
Reproducible.

Steps to Reproduce:
0. Ensure that `rpmautospec` doesn’t have a workaround for this (adapt dist tag to Fedora release): `sudo dnf downgrade python3-rpmautospec-0.6.0-2.fc40`
1. Try to `fedpkg mockbuild` the lua-posix package.

Actual results:
nils@makake:~/dist-git/fedora/rpms/lua-posix (rawhide)> fedpkg mockbuild
Not downloading already downloaded lua-posix-36.2.1.tar.gz
Could not execute mockbuild: 'ascii' codec can't encode character '\xf6' in position 3339: ordinal not in range(128)

Expected results:
Builds the SRPM and then builds the package in mock.

Additional info:
Rpmautospec 0.6.1 is more robust against non-UTF8 locales, but this could trigger unexpected behavior elsewhere.

Comment 1 Fedora Update System 2024-02-12 11:56:50 UTC
FEDORA-EPEL-2024-cf4c5bcba8 (lua-rpm-macros-1-13.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-cf4c5bcba8

Comment 2 Fedora Update System 2024-02-12 11:56:51 UTC
FEDORA-2024-f9ed4cb1dc (lua-rpm-macros-1-13.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f9ed4cb1dc

Comment 3 Fedora Update System 2024-02-12 11:56:51 UTC
FEDORA-EPEL-2024-7a9100f080 (lua-rpm-macros-1-13.el7) has been submitted as an update to Fedora EPEL 7.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-7a9100f080

Comment 4 Fedora Update System 2024-02-13 01:39:36 UTC
FEDORA-2024-2f7d519293 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2f7d519293`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2f7d519293

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-02-13 01:40:26 UTC
FEDORA-EPEL-2024-cf4c5bcba8 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-cf4c5bcba8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-02-13 01:40:28 UTC
FEDORA-2024-f9ed4cb1dc has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f9ed4cb1dc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f9ed4cb1dc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-02-13 02:13:49 UTC
FEDORA-EPEL-2024-7a9100f080 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-7a9100f080

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-02-21 00:30:49 UTC
FEDORA-EPEL-2024-cf4c5bcba8 (lua-rpm-macros-1-13.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-02-21 01:54:04 UTC
FEDORA-EPEL-2024-7a9100f080 (lua-rpm-macros-1-13.el7) has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-02-26 01:12:09 UTC
FEDORA-2024-f9ed4cb1dc (lua-rpm-macros-1-13.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-02-28 01:40:35 UTC
FEDORA-2024-2f7d519293 (lua-rpm-macros-1-13.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.