1

I have an open source project that has the attention of some peers, and several of them are eager to contribute. There is one amongst them, however, who I wish (largely for comedic purposes; it's a long story) to keep from contributing.

Is it valid to put in the license a clause to the effect of "Anyone is free to modify this software, except for Andrew?"

  • I'd put the joke somewhere less legal, like in the Readme file, the documentation, or in the "please read the license file" comment on top of your source code. – Ixrec Mar 8 '15 at 15:10
3

According to the Open Source Initiative, no. In order for a license to be considered open source, there are 10 clauses. One of them is that an open source license can not discriminate against a person or group:

The license must not discriminate against any person or group of persons.

The Free Software Foundation also provides a description of free software. It appears that such restrictions would also make the software nonfree according to them. It's not explicitly mentioned, but since nonfree software is any software license that prevents use, redistribution, or modification or requires for permission first. Since you are preventing at least one individual from using, redistributing, or modifying the software, I believe it would fall under their definition of nonfree:

Nonfree software is any software that is not free. Its use, redistribution or modification is prohibited, or requires you to ask for permission, or is restricted so much that you effectively can't do it freely.

The software license is the formal location for the terms of acquiring, using, and distributing the software, putting it in there would likely be what is invoked in any kind of legal discussion regarding the software. In addition, if you included such a restriction in your license, you may not be able to use services that are freely available to free and/or open source projects, such as Coverity Scan or hosting on Google Code.

  • 1
    It is important to note that yes, one may put those restrictions in place. Whether the FSF or OSI would call it "open source" is a separate issue. – user22815 Mar 8 '15 at 21:32
  • But also if you add those restrictions to open source code that is derived from someone else's open source code and then distribute it then it is illegal and copyright infringement. – gnasher729 Feb 22 '16 at 23:44
1

Not if you want to call it open source. Most definitions of open source include some variant of (OSI wording here):

The license must not discriminate against any person or group of persons.

Consider whether your little in joke can be honored without legal headaches for all users, for example by stating you won't merge your peer's contributions into the "official" repository.

  • Marked Thomas's answer as correct since I found it a little more informative, but thanks for your input and for responding quickly! – Sheev Mar 8 '15 at 16:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.