OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 12:57 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Distributing binaries of GPL software with your non-GPL OS
PostPosted: Mon Aug 22, 2022 9:56 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2293
Location: USA (and Australia)
My OS is licensed under the Apache License 2.0. You can see all of the source code on GitHub.

Let's say I port a GPL program to my OS (by downloading the source code and patching a few files to get it to run). Is my build system legally allowed to pull the GPL'ed source code from the original website, apply some patches, link it to my Apache licensed libraries, and build a binary? Is the only code of mine that needs to be under the GPL license the changes/patches need to get the software to run on my OS?

I'd like to distribute a bootable image of my OS and some accompanying software ported to my OS. Can I distribute this bootlable image containing only the binaries of my OS + accompanying software of which some is GPL'ed?

Am I allowed to distribute GPL software (written by others) in binary format with my OS? Is it reasonable enough that the launching interface in my OS could have a description area that says "This software is licensed under the GNU General Public Licence and the source code and full license is avaliable at <website>. Code changes required to port it to my OS are avaliable at <website>."?

_________________
My OS is Perception.


Top
 Profile  
 
 Post subject: Re: Distributing binaries of GPL software with your non-GPL
PostPosted: Mon Aug 22, 2022 10:37 am 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 1071
Sure it is, e.g., the BSDs do it. However, you must distribute the licenses as well. I'm not sure of the exact terms however (IANAL).

You can even distribute GPL'ed software with a proprietary OS! (e.g. Android).

_________________
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg


Top
 Profile  
 
 Post subject: Re: Distributing binaries of GPL software with your non-GPL
PostPosted: Mon Aug 22, 2022 11:46 am 
Online
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
AndrewAPrice wrote:
Is my build system legally allowed to pull the GPL'ed source code from the original website, apply some patches, link it to my Apache licensed libraries, and build a binary? Is the only code of mine that needs to be under the GPL license the changes/patches need to get the software to run on my OS?

That sounds correct to me, but I'm not a lawyer.

AndrewAPrice wrote:
Am I allowed to distribute GPL software (written by others) in binary format with my OS? Is it reasonable enough that the launching interface in my OS could have a description area that says "This software is licensed under the GNU General Public Licence and the source code and full license is avaliable at <website>. Code changes required to port it to my OS are avaliable at <website>."?

Firmware for smart devices include a complete copy of the GPL viewable on the device itself, and offer a download link to a complete copy of the patched GPL code rather than separate patches. I couldn't tell you whether those are actual requirements, but a lot of corporate lawyers seem to agree on those two points.


Top
 Profile  
 
 Post subject: Re: Distributing binaries of GPL software with your non-GPL
PostPosted: Mon Aug 22, 2022 9:33 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
AndrewAPrice wrote:
Is my build system legally allowed to pull the GPL'ed source code from the original website, apply some patches, link it to my Apache licensed libraries, and build a binary?
Obviously yes, because so far you have not said anything about passing it on. So long as you do not redistribute the product, you can do whatever you want.

If you do redistribute the product, the GPL requires you to do so under its terms, or else the original copying of the code to you was invalid. In practice here this means you do need to publish the patches (at least to all recipients of the software, if not the general public). It is an open question whether you need to publish the build system, but as long as one can build a binary from the code you publish, that ought to be good enough.

AndrewAPrice wrote:
I'd like to distribute a bootable image of my OS and some accompanying software ported to my OS. Can I distribute this bootlable image containing only the binaries of my OS + accompanying software of which some is GPL'ed?
Yes, so long as the documentation of the OS (and that can be a booklet you distribute alongside the OS, or text files in the image) contain a copy of the GPL and a notice what software it applies to. You will need to make the source code available to all recipients of the OS image on request.

AndrewAPrice wrote:
Am I allowed to distribute GPL software (written by others) in binary format with my OS?
Yes, that is explicitly allowed in the license.
AndrewAPrice wrote:
Is it reasonable enough that the launching interface in my OS could have a description area that says "This software is licensed under the GNU General Public Licence and the source code and full license is avaliable at <website>. Code changes required to port it to my OS are avaliable at <website>."?
Yes, that would work. The harder part is going to be to ensure that the website stays up.

_________________
Carpe diem!


Top
 Profile  
 
 Post subject: Re: Distributing binaries of GPL software with your non-GPL
PostPosted: Tue Aug 23, 2022 1:44 am 
Offline
Member
Member

Joined: Wed Mar 09, 2011 3:55 am
Posts: 509
AndrewAPrice wrote:
My OS is licensed under the Apache License 2.0. You can see all of the source code on GitHub.

Let's say I port a GPL program to my OS (by downloading the source code and patching a few files to get it to run). Is my build system legally allowed to pull the GPL'ed source code from the original website, apply some patches, link it to my Apache licensed libraries, and build a binary? Is the only code of mine that needs to be under the GPL license the changes/patches need to get the software to run on my OS?


With the usual "IANAL" disclaimer:

As far as your build system is concerned, the GPL allows you to do basically anything for your own use. It's when you distribute the generated binary, or your modified sources, that you incur obligations under the GPL.

Quote:
I'd like to distribute a bootable image of my OS and some accompanying software ported to my OS. Can I distribute this bootlable image containing only the binaries of my OS + accompanying software of which some is GPL'ed?


You can distribute a binary only image, but...

Quote:
Am I allowed to distribute GPL software (written by others) in binary format with my OS? Is it reasonable enough that the launching interface in my OS could have a description area that says "This software is licensed under the GNU General Public Licence and the source code and full license is avaliable at <website>. Code changes required to port it to my OS are avaliable at <website>."?


...you *must* have something like this. It probably doesn't need to be in the launch interface (in the documentation is sufficient, I believe), but the intent of the GPL is that the user should be able to build their own copy of any GPLed binaries you distribute without undue effort.


Top
 Profile  
 
 Post subject: Re: Distributing binaries of GPL software with your non-GPL
PostPosted: Tue Aug 23, 2022 3:37 pm 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2293
Location: USA (and Australia)
Thanks everyone. So far it sounds reasonable that I could meet all of the requirements by making sure:
  • My patches required to make said software run on my OS is licensed under the GPL instead of the Apache License like the rest of my OS.
  • Somewhere in my UI say this software is covered by the GPL and give instructions on how a person may find a copy of the GPL, the original source code, and my patches.
  • My build system is open source and provide sufficient instructions on how to use it (here is what I have now). Even though building a custom OS is complicated and requires providing a cross compiler.

_________________
My OS is Perception.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group