https://bugzilla.redhat.com/show_bug.cgi?id=2091484
Bug ID: 2091484 Summary: luarocks package should pull in lua-devel as a dependency Product: Fedora Version: rawhide Status: NEW Component: luarocks Assignee: michel@michel-slm.name Reporter: ferdnyc@gmail.com QA Contact: extras-qa@fedoraproject.org CC: ktdreyer@ktdreyer.com, lua-packagers-sig@lists.fedoraproject.org, michel@michel-slm.name Target Milestone: --- Classification: Fedora
Description of problem: A new Fedora user reported[1] problems using luarocks after install, because it failed to compile a module after downloading it. The user eventually worked out on their own that they needed to install lua-devel, but they shouldn't have had to puzzle that solution out. By its very nature, luarocks needs to have the lua headers available for it to function properly. It should pull in lua-devel as a dependency automatically when installed.
Version-Release number of selected component (if applicable): luarocks-3.7.0-3.fc35.noarch
How reproducible: 100%
Steps to Reproduce: 1. sudo dnf install luarocks 2. luarocks install --local lcurses 3.
Actual results: "Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR."
Expected results: Package compiles successfully
Additional info:
[1]: https://ask.fedoraproject.org/t/problem-using-luarocks-on-f35/22897
https://bugzilla.redhat.com/show_bug.cgi?id=2091484
"FeRD" (Frank Dana) ferdnyc@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Doc Type|--- |If docs needed, set a value
--- Comment #1 from "FeRD" (Frank Dana) ferdnyc@gmail.com --- In fact, the luarocks package seems to be missing a LOT of dependencies.
It has build backends for both cmake and make, but pulls in neither of them as a dependency. It also needs a C/C++ compiler, potentially, but has no such need expressed in its package dependencies. User systems can't be assumed to all have these tools available.
https://bugzilla.redhat.com/show_bug.cgi?id=2091484
--- Comment #2 from "FeRD" (Frank Dana) ferdnyc@gmail.com --- (In reply to "FeRD" (Frank Dana) from comment #1)
It also needs a C/C++ compiler, potentially
In fact, not just potentially. The lua module /usr/share/lua/5.4/luarocks/core/cfg.lua uses the `gcc` command, specifically, as part of its configuration probing, so it _DEFINITELY_ needs to have a runtime dependency on `gcc`.
https://bugzilla.redhat.com/show_bug.cgi?id=2091484
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- FEDORA-2022-9a29de14da has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9a29de14da
https://bugzilla.redhat.com/show_bug.cgi?id=2091484
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |ERRATA Status|MODIFIED |CLOSED Fixed In Version| |luarocks-3.9.1-1.fc38 Last Closed| |2022-10-04 02:06:23
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- FEDORA-2022-9a29de14da has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
lua-packagers-sig@lists.fedoraproject.org