Lua 5.5 compatibility #66
Labels
No labels
area/api_cli
area/apps
area/content_model
area/framework
area/infrastructure
area/integrity
area/io
area/presentation
area/preservation
area/rdf
area/security
area/submission
area/ui
s
blocked
s
done
s
progress
s
testing
s
wontfix
p
critical
p
high
p
low
p
normal
t
bug
t
documentation
t
enhancement
t
feature
t
test
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ktx/pocket_archive#66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Make Pocket Archive compatible with Lua 5.5.
It is also possible to make it backwards incompatible with Lua 5.4, to possibly reduce future maintenance, because a stable Pocket Archive version hasn't been yet released yet.
Lua 5.5 compatibility requires a change in the
httplibrary, which has a dependency oncompat53, which is only required for Lua 5.2 and older, and cannot run on Lua 5.5.compat53is likely required to maintain backwards compatibility with older Lua versions.Solutions:
httpand remove thecompat53(and while at it, alsobit32which in a comment is noted as only needed by Lua 5.1). This would impose an additional long-term maintenance burden but it's the safest and most straightforward solution.Deferring. Too many dependencies are still not ready for 5.5.
Removing 5.4 compatibility is definitely not a good idea even later.
compat53 was updated to support Lua 5.5: https://github.com/lunarmodules/lua-compat-5.3/releases/tag/v0.15.1 and merged downstream into cqueues in a commit not yet released in Luarocks:
github.com/wahern/cqueues@6bc270dd15So, the least invasive action would be to create a local manifest for the latest cqueues version until that gets released in the root manifest.
Other dependencies remain to be seen.
Most dependencies have been updated or I created ad-hoc rocks.
The latest one failing is lua-vips, which is pinned behind 5.5: https://luarocks.org/manifests/lua-vips/lua-vips-1.1-12.rockspec
Attempting to install a modified the rockspec causes the runtime to crash (probably ffi incompatibility, even though the required luaffi-tkl has been updated to support 5.5 and is installed without a hitch).
Fixed in
88dd3e3935.For now, several rockspecs have to be managed independently, but no 3rd party code has been forked.