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

Tiny_tds fat binary gem (mingw-x64/ Windows) dependency questions #500

Open
senolfeldmann opened this issue Jul 8, 2021 · 1 comment
Open

Comments

@senolfeldmann
Copy link

senolfeldmann commented Jul 8, 2021

I have a question about tiny_tds. Does anyone know if the the various .exe binaries which are shipped in the fat binary gem version (mingw-x64 / CRuby on Windows) of tiny_tds are really needed for tiny_tds to be able to operate? My takeaway from reading the various rake files is that only some libs are needed.
For me, iconv.exe in C:\Ruby27-x64\lib\ruby\gems\2.7.0\gems\tiny_tds-2.1.5-x64-mingw32\ports\x86_64-w64-mingw32\libiconv\1.15\bin is especially important, as it is licensed under GPL and I want to use activerecord-sqlserver-adapter (and thus tiny_tds as it is a dependency) commercially.

And what about the .exe binaries of freetds: bsqldb.exe, datacopy.exe, defncopy.exe, freebcp.exe, tdspool.exe and tsql.exe, are they needed or can I delete them from my system?

@andyundso
Copy link
Member

Does anyone know if the the various .exe binaries which are shipped in the fat binary gem version (mingw-x64 / CRuby on Windows) of tiny_tds are really needed for tiny_tds to be able to operate?

No, these are needed to operate. However, if you report an issue, it is helpful for us if you run the tsql utility to give us more details about your environment.

For me, iconv.exe in C:\Ruby27-x64\lib\ruby\gems\2.7.0\gems\tiny_tds-2.1.5-x64-mingw32\ports\x86_64-w64-mingw32\libiconv\1.15\bin is especially important, as it is licensed under GPL and I want to use activerecord-sqlserver-adapter (and thus tiny_tds as it is a dependency) commercially.

FreeTDS is also distributed under the GPL license.

I am no expert on licensing. I think you are good if you would provide your software as a SaaS. If you plan to distribute your software alongside a copy of tiny_tds, then I think you would have to license your code as GPL as well.

In theory, we do not have to use libiconv for FreeTDS. It would then fallback to its own iconv-like implementation, but again, it does not matter since FreeTDS is also licensed as GPL.

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

No branches or pull requests

2 participants