Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable FCDB #417

Merged
merged 6 commits into from
Apr 11, 2021
Merged

Enable FCDB #417

merged 6 commits into from
Apr 11, 2021

Conversation

lmoureaux
Copy link
Contributor

@lmoureaux lmoureaux commented Apr 11, 2021

This PR allows the use of external Lua packages from database.lua. It removes the built-in support for luasql since it can now be used with require "luasql.something" if installed.

Since FCDB no longer requires additional dependencies, there is no point in making it optional. It is always enabled.

Closes #287.

I removed the md5sum function from the fcdb environment because it created link
issues, and md5sum is an insecure hash to begin with.

See longturn#287.
QCoreApplication::exit does not work from outside an event loop, and there are
other initialization errors than the socket not being initialized correctly.
Make sure the server exits immediately in such cases.
Issues missed in some QString migration.
Prior to this patch the file name was empty, and the error message was simply
"file not found: ".
The "require" function allows loading external modules, which is the best way
of supporting multiple database backends.

See longturn#287.
If people want to use it, they can install it from their distribution's
repositories.

See longturn#287.
@lmoureaux lmoureaux merged commit b9d525c into longturn:master Apr 11, 2021
@lmoureaux lmoureaux deleted the feature/fcdb branch April 11, 2021 17:38
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Jul 19, 2021
A specific version of Lua used to be required, but this is no longer the case
(I think after commit 5aae933/PR longturn#417). Use the version of Lua provided by the
system, requiring at least and prioritizing the widely available Lua 5.3.

This should fix longturn#504.
lmoureaux added a commit that referenced this pull request Jul 19, 2021
A specific version of Lua used to be required, but this is no longer the case
(I think after commit 5aae933/PR #417). Use the version of Lua provided by the
system, requiring at least and prioritizing the widely available Lua 5.3.

This should fix #504.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable FCDB by default
1 participant