r/programming • • Oct 01 '19

Stack Exchange and Stack Overflow have moved to CC BY-SA 4.0. They probably are not allowed too and there is much salt.

https://meta.stackexchange.com/questions/333089/stack-exchange-and-stack-overflow-have-moved-to-cc-by-sa-4-0
1.3k Upvotes

445 comments sorted by

View all comments

Show parent comments

61

u/TinynDP Oct 02 '19

Code that is BSD/MIT licensed can be 're-licenced' into GPL projects.

Depending on the terms of the actual CC licences, both versions, it might be permittable to re-license. Cant just blanket say that they can not.

66

u/3dB Oct 02 '19

I'm not sure if I'm correct here but I thought that sure, while you can re-license code any versions released or committed under a previous license would remain subject to the terms of that previous license. The change doesn't apply retroactively.

For example if you release a version 1 under MIT license but version 2 you release under GPL, people would be well within their rights to go back and use any code released under version 1 as still being MIT licensed.

32

u/ghostnet Oct 02 '19

In general that is correct!

The GPL and MIT license both allow for re-distribution which means that anyone can redistribute it, under at least the same license if not a different one. So if someone released version 1 under MIT then there will always be another person who is able to share that same code under the MIT license, no matter what. The original author can choose to change the licence whenever they want, as long as they are the copyright holder or have the permission to do so, meaning that all future copies of version 1 they distribute are under the GPL lets say. That does not change any existing licenses out there, so everyone who has a copy under MIT will still be able to distribute it under an MIT license. Thus is the intention of open source.

4

u/TinynDP Oct 02 '19

It only doesnt apply retroactvly to copies that were already downloaded. The host can change their license for what they provide to people from that day forward.

7

u/curtmack Oct 02 '19

That's not quite accurate. The Free Software Foundation's "GPL-compatible" designation means that code licensed under a GPL-compatible license can be used with code licensed under the GPL while upholding the terms of both licenses. This does not involve "relicensing" the original code, and you must still uphold the terms of the original license, such as including copies of the license with your finished work. This is also why individual source files should be marked with license information, rather than just including a project-wide LICENSE file.

(Some code is explicitly made available under multiple licenses - usually the GPL and one other license - which allows you to use any of them when incorporating it into your own code. But you may not presume this!)

1

u/TinynDP Oct 02 '19

That is not what I was talking about. I meant a GPL project can copy-paste MIT code into their own GPL project, and slap GPL headers on it. And all copies of that once-MIT-code that are distributed by that GPL project are, from that source, GPL. (Nothing about the original MIT source) Maybe its not "re-license" its "super-license", the GPL can be drapped over the MIT code like a blanket.

19

u/[deleted] Oct 02 '19

Also they silently replace links to use their afflicate API keys for amazon/google to earn extra money $$$ per the terms of CC BY-SA 3.0 these would have declared as modifications of an earlier work. They are not.

So It isn't like S/O even now respects their ToS/License agreement.

7

u/[deleted] Oct 02 '19

CC-BY-SA allows modifications if you keep the license the same

3

u/axzxc1236 Oct 02 '19 edited Oct 02 '19

https://google.com/

This kind of stuff is what they are doing.

I'm pretty sure CC-BY-SA requires you to say you changed hyperlink, but stackoverflow only states it here, this notification is not showing up on all stackoverflow pages, and their change doesn't show up in revision history.

2

u/[deleted] Oct 02 '19

CC doesn't require a revision history though. You just need to name all the authors who wish to be named.

2

u/axzxc1236 Oct 02 '19

Is it?

Does changing hyperlink of a text not creating a derivative?... and that doesn't matter because they are now all licensed in 4.0, they must indicate changes and retain indication of previous changes

1

u/[deleted] Oct 03 '19

Huh, thx for the correction

5

u/astrange Oct 02 '19

You can re-license your own code from MIT to GPL, because you own it. You can also relicense it from GPL to closed, or anything else you like. Other people can't though.

1

u/TinynDP Oct 02 '19

From MIT to GPL, yes they can. At least, for copies that people get from the gpl project. (Copies that come from the MIT source are still that). The MIT licence even says you can "sublicense" code from it, but the rest of it is so loose that you could do that anyway, even without sublicense being explicit.

When Linux straight copy-pasted the original TCP code stack from BSD, the tcp code files that were distributed with Linux itself all said GPL license, not the original BSD license.