Bug 1091499

Summary: Please use luajit instead of lua in F20+ (prosody requires lua 5.1; lua 5.2 is packaged)
Product: [Fedora] Fedora Reporter: David Benfell <benfell>
Component: prosodyAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: dridi.boukelmoune, jkaluza, Neustradamus, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: prosody-0.9.8-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-26 12:51:53 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 David Benfell 2014-04-25 18:29:28 UTC
Description of problem: Observed failure to initiate s2s module


Version-Release number of selected component (if applicable):
0.9.0-0.5.rc5.fc20

How reproducible:
100%

Steps to Reproduce:
1. systemctl start prosody
2. watch logs
3.

Actual results:
trouble initializing s2s module

Expected results:
full start of prosody

Additional info:
According to upstream, prosody should not run against lua 5.2, which is currently packaged under Fedora, but requires lua 5.1. They were surprised it ran at all.

Apparently, a newer version will detect lua 5.2 and refuse to run.

Comment 1 Jan Kaluža 2014-05-06 05:52:22 UTC
Please use luajit instead of lua in F20+. luajit will remain compatible with lua 5.1 and prosody works quite well with it.

Comment 2 Jan Kaluža 2014-05-30 11:03:52 UTC
Done in rawhide.

Comment 3 Dridi Boukelmoune 2014-07-08 18:14:56 UTC
Hello,

I have the opposite problem, I can't use lua modules with luajit. What am I supposed to do to make this work?

$ luajit -l lpeg
luajit: module 'lpeg' not found:
	no field package.preload['lpeg']
	no file './lpeg.lua'
	no file '/usr/share/luajit-2.0.3/lpeg.lua'
	no file '/usr/local/share/lua/5.1/lpeg.lua'
	no file '/usr/local/share/lua/5.1/lpeg/init.lua'
	no file '/usr/share/lua/5.1/lpeg.lua'
	no file '/usr/share/lua/5.1/lpeg/init.lua'
	no file './lpeg.so'
	no file '/usr/local/lib/lua/5.1/lpeg.so'
	no file '/usr/lib64/lua/5.1/lpeg.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
	[C]: at 0x004460d0
	[C]: at 0x00404e90

$ rpm -qa lua-lpeg luajit
lua-lpeg-0.12-2.fc20.x86_64
luajit-2.0.3-1.fc20.x86_64

Do we need compat packages for luajit?

Comment 4 Fedora Admin XMLRPC Client 2015-01-16 17:34:17 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2015-02-02 21:25:47 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Robert Scheck 2015-02-14 19:35:59 UTC
Status: We have luajit and compat-lua in Fedora...and both provide 5.1, but
not all lua modules have a -compat subpackage for 5.1. Given that I do not
have a deep clue about Lua so far, I asked upstream for a suggestion between
luajit and compat-lua.

Comment 7 Fedora Update System 2015-04-18 13:13:15 UTC
prosody-0.9.8-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/prosody-0.9.8-1.fc20

Comment 8 Fedora Update System 2015-04-18 13:16:16 UTC
prosody-0.9.8-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/prosody-0.9.8-1.fc21

Comment 9 Fedora Update System 2015-04-18 13:16:52 UTC
prosody-0.9.8-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/prosody-0.9.8-1.fc22

Comment 10 Fedora Update System 2015-04-21 18:31:01 UTC
Package prosody-0.9.8-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing prosody-0.9.8-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6428/prosody-0.9.8-1.fc20
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2015-04-26 12:51:53 UTC
prosody-0.9.8-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2015-04-30 11:46:49 UTC
prosody-0.9.8-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-05-10 23:53:13 UTC
prosody-0.9.8-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.