Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548296 - dev-python/jsmin may be non-free
Summary: dev-python/jsmin may be non-free
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Licenses team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-01 07:39 UTC by Ulrich Müller
Modified: 2017-04-20 21:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2015-05-01 07:39:01 UTC
In a nutshell, __init__.py carries a comment which says:

# This code is original from jsmin by Douglas Crockford, it was translated to
# Python by Baruch Even. It was rewritten by Dave St.Germain for speed.

The original jsmin code is under the infamous Douglas Crockford license, which makes it non-free.

There is currently a discussion about this package going on in the debian-legal mailing list: https://lists.debian.org/debian-legal/2015/04/msg00032.html
Also, Redhat has rejected the package previously: https://bugzilla.redhat.com/show_bug.cgi?id=1014607#c10

Not sure what this means for this package. Looks like it went through two rounds of rewrites, and has also been reimplemented in a different programming language, namely python instead of the original js. Generally, an algorithm (an idea) is not protected by copyright, but only its implementation (a concrete expression of this idea). So one may doubt if the original copyright would still apply to it.

Disclaimer: IANAL, TINLA.
Comment 1 Ulrich Müller gentoo-dev 2015-05-01 10:11:11 UTC
(In reply to Ulrich Müller from comment #0)
> [...] python instead of the original js.

Actually, the original implementation is in C.

The two implementations can be seen here:
https://github.com/douglascrockford/JSMin/blob/master/jsmin.c
https://bitbucket.org/dcs/jsmin/src/006a4e04c9b1b04e717ac4d4b47055d19aa6e8ca/jsmin/__init__.py