[Bug 785466] New: lua 5.2: senseless default module directories
https://bugzilla.novell.com/show_bug.cgi?id=785466 https://bugzilla.novell.com/show_bug.cgi?id=785466#c0 Summary: lua 5.2: senseless default module directories Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ke@suse.com QAContact: qa-bugs@suse.de CC: pgajdos@suse.com Found By: Documentation Blocker: --- Maybe, I'm wrong (I'm new to lua)... It does not make sense where lua 5.2 looks for modules on my system:
require "lxp" stdin:1: module 'lxp' not found: no field package.preload['lxp'] no file '/usrshare/lua/5.2/lxp.lua' no file '/usrshare/lua/5.2/lxp/init.lua' no file '/usrlib/lua/5.2/lxp.lua' no file '/usrlib/lua/5.2/lxp/init.lua' no file './lxp.lua' no file '/usrlib/lua/5.2/lxp.so' no file '/usrlib/lua/5.2/loadall.so' no file './lxp.so' stack traceback: [C]: in function 'require' stdin:1: in main chunk [C]: in ? Ctrl-D
At least, it probably should look in "/usr/share/..." instead of "/usrshare/..." etc. And instead of /usr/lib I'd expect it to look in /usr/lib64 first on my x86_64 system. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c
Jiaying ren
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c1
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c2
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c3
--- Comment #3 from Petr Gajdos
require "lxp" stdin:1: unexpected symbol near char(114) a stdin:1: unexpected symbol near char(97) b stdin:1: unexpected symbol near char(98) c stdin:1: unexpected symbol near char(99) ba stdin:1: unexpected symbol near char(98) bb stdin:1: unexpected symbol near char(98) bc stdin:1: unexpected symbol near char(98)
Just returning to: -#define LUAI_FUNC __attribute__((visibility("hidden"))) extern +#define LUAI_FUNC extern Fixed that: Lua 5.2.1 Copyright (C) 1994-2012 Lua.org, PUC-Rio
require "lxp" stdin:1: module 'lxp' not found: no field package.preload['lxp'] no file '/usr/share/lua/5.2/lxp.lua' no file '/usr/share/lua/5.2/lxp/init.lua' no file '/usr/lib64/lua/5.2/lxp.lua' no file '/usr/lib64/lua/5.2/lxp/init.lua' no file './lxp.lua' no file '/usr/lib64/lua/5.2/lxp.so' no file '/usr/lib64/lua/5.2/loadall.so' no file './lxp.so' stack traceback: [C]: in function 'require' stdin:1: in main chunk [C]: in ?
Christian, could you please have a look? It seems to be connected to ------------------------------------------------------------------- Tue Oct 9 14:55:31 UTC 2012 - crrodriguez@opensuse.org - Tweak lua-suse.diff again: * LUA_IFUNC must be defined as upstream but without "extern", revert the previous mod. * LUA_API must be defined as visibility default -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c4
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c5
--- Comment #5 from Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c6
--- Comment #6 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c7
Karl Eichwalder
Christian you seems to fixed it in Factory, right?
%prep .. sed -i -e "s@lib/lua/@%{_lib}/lua/@g" src/luaconf.h ..
Karl, do you expect an maintenance update?
Thanks for solving it. I personally do not need it, but a maintenance update would be a good thing ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c8
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c9
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c10
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c11
--- Comment #11 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c12
--- Comment #12 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=785466
https://bugzilla.novell.com/show_bug.cgi?id=785466#c13
--- Comment #13 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com