News for hackers. Stuff that matters.
Re:Mongoose OS – An Open Source Operating System for the Int... by mijoharas on Tuesday August 08, 2017 @09:07AM (#14957397)
> GPLv2 license: FREE FOR NON-COMMERCIAL USE

This confuses me, the GPLv2 doesn't say anything about commercial use, it merely says that you need to redistribute the source code to anyone that you distribute your software to.

Have they placed additional restrictions on the GPL (which I believe you are prohibited from doing)? or are they just trying to highlight that they are dual-licensing it under a license that isn't copyleft if you pay them (since lots of companies have no-gpl policies)?

Re:Mongoose OS – An Open Source Operating System for the Int... by VLM on Tuesday August 08, 2017 @09:17AM (#14957481)
Seems to be the latter, fairly typical "its GPL unless you want to pay us for a different license"

https://github.com/mongoose-os-libs/mqtt/blob/master/LICENSE

Re:Mongoose OS – An Open Source Operating System for the Int... by snakeanus on Tuesday August 08, 2017 @12:26PM (#14959463)
It seems that it lacks the "or (at your option) any later version" part. Which is quite sad.
Re:Mongoose OS – An Open Source Operating System for the Int... by ivanbakel on Tuesday August 08, 2017 @01:36PM (#14960267)
And an odd choice, even if your target market is tyrant devices. Why not encourage corporations to pay for the non-free license by restricting the uses of the free version?
Re:Mongoose OS – An Open Source Operating System for the Int... by tyingq on Tuesday August 08, 2017 @10:13AM (#14957910)
Sounds like they are trying to say you can't opt for the GPL if you plan on commercial use.

Not a lawyer, but I don't see how that flies. They could make their own GPL-like license with that clause added in. But using it as-is means it's open for commercial use, subject of course to the GPL terms. https://www.gnu.org/licenses/gpl-faq.html#GPLCommercially

Re:Mongoose OS – An Open Source Operating System for the Int... by 5trokerac3 on Tuesday August 08, 2017 @11:21AM (#14958741)
They might argue that packaging a product with their OS and selling it is the equivalent of white labeling it, which might be technically true, considering the user would have no idea what's powering the thing.

It would be the equivalent of writing a GUI plugin for WordPress and trying to sell it as something like Squarespace.

Not that I agree with this possibility of Mongoose OS's approach. I don't at all, and think it would completely negate their "open source" claim, from a semantical standpoint.

Re:Mongoose OS – An Open Source Operating System for the Int... by bryanlarsen on Tuesday August 08, 2017 @09:20AM (#14957513)
I haven't checked what Mongoose does, but it's fairly common for embedded OS's to link the application and kernel together. IOW, using the GPL may force you to give the source code to your customers if they ask for it.
Re:Mongoose OS – An Open Source Operating System for the Int... by guyfawkes303 on Tuesday August 08, 2017 @10:36AM (#14958142)
So I'm a little confused on how licensing works in these types of situations. 'GPL may force you to give the source code', which source code? Presumably whatever code lives on the device that uses Mongoose is just one piece of a much larger puzzle. So does this imply you only need to give the code that lives on the device running Mongoose? Or any of your code that interacts with it?
Re:Mongoose OS – An Open Source Operating System for the Int... by monocasa on Tuesday August 08, 2017 @11:06AM (#14958531)
What he's saying is that embedded devices a lot of the time statically link the kernel, libraries, and application all into on bare metal program. A GPL licence on the kernel and libraries would affect the application.
Re:Mongoose OS – An Open Source Operating System for the Int... by guyfawkes303 on Tuesday August 08, 2017 @11:19AM (#14958714)
Right. My question is if the code on the bare metal device talks to, say, a cloud server running an API, does the code running the API also fall under the GPL, and therefore need to be released? I assume not, but assumptions can be dangerous.
Re:Mongoose OS – An Open Source Operating System for the Int... by monocasa on Tuesday August 08, 2017 @11:30AM (#14958844)
Oh gotcha. No, your remote code wouldn't need to be released just because your IoT code is GPLed.
Re:Mongoose OS – An Open Source Operating System for the Int... by wongarsu on Tuesday August 08, 2017 @05:59PM (#14963285)
In reality nobody knows, it's very a very complex question that has been barely explored in court.

In practice everybody acts under the assumption that the GPL affects all code that is statically linked together, but nothing else. Some people extend the interpretation to dynamic linking, but consensus is that the GPL does not affect code interoperating over other interfaces like web APIs.

Re:Mongoose OS – An Open Source Operating System for the Int... by gribbly on Tuesday August 08, 2017 @01:28PM (#14960163)
That's an odd phrasing for sure.

I assume what they mean is that you can purchase a special license which allows you to use moongoose without GPL (typically for proprietary use), for example, x264 and x265 (well known GPL licensed encoders for h264 and h265) does exactly this.

Re:Mongoose OS – An Open Source Operating System for the Int... by jpfr on Tuesday August 08, 2017 @10:38AM (#14958158)
GPL does not allow static binaries from both GPLed code and commercial code.

A workaround is a plugin mechanism with dynamic loading of .dll or .so libraries. But that won't fly on a microcontroller.

Re:Mongoose OS – An Open Source Operating System for the Int... by greenhouse_gas on Tuesday August 08, 2017 @12:28PM (#14959492)
.dll won't help with GPL, only with LGPL (IANAL)
Re:Mongoose OS – An Open Source Operating System for the Int... by yebyen on Tuesday August 08, 2017 @01:13PM (#14959972)
I think you have it backwards, if I am interpreting your very brief statement fully correctly...

If you are building a library and you want it to be open source but also usable by products that are not open source, you can use LGPL. If you are building a proprietary library and you want to keep it proprietary, but link it into a GPL application, I think there is nothing is stopping you from doing that.

You still have an open-source application, it just won't work without the proprietary library.

(This sounds like it should be against the letter of the GPL, but as a thought experiment, pretend someone else wrote the library. Say, Nvidia, and you are Linus. You have no control over how their library gets licensed, and there is no person or body which can stop you from releasing your own code as GPL, even if it may have branches that depend on proprietary code.)

Doing OSS this way is most certainly against the spirit of the GPL, but I think it is within the letter.

Re:Mongoose OS – An Open Source Operating System for the Int... by mbel on Tuesday August 08, 2017 @01:50PM (#14960465)
You read the previous statement backwards. OP meant: dynamic linking allows you to use LGPL libraries with proprietary applications; to use GPL libraries in your application you have to make your application free even if you are linking dynamically.
Re:Mongoose OS – An Open Source Operating System for the Int... by yebyen on Tuesday August 08, 2017 @02:13PM (#14960776)
Yes, but neither one prevents you from linking proprietary libraries into your OSS application.

> .dll won't help with GPL, only with LGPL (IANAL)

Was pretty much totally ambiguous about what exactly was meant.

Re:Mongoose OS – An Open Source Operating System for the Int... by yebyen on Wednesday August 09, 2017 @10:21AM (#14969141)
Am I wrong?
Re:Mongoose OS – An Open Source Operating System for the Int... by pantalaimon on Tuesday August 08, 2017 @04:21PM (#14962121)
Commercial code can be GPL.
Re:Mongoose OS – An Open Source Operating System for the Int... by greggyb on Tuesday August 08, 2017 @03:17PM (#14961499)
> Have they placed additional restrictions on the GPL (which I believe you are prohibited from doing)?

At that point, doesn't the trivial defense just become "It's not GPL. It's my own custom license which happens to have all the requirements of the GPL plus $my_awesome_additions"?

Re:Mongoose OS – An Open Source Operating System for the Int... by jaboutboul on Tuesday August 08, 2017 @11:50PM (#14965408)
There was a mistake on the site and it is now corrected
Re:Mongoose OS – An Open Source Operating System for the Int... by mijoharas on Wednesday August 09, 2017 @03:19AM (#14966234)
Cool, thanks for clearing up the confusion (probably mostly just on my part, but thanks.)
Re:Mongoose OS – An Open Source Operating System for the Int... by rectang on Tuesday August 08, 2017 @12:20PM (#14959390)
By having complex and/or copyleft licensing, it just opens the door wider for the Apache Mynewt OS with its Apache 2.0 license. http://mynewt.apache.org/