28

I did not find the lawyers' SE site, so I thought it best to post here.

/*
 * ...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"...
 */

This is the 'non-free', Crockford, No-Evil, MIT-style, license. This license is considered non-free because of this phrase: "The Software shall be used for Good, not Evil."

How could we rewrite this to become a 'free' license, while retaining the original spirit of the sentence?

6 Answers6

43

It's impossible.

A requirement of "free" (going by the official open source definition) is to never restrict usage based on endeavor.

If you say "you can't use this software to do X" then it's non-free, no matter how evil X is; you're still restricting based on endeavor.

Even if you say "You can't use this software to kill a human", then it will still be non-free.

But in reality, it doesn't matter much. Someone who intends to do evil is not likely to abide by your license anyway (specially if it's a government).

See #6 in http://www.opensource.org/osd.html

6. No Discrimination Against Fields of Endeavor

The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.

Rationale: The major intention of this clause is to prohibit license traps that prevent open source from being used commercially. We want commercial users to join our community, not feel excluded from it.

The only way I can think of is to add a sentence that's not legally part of the license. "Please don't use this software for $EVIL_PURPOSE".

hasen
  • 1,369
24

The way to rewrite this license to be more free, would be to remove that stupid sentence. Stick to the standard widely adopted MIT license.

This particular license has caused all kinds of headaches for downstream developers building upon Douglas Crockford's work, and now means his low level library is having to be carefully picked out and replaced throughout the ecosystem. A huge waste of effort.

The "legal definition of evil" aspect of this is problematic obviously, but really this is part of a more general problem of "license proliferation". If people keep making up new licenses just for fun, then more wasted effort will always occur. So to your question, how to rewrite this license to create a new license with a similar meaning? I say...

DON'T! For goodness sake. Pick an existing license. There are already too many to choose from.

11

How could we rewrite this to become a 'free' license, while retaining the original spirit of the sentence?

You can't. Such usage restrictions are fundamentally incompatible with the Free Software Definition.

In particular, they violate Freedom 0, the most important one of the four freedoms, and the foundation upon which the other three freedoms and really the entire idea of Free Software are built upon:

The freedom to run the program, for any purpose (freedom 0).

[Emphasis mine.]

You specifically asked about a free license, but you may wonder: "Okay, so, it's not Free, but maybe it's Open Source?" And the answer is: nope, it isn't. It violates clause 6 of the Open Source Definition:

No Discrimination Against Fields of Endeavor

The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.

Now, you might argue that "evil" is not a field of endavour, but rather a goal of endavour, and thus not covered by this restriction. And you may be right.

Jörg W Mittag
  • 104,619
9

Surely this is all in the eye of the beholder. For example (and exaggerating outrageously) a megalomaniac dictator might think it good to adapt such s/w with this license so that it can eliminate 68 billion people in a single nanosceond...

It's awfully subjective. Personally I regard this kind of thing as rather childish, the author should be more specific about their intent, or simply place no restrictions at all.

quickly_now
  • 15,060
2

Instead of a license, the SQLite source code offers a blessing:

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.

You can add it at the bottom of the license, it has no legal value.

-6

Here is a version inspired by Jainism.

The Software shall be used for Good, and shouldn't harm directly or indirectly living beings

That sentence is general enough to include other things such as rare resources on the planet.