Bug 28773 - lua broken alternatives links
Summary: lua broken alternatives links
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-13 12:55 CEST by GG HH
Modified: 2021-04-17 21:28 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description GG HH 2021-04-13 12:55:53 CEST
Lua alternatives links are wrong. They should be updated to 5.3.

$ ll /etc/alternatives/lua*
lrwxrwxrwx 1 root root 15 mars  28 00:22 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root 16 mars  28 00:22 /etc/alternatives/luac -> /usr/bin/luac5.3

$ ll /usr/bin/lua*
-rwxr-xr-x 1 root root  24056 avril  4 08:35 /usr/bin/lua*
lrwxrwxrwx 1 root root      6 avril  2 21:43 /usr/bin/lua-5.1 -> lua5.1*
-rwxr-xr-x 1 root root 201280 avril  2 21:43 /usr/bin/lua5.1*
-rwxr-xr-x 1 root root 192704 avril  4 08:35 /usr/bin/luac*
lrwxrwxrwx 1 root root      7 avril  2 21:43 /usr/bin/luac-5.1 -> luac5.1*
-rwxr-xr-x 1 root root 142032 avril  2 21:43 /usr/bin/luac5.1*

$ rpm -q -f /usr/bin/lua*
lua-5.4.3-4.mga9
lua5.1-5.1.5-20.mga9
lua5.1-5.1.5-20.mga9
lua-5.4.3-4.mga9
lua5.1-5.1.5-20.mga9
lua5.1-5.1.5-20.mga9
GG HH 2021-04-13 12:56:08 CEST

CC: (none) => boulshet

Comment 1 Jani Välimaa 2021-04-13 20:01:29 CEST
Alternatives support was dropped when lua was updated to 5.4. At the same time we dropped lua 5.2 and lua 5.3.

Only the latest lua and lua5.1 are supported. /usr/bin/lua and /usr/bin/luac are always coming from the latest lua version we have and aren't alternatives symlinks anymore.

Proper handling of all alternatives file removal is a bit problematic because of how lua was packaged earlier. I'll try to figure out how to handle updating from older releases better. At least we don't have %postun scriptlet errors or warnings anymore.

CC: (none) => jani.valimaa

Comment 2 Lewis Smith 2021-04-13 21:44:52 CEST
Thanks for your learned comments, Jani. Makes me wonder whether this can be closed forthwith; or whether you prefer to leave it open until you manage to concoct something.

Assigning to you because of your existing involvement & work on lua.

Assignee: bugsquad => jani.valimaa

Comment 3 GG HH 2021-04-13 22:57:46 CEST
why not just removing deprecated links in pre 5.4 install ?
Comment 4 Jani Välimaa 2021-04-17 21:28:16 CEST
Updating from mga8 should be now smooth. Cauldron users needs to remove leftover files by hand from /etc/alternatives and /var/lib/alternatives.

This might also work even though it will output a warning.
# update-alternatives --remove-all lua

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.