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

[Package]: surrealdb #16229

Closed
1 task done
renhiyama opened this issue Apr 16, 2023 · 6 comments
Closed
1 task done

[Package]: surrealdb #16229

renhiyama opened this issue Apr 16, 2023 · 6 comments
Labels
package request A new package was requested. rust Any problem related to the Rust ecosystem (including cargo)

Comments

@renhiyama
Copy link

Why do you want to add this package to Termux?

SurrealDB is a fast and performant database server, perfect for providing database storage to serverless apps.

P.s: I did try their linux script, it installs perfectly but wont run because of some unmet dependencies on gcc and pthreads, etc. It didnt work on alpine linux distro too, it only worked on ubuntu prooted distro.

Home page URL

https://surrealdb.com/

Source code URL

https://github.com/surrealdb/surrealdb

Packaging policy acknowledgement

Additional information

No response

@renhiyama renhiyama added the package request A new package was requested. label Apr 16, 2023
@2096779623 2096779623 added the rust Any problem related to the Rust ecosystem (including cargo) label Apr 23, 2023
@SunPodder
Copy link
Contributor

@2096779623 can you have a look at their license? I already have the build instructions and using it personally but didn’t make a pr for this license. No other distributions seem to distribute this software probably because of it.

@sylirre
Copy link
Member

sylirre commented Apr 25, 2023

https://surrealdb.com/license

Few key points:

  • We have decided to adopt an extremely permissive version of the Business Source License (BSL). SurrealDB users can use and scale SurrealDB to any number of nodes. They can use SurrealDB or embed it in their applications (whether they ship those applications to customers or run them as a service). They can even run it as a service internally, to their employees, contractors, and subsidiary companies. The only thing that SurrealDB users will not be able to do is offer a commercial version of SurrealDB as a service without buying a license.
  • The BSL is a parameterized license, so our use of it is not exactly the same as MariaDB's. The key difference is in the Additional Use Grant - SurrealDB's Additional Use Grant allows you to use SurrealDB with as many nodes as you want as long as you are not offering it as a commercial DBaaS. Our BSL protects SurrealDB's current code from being used as a DBaaS without an enterprise license for a period of four years. After 4 years this restriction lapses and the code becomes open source, per our current Apache License 2.0, and is free to use for any purpose.

I'm unsure whether our users would use SurrealDB as as a DBaaS, at least that's very unlikely but even if this will be a case, the violation happens on user side. That is the only restriction applied by license and it is only valid for 4 years since the given release was published.

Note that we already provide certain software that is non-free. If software could be useful and license does not restrict redistribution, then it can be packaged.

Although regardless of whether this software can be freely redistributed, I would like to NOT bloat our repository with non-free (aka non-libre) stuff. Users receiving software should be able to use it for everything, even for ridiculous use cases such as running enterprise Database-as-a-Service on their Termux installation.

@2096779623
Copy link
Member

Based on the comments above, I think this package should be added to TUR.

@sylirre
Copy link
Member

sylirre commented Apr 25, 2023

Yes, it can go to TUR repo.

@sylirre sylirre closed this as completed Apr 25, 2023
@SunPodder
Copy link
Contributor

Using BSL-1.1 as the LICENSE throws invalid license error on the ci. What should I do?

Also, their latest release's version is v1.0.0-beta.9+20230402. Using this as the TERMUX_PKG_VERSION throws INVALID (contains characters that are not allowed). What to do with it?

@sylirre
Copy link
Member

sylirre commented Apr 26, 2023

Check this package: https://github.com/termux/termux-packages/blob/master/packages/frobtads/build.sh

Pay attention to TERMUX_PKG_LICENSE and TERMUX_PKG_LICENSE_FILE.

Note that we have BSL-1.0 but it is a Boost Software License.

https://spdx.org/licenses/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package request A new package was requested. rust Any problem related to the Rust ecosystem (including cargo)
Projects
None yet
Development

No branches or pull requests

4 participants