[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

MIT/Expat with "The Software shall be used for Good, not Evil" statement



Hi,

I'm going to package django-pipeline, that is licensed under MIT/Expat
license except one file, that is MIT/Expat too but with one addede
sentence:
  https://github.com/cyberdelia/django-pipeline/blob/master/LICENSE

  jsmin.py (License-information from the file)
  --------------------------------------------
  This code is original from jsmin by Douglas Crockford, it was translated to
  Python by Baruch Even. The original code had the following copyright and
  license.
  
  Copyright (©) 2002 Douglas Crockford  (www.crockford.com)
  
  Permission is hereby granted, free of charge, to any person obtaining a copy of
  this software and associated documentation files (the "Software"), to deal in
  the Software without restriction, including without limitation the rights to
  use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  of the Software, and to permit persons to whom the Software is furnished to do
  so, subject to the following conditions:
  
  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
  
>>  The Software shall be used for Good, not Evil.
  
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.

So it's probably non-free. But at the same time jsmin.py file in package
is just wrapper around jsmin:

  class JSMinCompressor(CompressorBase):
      """
      JS compressor based on the Python library jsmin
      (http://pypi.python.org/pypi/jsmin/).
      """
      def compress_js(self, js):
          from jsmin import jsmin
          return jsmin(js)

I've a few ideas how to at least workaround it:
- repack upstream tarball and replace jsmin.py with stub one that returns
  original JS without compressing.
- don't repack tarball, just patch this jsmin.py using debian/patches so that
  it will not use jsmin at all

Any other suggestions?

-- 
WBR, Dmitry

Attachment: signature.asc
Description: Digital signature


Reply to: