Bug 2302846

Summary: Backport lua-json patch for compatibility with lua-lpeg 1.1.0
Product: [Fedora] Fedora Reporter: Miren Radia <miren_radia>
Component: lua-jsonAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: benmwebb, benoit.ozell, djip.perois, g.devel, michel, orion
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lua-json-1.3.4-8.fc40 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-08-09 02:54:15 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 Miren Radia 2024-08-05 09:32:19 UTC
Description of problem:
lua-json is incompatible with lua-lpeg 1.1.0. There is a fix in rawhide which includes an upstream patch (https://src.fedoraproject.org/rpms/lua-json/c/56c9dcc1cc057377fe946c09cece28a77ec151ae). Please backport this to Fedora 40 as it is making the lmod package unusable.

Version-Release number of selected component (if applicable):
1.3.4-6.fc40

How reproducible:
Every time

Steps to Reproduce:
1. Install the lmod package
2. Run the following command:
   module --version


Actual results:
I get the following error:
/usr/bin/lua: /usr/share/lua/5.4/json/decode/util.lua:97: attempt to call a string value (field 'version')
stack traceback:
        /usr/share/lua/5.4/json/decode/util.lua:97: in main chunk
        [C]: in function 'require'
        /usr/share/lua/5.4/json/decode.lua:12: in main chunk
        [C]: in function 'require'
        /usr/share/lua/5.4/json.lua:5: in main chunk
        [C]: in function 'require'
        /usr/share/lmod/lmod/libexec/../shells/JsonShell.lua:46: in main chunk
        [C]: in function 'require'
        /usr/share/lmod/lmod/libexec/../shells/BaseShell.lua:295: in upvalue 'l_createShellTbl'
        /usr/share/lmod/lmod/libexec/../shells/BaseShell.lua:327: in function 'BaseShell.isValid'
        /usr/share/lmod/lmod/libexec/utils.lua:1189: in function 'dynamic_shell'
        /usr/share/lmod/lmod/libexec/lmod:345: in function 'main'
        /usr/share/lmod/lmod/libexec/lmod:585: in main chunk
        [C]: in ?


Expected results:
A print out of the version of lmod.

Additional info:

Comment 1 Fedora Update System 2024-08-07 02:29:49 UTC
FEDORA-2024-cb6477601f (lua-json-1.3.4-8.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-cb6477601f

Comment 2 Orion Poplawski 2024-08-07 02:31:32 UTC
*** Bug 2303169 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2024-08-08 04:46:26 UTC
FEDORA-2024-cb6477601f has been pushed to the Fedora 40 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-cb6477601f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-cb6477601f

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

Comment 4 Fedora Update System 2024-08-09 02:54:15 UTC
FEDORA-2024-cb6477601f (lua-json-1.3.4-8.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.