[Development] Adding new third party component three.js to Qt?

Kevin Kofler kevin.kofler at chello.at
Fri Jan 16 01:38:50 CET 2015


Lisandro Damián Nicanor Pérez Meyer wrote:
> That might be a question for Kevin, but on Debian a javascript library is
> treated as any other C/C++ library: source code should be there, the
> binary/minified version must be created from the unminified code at
> package build time (ie, when building the source code that ships it). It
> doesn't matter what uses it.

That is also true in Fedora.

What we do not have guidelines for so far is reuse of systemwide JavaScript 
libraries in non-web applications. So Qt will probably get away with 
bundling three.js for now. But shipping it only in minified form is also 
banned by global Fedora policies and thus clearly unacceptable.

My recommendation is to not ship a minified file in the source tarball at 
all (we would have to remove it), but to generate it at build time. However, 
please make sure the minifier you are using is Free Software. The popular 
JSMin is NOT Free Software:
http://wonko.com/post/jsmin-isnt-welcome-on-google-code
http://www.gnu.org/licenses/license-list.html#JSON
and therefore NOT an acceptable build dependency for Qt (or any other 
package for that matter) in Fedora and Debian:
https://fedoraproject.org/wiki/Licensing:Main#Bad_Licenses (JSON License)
https://bugzilla.redhat.com/show_bug.cgi?id=455507
https://wiki.debian.org/qa.debian.org/jsonevil

So please use UglifyJS or another acceptably-licensed minifier instead.

        Kevin Kofler




More information about the Development mailing list