Tiny Core Extensions > TCE Corepure64
[Solved] lua 5.4.6 for TCL14 x86_64
jazzbiker:
Great!
You can make some tests. For example install new lua-5.4.tcz and lua-5.4-lib.tcz aside with lua-5.3.tcz and lua-lib.tcz. Then load and install vis.tcz and see does vis editor will actually run.
GNUser:
--- Quote from: jazzbiker on August 18, 2023, 02:46:15 PM ---You can make some tests. For example install new lua-5.4.tcz and lua-5.4-lib.tcz aside with lua-5.3.tcz and lua-lib.tcz.
--- End quote ---
I just did.
--- Quote from: jazzbiker on August 18, 2023, 02:46:15 PM ---Then load and install vis.tcz and see does vis editor will actually run.
--- End quote ---
It sure does :)
jazzbiker:
It was compiled against the present lua-5.3. So liblua.so.5.3.6 is accessible, everything seems to be ok. Include files are separated by original lua installer and lua-5.4.pc is ready to use. Seems like now You have the choice of lua versions, even for development.
Thanks, great!
jazzbiker:
I think the only thing to be tested is
--- Code: ---readlink /usr/local/lib/liblua.so
--- End code ---
GNUser:
Hi, jazzbiker.
Loading old version of the library then loading new version works as expected:
--- Code: ---$ tce-load -i lua-5.3-lib
lua-5.3-lib.tcz: OK
$ readlink /usr/local/lib/liblua.so
/tmp/tcloop/lua-5.3-lib/usr/local/lib/liblua.so
$ tce-load -i lua-5.4-lib
lua-5.4-lib.tcz: OK
$ readlink /usr/local/lib/liblua.so
/tmp/tcloop/lua-5.4-lib/usr/local/lib/liblua.so.5.4.6
--- End code ---
Then I make sure onboot.lst has no lua-*-lib extensions, and reboot.
Next test: Load new version of the library, then load the old version:
--- Code: ---$ tce-load -i lua-5.4-lib
lua-5.4-lib.tcz: OK
$ readlink /usr/local/lib/liblua.so
/tmp/tcloop/lua-5.4-lib/usr/local/lib/liblua.so.5.4.6
$ tce-load -i lua-5.3-lib
lua-5.3-lib.tcz: OK
$ readlink /usr/local/lib/liblua.so
/tmp/tcloop/lua-5.4-lib/usr/local/lib/liblua.so.5.4.6
--- End code ---
This test also gives us the result we want (liblua.so pointing to newest version), but it is somewhat unexpected. I would have expected that loading lua-5.3.lib (which does not have a startup script for smart liblua.so) would have clobbered liblua.so with its own version (i.e., the one that points to /tmp/tcloop/lua-5.3-lib/usr/local/lib/liblua.so which in turns points to /tmp/tcloop/lua-5.3-lib/usr/local/lib/liblua.so.5.3.6).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version