[Bug 1804865] [NEW] Lua dynamic libraries isn't enabled

Launchpad Bug Tracker 1804865 at bugs.launchpad.net
Sat Apr 20 20:24:43 UTC 2019


You have been subscribed to a public bug by Andreas Rönnquist (gusnan):

[Impact]

No Lua module which is in the dynamic library can be loaded by SciTE on
Linux since >=4.0 (when it started using Lua 5.3).

[Test Case]

First - create /usr/local/lib/lua/5.3/system and symlink a module there:

sudo apt -y install lua-system
sudo mkdir -p /usr/local/lib/lua/5.3/system
sudo ln -s /usr/lib/x86_64-linux-gnu/lua/5.3/system/core.so /usr/local/lib/lua/5.3/system/core.so


Add a Lua script to the startup scripts: (Use the menu "Options" -> "Open Lua Startup Script") and add

local system = require 'system.core'
print( "System.Gettime is ", system.gettime() )

which should simply print the current time using the Lua library when
starting SciTE, instead gives an error:

error loading module 'system.core' from file '/usr/local/lib/lua/5.3/system/core.so':
	dynamic libraries not enabled; check your Lua installation
>Lua: error occurred while running startup script


[Other]

(Previous text):


SciTE in ubuntu 18.04 has the Lua library embedded, and compiled without dynamic libraries enabled. This makes it impossible to load Lua modules which is in the dynamic library on SciTE >= 4.0, when it started using Lua 5.3.

On later versions (SciTE >= 4.1.0) I have built Lua without using the
embedded Lua library but using Debian-packaged shared object instead,
and there this isn't a problem. (I am one of the Debian maintainers of
SciTE).

This leaves the version in 18.04, where this still is a problem.

See upstream bug at
https://sourceforge.net/p/scintilla/bugs/2058/

for a patch. Another alternative is to backport version 4.1.0 or later
to Ubuntu 18.04.

** Affects: scite (Ubuntu)
     Importance: Low
         Status: Fix Released

** Affects: scite (Ubuntu Bionic)
     Importance: Low
         Status: New


** Tags: bionic patch patch-accepted-upstream
-- 
Lua dynamic libraries isn't enabled
https://bugs.launchpad.net/bugs/1804865
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list