openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* License of generated code by sdbus++
@ 2021-03-24 20:58 Giri, Prashanth
  2021-03-25 16:59 ` Giri, Prashanth
  2021-03-27 13:44 ` Patrick Williams
  0 siblings, 2 replies; 4+ messages in thread
From: Giri, Prashanth @ 2021-03-24 20:58 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

Hi All,

I see the sdbusplus library repo itself is Apache Licensed. Am wondering if the auto generated code from sdbus++ is also Apache ?  Did not find any special wording on the generated code in the license file in the repository.
Is it safe to mix the generated code with closed (proprietary) sources ?

Please advise.

Thanks in advance,

--Prashanth

[-- Attachment #2: Type: text/html, Size: 2302 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* License of generated code by sdbus++
  2021-03-24 20:58 License of generated code by sdbus++ Giri, Prashanth
@ 2021-03-25 16:59 ` Giri, Prashanth
  2021-03-27 13:44 ` Patrick Williams
  1 sibling, 0 replies; 4+ messages in thread
From: Giri, Prashanth @ 2021-03-25 16:59 UTC (permalink / raw)
  To: openbmc

Hi All,

I see the sdbusplus library repo itself is Apache Licensed. Am wondering if the auto generated code from sdbus++ is also Apache ?  Did not find any special wording on the generated code in the license file in the repository.
Is it safe to mix the generated code with closed (proprietary) sources ?

Please advise.

Thanks in advance,

--Prashanth

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: License of generated code by sdbus++
  2021-03-24 20:58 License of generated code by sdbus++ Giri, Prashanth
  2021-03-25 16:59 ` Giri, Prashanth
@ 2021-03-27 13:44 ` Patrick Williams
  2021-03-30  1:31   ` Giri, Prashanth
  1 sibling, 1 reply; 4+ messages in thread
From: Patrick Williams @ 2021-03-27 13:44 UTC (permalink / raw)
  To: Giri, Prashanth; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 2064 bytes --]

On Wed, Mar 24, 2021 at 08:58:26PM +0000, Giri, Prashanth wrote:

I am not a lawyer and I would suggest discussing with your legal team.

I am the original author of the majority of the sdbusplus code and
especially the auto-generated templates.

> I see the sdbusplus library repo itself is Apache Licensed. Am wondering if the auto generated code from sdbus++ is also Apache ?  Did not find any special wording on the generated code in the license file in the repository.

You are correct that we do NOT have any special exemption in the
repository like many compiler-compiler or binding-generation libraries
might have[1,2].  My opinion is that if you consider the output of the
sdbus++ program, which combines your provided YAML with our templates,
the bulk of the IP value is contained in the template.  The output of
the program should be considered a derivative work of the templates
themselves[3] and you should follow any requirements imposed by the
Apache license on Derivative Works.

> Is it safe to mix the generated code with closed (proprietary) sources ?

I'm going to assume you agree that the output of the code generator is
Apache licensed.  Generally, Apache is considered one of the "safest"
licenses for commercial (including closed source) and that is a
significant reason why it was chosen as the default license for OpenBMC
code repositories.  The generated code links against the
libsdbusplus.so, so in all cases you would be including into your binary
image some amount of Apache-licensed code for which you must follow the
requirements set out under Redistribution[4].  Using the code generator
should not impose additional requirements on you.

> Thanks in advance,
> 
> --Prashanth

I hope this helps you.

1. https://spdx.org/licenses/GPL-2.0-with-bison-exception.html
2. https://github.com/protocolbuffers/protobuf/blob/master/LICENSE#L29
3. https://github.com/openbmc/sdbusplus/blob/master/LICENSE#L40
4. https://github.com/openbmc/sdbusplus/blob/master/LICENSE#L89

-- 
Patrick Williams

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: License of generated code by sdbus++
  2021-03-27 13:44 ` Patrick Williams
@ 2021-03-30  1:31   ` Giri, Prashanth
  0 siblings, 0 replies; 4+ messages in thread
From: Giri, Prashanth @ 2021-03-30  1:31 UTC (permalink / raw)
  To: Patrick Williams; +Cc: openbmc

> On Wed, Mar 24, 2021 at 08:58:26PM +0000, Giri, Prashanth wrote:

> I am not a lawyer and I would suggest discussing with your legal team.

>I am the original author of the majority of the sdbusplus code and especially the auto-generated templates.

>> I see the sdbusplus library repo itself is Apache Licensed. Am wondering if the auto generated code from sdbus++ is also Apache ?  Did not find any special wording on the generated code in the license file in the repository.

> You are correct that we do NOT have any special exemption in the repository like many compiler-compiler or binding-generation libraries might have[1,2].  My opinion is that if you consider the output of the
> sdbus++ program, which combines your provided YAML with our templates,
> the bulk of the IP value is contained in the template.  The output of the program should be considered a derivative work of the templates themselves[3] and you should follow any requirements imposed by the Apache license on Derivative Works.

>> Is it safe to mix the generated code with closed (proprietary) sources ?

> I'm going to assume you agree that the output of the code generator is Apache licensed.  Generally, Apache is considered one of the "safest"
> licenses for commercial (including closed source) and that is a significant reason why it was chosen as the default license for OpenBMC code repositories.  The generated code links against the libsdbusplus.so, so in all cases you would be including into your binary image
> some amount of Apache-licensed code for which you must follow the requirements set out under Redistribution[4].  Using the code generator should not impose additional requirements on you.

>> Thanks in advance,
>> 
>> --Prashanth

> I hope this helps you.

> 1. https://spdx.org/licenses/GPL-2.0-with-bison-exception.html
> 2. https://github.com/protocolbuffers/protobuf/blob/master/LICENSE#L29
> 3. https://github.com/openbmc/sdbusplus/blob/master/LICENSE#L40
> 4. https://github.com/openbmc/sdbusplus/blob/master/LICENSE#L89

> --
> Patrick Williams


Thanks Patrick, this helps and I agree with your analysis.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-30  1:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 20:58 License of generated code by sdbus++ Giri, Prashanth
2021-03-25 16:59 ` Giri, Prashanth
2021-03-27 13:44 ` Patrick Williams
2021-03-30  1:31   ` Giri, Prashanth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).