View Single Post
Old 03-23-2016, 09:42 AM   #9
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
We're using it in KOReader w/ LuaJIT, which is mostly 5.1, so check that?
Yeah - that is a bigger question, for someone else.
LuaJIT(.org) has promised their user community to continue 5.1 support.
That decision was made based on: "there is so much code written for 5.1 that it will take forever to update all of it".
Well, forever has come.

Meanwhile, I have a plan -

First rule out PEBCAK - the debian archive I used contains lfs for both 5.1 and 5.2 :
Make sure that I just didn't click on the wrong *.so when moving things to the Kindle/Lua layout.

Then, find a copy of lfs (lua-filesystem-1.5.?) that builds against lua-5.1, then backport the function entries from lua-filesystem-1.6.?.

Meanwhile, keeping my own lfs repo that **does** span the changes from 5.1 -> 5.2

such is this morning's plan - as I drown in the Debian source archives from the turn of the century.

I suppose the Python community is facing similar issues in the 2.7 -> 3.0 change.

Whoot!
Debian-3.0 has (had) Lua-4.0 available (but no lfs), so the chances of my finding lua-5.1 has just increased.

Debian-4.0 introduced lua-expat, lua-curl, and lua-filesystem for lua-5.1
Now to find those sources.
At the worst, I should have them on one of my computers or backup disks.

Got'em:
Code:
core2quad lua-filesystem $ ls -1 *.orig.*
lua-filesystem_1.2.orig.tar.gz
lua-filesystem_1.4.1.orig.tar.gz
lua-filesystem_1.4.2.orig.tar.gz
lua-filesystem_1.5.0+16+g84f1af5.orig.tar.gz
lua-filesystem_1.6.2.orig.tar.gz
lua-filesystem_1.6.3.orig.tar.gz
Now to spend the day bashing my head against that wall.

New home is at:
https://github.com/janetizzy/lua51-filesystem

Now I just have to figure out where support for lua-5.1 went to between lfs-1.6.2 and lfs-1.6.3
At least that is what the README says happened.

Update:
I reverted to lfs-1.6.2 for our Kindle/Lua and now:
Code:
[root@kindle testme]# lua -lesys
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> lfs = require'lfs'
> os.exit()
There are a lot of 'code fixes' in lfs-1.6.3 that would be nice to have, but for now it will be lfs-1.6.2

Last edited by knc1; 03-23-2016 at 02:15 PM.
knc1 is offline   Reply With Quote