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

Remove dependency on PCJ source files #4

Open
kkrugler opened this issue Mar 20, 2015 · 13 comments
Open

Remove dependency on PCJ source files #4

kkrugler opened this issue Mar 20, 2015 · 13 comments

Comments

@kkrugler
Copy link
Contributor

All files in the https://github.com/codelibs/jhighlight/tree/master/src/main/java/com/uwyn/jhighlight/pcj package use the LGPL license, which means jhighlight isn't actually dual CDDL/LGPL license, it's LGPL only. Which means it can't be used by something like Tika.

One possibility is fastutil (http://fastutil.di.unimi.it/), which is under APL 2.0. You'd want to cherry-pick the minimum number of source files to avoid pulling in a huge jar.

marevol added a commit that referenced this issue Mar 21, 2015
@marevol
Copy link
Contributor

marevol commented Mar 21, 2015

Hmm..., generated codes from fastutil seem to be a part of LGPL.

@kkrugler
Copy link
Contributor Author

I've got sources generated from fastutil (maybe 2 years ago?) that all have the Apache License. Where are you seeing the LGPL license? Also the documentation at http://fastutil.di.unimi.it/ seems to still say it's all Apache License.

@marevol
Copy link
Contributor

marevol commented Mar 21, 2015

https://github.com/codelibs/jhighlight/blob/master/src/main/java/com/uwyn/jhighlight/fastutil/chars/AbstractChar2ObjectFunction.java
For example, the above generated code contains "This file is part of the GNU C Library." at the top of comment.
I'm not sure that it actually contains LGPL codes...
I think that fastutil should remove the comment if it does not have LGPL code.

@kkrugler
Copy link
Contributor Author

Which version of fastutil did you use to generate that source? My version of that same file (from 6.0.0) doesn't have the LPGL license piece.

@marevol
Copy link
Contributor

marevol commented Mar 21, 2015

I downloaded http://fastutil.di.unimi.it/fastutil-6.6.5-src.tar.gz and then run "make sources".

@kkrugler
Copy link
Contributor Author

Hmm - seems like they've got a bug in their source code generation - the project is under APL, so you're right that the header shouldn't have this in it. If you tell me which files you need, I can send you a pull with my (slightly older) versions that don't have this issue.

@marevol
Copy link
Contributor

marevol commented Mar 21, 2015

I added fastutil's files to this repository. jhighlight needs them under:
https://github.com/codelibs/jhighlight/tree/master/src/main/java/com/uwyn/jhighlight/fastutil
Thanks in advance.

@marevol
Copy link
Contributor

marevol commented Mar 22, 2015

Thank you for your pull request. Merged.
Currently, this jhighlight contains original factutil package, it.unimi.dsi.fastutil.*.
My concerns is the conflict for class files if user's application has both jar files for jhighlight and fastutil.
To avoid this problem, I think it's better to use own package.
Please let me know if you have any issues.

@kkrugler
Copy link
Contributor Author

Hi Shinsuke - I don't have a strong opinion about fastutil's package namespace. In general when "borrowing" large amounts of code I try to keep it the same as the original package, but it's OK if you want to move it into your package.

@marevol
Copy link
Contributor

marevol commented Mar 23, 2015

Thank you for the reply. I'll change the package name and release jar file to Maven repository if I do not find any other problems.

@kkrugler
Copy link
Contributor Author

Any update on status? Questions about this over at the Tika project...

@marevol
Copy link
Contributor

marevol commented Mar 27, 2015

I deployed jhighlight 1.0.2 to Maven Central repository yesterday!

http://repo1.maven.org/maven2/org/codelibs/jhighlight/1.0.2/

@thaichat04
Copy link

Thank alot @marevol, the next Tika 1.8 version will use your Jhighlight version. You can update readme.md once this version 1.8 turns out.

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

3 participants