Bug 2298100

Summary: Package is not found by lua, due to being built for 5.3 when 5.4 is installed
Product: [Fedora] Fedora Reporter: aspiring_sociopath
Component: lua-alt-getoptAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 40CC: michel
Target Milestone: ---Keywords: Upgrades
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lua-alt-getopt-0.8.0-12.fc42 lua-alt-getopt-0.8.0-12.fc40 lua-alt-getopt-0.8.0-12.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-19 20:50:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description aspiring_sociopath 2024-07-16 11:24:33 UTC
Package is installed to /usr/share/lua/5.3, lua looks inside lua/5.4.

Manually building the .spec and changing line 1 to `%global luaver 5.4` fixes the problem.

Reproducible: Always

Steps to Reproduce:
1. Install lua-moonscript
2. Try to build e.g. https://github.com/ekisu/mpv-webm
Actual Results:  
Crash.

Expected Results:  
Build succeeds.

/usr/bin/lua: /usr/bin/moonc:3: module 'alt_getopt' not found:
	no field package.preload['alt_getopt']
	no file '/usr/share/lua/5.4/alt_getopt.lua'
	no file '/usr/share/lua/5.4/alt_getopt/init.lua'
	no file '/usr/lib64/lua/5.4/alt_getopt.lua'
	no file '/usr/lib64/lua/5.4/alt_getopt/init.lua'
	no file './alt_getopt.lua'
	no file './alt_getopt/init.lua'
	no file '/usr/lib64/lua/5.4/alt_getopt.so'
	no file '/usr/lib64/lua/5.4/loadall.so'
	no file './alt_getopt.so'

Comment 1 Michel Lind 2024-11-19 20:16:08 UTC
Oh thanks! Sorry for not getting to this earlier

The spec really needs to be modernized since with the newer guidelines the Lua version gets autodetected at build time.

Comment 2 Fedora Update System 2024-11-19 20:47:42 UTC
FEDORA-2024-ddd0c4b13c (lua-alt-getopt-0.8.0-12.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ddd0c4b13c

Comment 3 Fedora Update System 2024-11-19 20:50:27 UTC
FEDORA-2024-ddd0c4b13c (lua-alt-getopt-0.8.0-12.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2024-11-19 21:26:12 UTC
FEDORA-2024-c4433f6ad2 (lua-alt-getopt-0.8.0-12.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-c4433f6ad2

Comment 5 Fedora Update System 2024-11-19 21:55:21 UTC
FEDORA-2024-8b523e01a9 (lua-alt-getopt-0.8.0-12.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8b523e01a9

Comment 6 Fedora Update System 2024-11-19 22:44:11 UTC
FEDORA-2024-97274aed91 (lua-alt-getopt-0.8.0-12.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-97274aed91

Comment 7 Fedora Update System 2024-11-20 15:46:02 UTC
FEDORA-2024-8b523e01a9 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-8b523e01a9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8b523e01a9

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

Comment 8 Fedora Update System 2024-11-20 17:04:49 UTC
FEDORA-2024-97274aed91 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-97274aed91`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-97274aed91

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

Comment 9 Fedora Update System 2024-11-20 17:13:32 UTC
FEDORA-2024-c4433f6ad2 has been pushed to the Fedora 41 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-c4433f6ad2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-c4433f6ad2

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

Comment 10 Fedora Update System 2024-11-28 02:45:14 UTC
FEDORA-2024-8b523e01a9 (lua-alt-getopt-0.8.0-12.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-11-28 03:21:41 UTC
FEDORA-2024-c4433f6ad2 (lua-alt-getopt-0.8.0-12.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.