less.js icon indicating copy to clipboard operation
less.js copied to clipboard

dual-licence question

Open jeff-h opened this issue 14 years ago • 56 comments

Would you consider releasing LESS under GPL v2 (or something compatible with it, such as MIT), as well as the existing Apache 2?

The three big open source CMS's — WordPress, Joomla and Drupal — are all GPL2 only and thus can't incorporate this library easily, instead requiring users to manually come to github or http://lesscss.org and download it, and install it separately, which ultimately reduces adoption.

jeff-h avatar Nov 09 '12 20:11 jeff-h

ideally we would recommend people use less.js serverside, not browserside... and this suggestion is to enable more people to use it browser side?

lukeapage avatar Nov 10 '12 08:11 lukeapage

True, if all you're using is the result of LESS, then license be damned. There are some advantages to using LESS in the browser when it comes to hosted environments, especially the ones that basically force you to edit your CSS directly online via an editor panel.

The GPL really does make things difficult for everyone, doesn't it?

Soviut avatar Nov 10 '12 08:11 Soviut

I think @cloudhead would have to comment on this...

lukeapage avatar Nov 10 '12 08:11 lukeapage

To clarify, no, this request is actually not talking about using it client side in the usual fashion. Sorry for the ambiguity.

In my particular case, I'm writing a Drupal module which needs to create & compile LESS into CSS client-side, after first page load, to power a browser-based theming tool (see http://drupal.org/project/livethemer). After the design is completed client-side, it'll be sent back to the server and compiled once using Leafo's lessphp server-side, and cached on the server from that point on.

I guess another use-case for a GPL2-friendlier license would be packaging a bunch of code together which runs less.js on node.js (all on the server) to help power one of the CMS's I mentioned, but I admit that's probably a less common scenario.

It's true I could have the Drupal module include less.js from a centrally-hosted copy (on my own server) but it would be much nicer to be able to include it in the Drupal module package so everyone has their own copy locally.

jeff-h avatar Nov 13 '12 00:11 jeff-h

The three big open source CMS's — WordPress, Joomla and Drupal — are all GPL2 only

For the record WordPress is GPLv2 or later, you can do compatible extensions for it under GPLv3 that can include Apache License 2.0.

But I concur that MIT goes much easier with GPL stuff.

Rarst avatar Jun 29 '13 16:06 Rarst

I am also coming from Drupal and would like to suggest dual license with MIT, or even re-license into MIT as like as that of bootstrap (https://github.com/twbs/bootstrap/commit/cb40a2ee8c88efdec0c35adf173cc96ba25db21e).

I would like to reference the complete discussion of bootstrap in here (https://github.com/twbs/bootstrap/issues/2054) as your reference.

hswong3i avatar Dec 30 '13 06:12 hswong3i

If this is still a major issue, dual-licensing with MIT is ok with me.

cloudhead avatar Dec 30 '13 13:12 cloudhead

At least from a Drupal contributor point of view, Apache license must be a issue when we hope to contribute code to drupal.org GPL-only GIT repository (which we had already try to encourage ppl switch to GPLv3 for more than 2 years but not success).

In case we can dual-licensing with Apache + MIT, the problem will be solved automatically.

P.S. as your reference that the corresponding Drupal module for integrating less.js already completed (https://drupal.org/project/twbs_less); BTW, I can't submit less.js URL to drupal.org packaging whitelist (https://drupal.org/packaging-whitelist?title=less) since it is now under Apache license ;-(

P.P.S. Drupal.org Library Packaging Whitelist request for including less.js is now submitted, too.

hswong3i avatar Dec 31 '13 01:12 hswong3i

Would we need to get a CLA signed by all contributors? or is it something we can just declare?

lukeapage avatar Dec 31 '13 12:12 lukeapage

Without prior agreement every contributor needs to agree to license change or their contributions need to be reverted and re-done. That's what took Bootstrap so long to deal with.

Rarst avatar Dec 31 '13 13:12 Rarst

every contributor needs to agree

All that is required is a simple "yes". So you have mine at least, yes.

jonschlinkert avatar Dec 31 '13 16:12 jonschlinkert

From https://github.com/twbs/bootstrap/issues/2054#issuecomment-15491803

FYI .. the doctrine project used this tool here to handle the migration from LGPL to MIT: https://github.com/beberlei/license-manager

hswong3i avatar Jan 01 '14 04:01 hswong3i

I give some try to installation https://github.com/beberlei/license-manager on my local testbed and able to create a license switch project for less.js as below screenshot.

If this tool looks good enough I will able to give a hand for install it under a public accessible domain name.

Any idea?

license_manager-less js license_manager-less js-2 license_manager-less js-3 license_manager-less js-4

hswong3i avatar Jan 01 '14 05:01 hswong3i

well we don't want to move to MIT, we want to dual-license right? What back-end does this tool go against? whats the easiest option - is it possible to get it running using gh pages only and presumably some free online database?

lukeapage avatar Jan 02 '14 10:01 lukeapage

Sass is MIT-licensed, so that's always an option for the CMSes. Although honestly, they're being way too paranoid+draconian.

cvrebert avatar Apr 16 '14 05:04 cvrebert

Is there any progress ? It would be a pity if lessjs would loose the "race" against sass only because of licence restrictions.

ghost avatar Jun 29 '14 13:06 ghost

It would be nice to get even a single line of feedback. Are there any thoughts about changing the licence ?

ghost avatar Apr 08 '15 23:04 ghost

@nueckman

It's all above I guess. As I see it, this is not going to happen until someone to sit and manage all those things required to get the change permission from every less.js codebase contributor. I assume none of the (very small) Less team does actually find this pretty much abstract "race condition" thing (5 posts for 2.5 years?) to be important enough to take this quite tedious task. But obviously if anyone else finds this to be important enough to put his time for, he's welcome and helped.

seven-phases-max avatar Apr 09 '15 00:04 seven-phases-max

@nueckman I do not mind adding another open source license to less or changing it to another standard open source one.

@seven-phases-max Is it really necessary to hunt down every single small commit author for license addition?

SomMeri avatar Apr 09 '15 08:04 SomMeri

@SomMeri I'm not an expert at all, but according to above comments, https://github.com/twbs/bootstrap/issues/2054 and similar issues found elsewhere - yes, it looks like so. (This is weird of course, counting that the codebase was reworked and reorganized sort of several times by now... so that, I believe, roughly speaking, 99% of the current code is actually written solely by @lukeapage from scratch :), but such estimations are not what these kind of things can be based upon :(

P.S. Obviously you don't need to if you can manually go through each contribution and decide (after all a commit might even only remove some code :), but that looks to go even more tedious than simply contacting all of them ((semi?)-automatically).

seven-phases-max avatar Apr 09 '15 09:04 seven-phases-max