-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Resolve FOSS license issues #19409
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
Resolve FOSS license issues #19409
Conversation
nodakai
commented
Nov 30, 2014
- Update COPYRIGHT
- Install combined copyright documents on Linux
- Embed (compressed data of) combined copyright documents to rustc and rustdoc.
Signed-off-by: NODA, Kai <[email protected]>
install.sh copies it to <prefix>/share/doc/$(PKG_NAME)/ where $(PKG_NAME) is something like "rust-0.13.0". It is generated by concatenating LICENSE, LICENSE-MIT, LICENSE-APACHE. and AUTHORS.txt. It used to include only the first three, but including AUTHORS.txt is preferable because LICENSE mentions it. Signed-off-by: NODA, Kai <[email protected]>
Signed-off-by: NODA, Kai <[email protected]>
The license document is compressed by DEFLATE and then stored as pub const license::text::COPYRIGHT of type &'static [u8]. A helper script src/etc/license2rs.sh takes care of updating it. It is decompressed by flate::inflate_bytes() on runtime. Fix rust-lang#17690 Signed-off-by: NODA, Kai <[email protected]>
Thanks for taking the initiative on this @nodakai! We want to be sure to tread carefully here, however, so I'm going to assign this to @brson. As some high-level review:
|
Can you review my patches one by one? The first three should compile independently and should basically be enough to improve the current situation. The combined license documents is rather lengthy, so it will surprise users to show it with
Can you elaborate on your concern about generated files? Of course it will not kill us just to define a large (raw) string literal, but I had something like "resource file" in my mind (VC++/.NET, Java, or even with GCC toolchain) |
Amazing, there's a script to check for a verbatim copy of the license text template! I just didn't like the negative tone of the last sentence
but of course I won't push my taste on you when you want to merge my commits. |
Can you explain which part of the license requires embedding of authors in binaries? |
@adrientetar I don't claim it was explicitly required. Howerver COPYRIGHT states
|
But I don't see why we need to embed it in binary rather than distributing the textual license with the distribution. |
@adrientetar I don't claim "we need to embed it in binary". Please remind that this is nothing more than my proposal. The background is, the tarball distributed for Linux at https://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz ( http://www.rust-lang.org/install.html ) does include |
cc #17690 |
There seems to be something wrong with this patch
because
I think I have to seriously learn evaluation rules of Makefile. |
Closing due to inactivity; feel free to re-submit when you've figured out the necessary make-gicks, @nodakai! |
minor: Don't query the database in workspace switching