After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707513 - Non-free jsmin.py
Non-free jsmin.py
Status: RESOLVED FIXED
Product: bluefish
Classification: Other
Component: application
development (SVN TRUNK)
Other Linux
: Normal normal
: 2.2.5
Assigned To: Bluefish Maintainer(s)
Bluefish Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-09-04 21:20 UTC by Paul Howarth
Modified: 2013-12-01 22:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paul Howarth 2013-09-04 21:20:57 UTC
The bundled jsmin.py has what's generally considered a non-free license (with the "evil" clause - https://bugzilla.redhat.com/show_bug.cgi?id=455507), as discussed previously on the devel list (http://permalink.gmane.org/gmane.comp.web.bluefish.devel/4978).

In Fedora we're using an alternative implementation from google (https://raw.github.com/v8/v8/master/tools/jsmin.py), which has the advantage of not needing any strings changes in the main application.

An alternative possibility could be slimit, which apparently does a better job:
http://pythonhosted.org/slimit/
http://www.topdog.za.net/2012/04/30/python-modules-you-should-know:-slimit/
Comment 1 Olivier Sessink 2013-09-12 20:12:27 UTC
slimit seems like a nice solution.

should be fixed before the next release.
Comment 2 Jim Hayward 2013-12-01 22:53:01 UTC
(In reply to comment #0) 
> In Fedora we're using an alternative implementation from google
> (https://raw.github.com/v8/v8/master/tools/jsmin.py), which has the advantage
> of not needing any strings changes in the main application.

This version actually does not work with Bluefish.

The previous version of jsmin.py in Bluefish has been replaced with a version with a MIT license. This will be included with the 2.2.5 release.

http://sourceforge.net/p/bluefish/code/HEAD/tree/trunk/bluefish/data/jsmin.py