Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767202 - net-im/prosody-0.11.7-r100: init script calls wrong Lua binary
Summary: net-im/prosody-0.11.7-r100: init script calls wrong Lua binary
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-25 21:25 UTC by Jonathan Davies
Modified: 2021-01-26 17:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Davies 2021-01-25 21:25:23 UTC
I just performed an upgrade from:

- net-im/prosody-0.11.7-r2

...to:

- net-im/prosody-0.11.7-r100

...and it appears to have done a whole Lua transition, however, when I restart prosody, I get:

 * Caching service dependencies ...                                                                                                                                                                                                                                                                                                                                                                                                   [ ok ]
 * Stopping Prosody XMPP server ...                                                                                                                                                                                                                                                                                                                                                                                                   [ ok ]
/etc/init.d/prosody: line 22: luac: command not found
 * ERROR: prosody failed to start

...changing that line to luac5.1 makes it work.
Comment 1 Ionen Wolkens gentoo-dev 2021-01-26 12:46:23 UTC
I find it strange that luac is missing if using 5.1 as it should've called eselect-lua (exception if used luajit)

But either way lua-single packages should still be made to call the requested version directly before we get a potential future [-native-symlinks] event.
Comment 2 Conrad Kostecki gentoo-dev 2021-01-26 17:34:45 UTC
Hi. Thank you very much for pointing this out.

Tbh, I didn't saw, that the init script was calling luac.
I don't see any sense in running luac manually, as there is 'prosodyctl check config', which I will use instead, when bumping init scripts.
Comment 3 Conrad Kostecki gentoo-dev 2021-01-26 17:44:30 UTC
(In reply to Ionen Wolkens from comment #1)
> I find it strange that luac is missing if using 5.1 as it should've called
> eselect-lua (exception if used luajit)

If eselect-lua is run, this should be the case. At least it's the case here?

> But either way lua-single packages should still be made to call the
> requested version directly before we get a potential future
> [-native-symlinks] event.

It's clearly a bug, as all packages using lua-single should always run correctly, if eselect-lua has been never run.
Comment 4 Larry the Git Cow gentoo-dev 2021-01-26 17:48:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0627ace426453e33e7c25cee06997274a002a127

commit 0627ace426453e33e7c25cee06997274a002a127
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2021-01-26 17:46:33 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2021-01-26 17:48:35 +0000

    net-im/prosody: fix checkconfig on slotted lua
    
    Closes: https://bugs.gentoo.org/767202
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 net-im/prosody/files/prosody.initd-r5     |  44 +++++++++++++
 net-im/prosody/prosody-0.11.7-r101.ebuild | 103 ++++++++++++++++++++++++++++++
 2 files changed, 147 insertions(+)