You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by Myrle Krantz <my...@apache.org> on 2019/07/16 10:48:57 UTC

Concerned about the LGPL dependency in Webkit

Hey all,

First of all: congratulations on your recent release!

I wanted to circle back to this to make sure it gets resolved before the
next release.

First a summary of what has happened as I see it.  If my summary is
incorrect, please let me know:
* At some point in the past Weex introduced a run-time and a compile-time
dependency to Webkit.  When adding the Webkit *.h to the repo, the correct
license of those files was accidentally overwritten.
* More recently, this mistake was discovered and a license review of Webkit
as a dependency was made in which it was realized that Webkit:
"As Webkit is under dual license, and it's almost impossible for us to
figure out whether there is an function call chain like
Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD. I'd like to
know our proposed change is enough to fix the Category X dependency."
(
https://lists.apache.org/thread.html/babe010a7814d4cf3d3d92588bee9dd22277b610daf83733d2622c91@%3Cgeneral.incubator.apache.org%3E
)
* The question of whether Webkit could release like this was raised to the
incubator and then to legal.
* Despite the lack of resolution to this question, Weex was still allowed
to make it's most recent release, because Weex is still in incubation.

While reviewing the release, it became clear to me that Weex is including
WebKit for it's JavaScriptCore.  Within WebKit, JavaScriptCore is
LGPL-licensed.  So it is likely that your functional call chains will
include LGPL-licensed code (after all that's the code you're including
WebKit for).

Is there an alternative implementation of JavaScriptCore that a user could
use in place of the LGPL-licensed portions of WebKit?

Best Regards,
Myrle

Re: Concerned about the LGPL dependency in Webkit

Posted by dy...@gmail.com.
OK, I’ll separate JavaScriptCore.so from the binary of weex_sdk before August 1



> 在 2019年7月19日,下午2:49,申远 <sh...@gmail.com> 写道:
> 
> If there is no other comments here, we will work out to separate
> JavaScriptCore.so from the binary of weex_sdk as planned, which is also
> weeks of workload. Maybe @ddy199726 shall give us a hand.
> 
> Best Regards,
> York Shen
> 
> 申远
> 
> 在 2019年7月18日,11:22,York Shen <sh...@gmail.com> 写道:
> 
> Just some further information about what @ddy199726 said.
> 
> The relationship between weex and JavaScriptCore is similar to the
> relationship between any Java Project and JDK.
> 
> 
>   - If one want to run a Java program, he/she must have a JDK/JRE to
>   interpret Java byte code.
>   - If one want to run a Weex program, he/she must have a JavaScript
>   interpretator to interpret JavaScript. Here we choose JavaScriptCore.
>   - Like any Java program must import some Java Class in the standard
>   JDK/JRE, weex has to import the some API (.h file) in JavaScriptCore. All
>   those API itself is under BSD License. @ddy199726 and I have doubled
>   checked it.
>   - The only problem I see here is that JavaScriptCore is inside the
>   binary of Weex, which should not happen anymore. We plan to decouple it
>   from Weex then users must include weex_sdk and JavaScriptCore together in
>   their product.
> 
> 
> Best Regards,
> York Shen
> 
> 申远
> 
> 在 2019年7月17日,15:16,dyy199726@gmail.com 写道:
> 
> Hey I'm a developer of incubator-weex
> 
> Weex used to use JavaScriptCore's source code directly to execute
> JavaScript like this way .
> 
> 
> JSValue returnValue = evaluate(globalObject->globalExec(),
> makeSource(source, sourceOrigin, url), JSValue(),
> evaluationException);
> 
> in this case, globalObject is inner object of JavaScriptCore,
> And makeSource is inline api of JavaScriptCore.
> 
> So Weex has to add all JavaScriptCore's source code to weex'
> s repo to make it work normally. There is an function call chain like
> Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD is true at
> that time.
> 
> But now, Weex has refactoring the way we use JavaScriptCore.
> Weex just use JavaScriptCore public api. And All JavaScriptCore source code
> has been removed from weex's repo.
> 
> We just include JavaScriptCore's publish api only.
> 
> So this function chain
> Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD is not
> existed now.
> 
> Now Function chain is Weex.apiA -> JavaScriptCore.BSD.apiB ->
> JavaScriptCore.so
> 
> So there is no webkit license and Webkit *.h in weex's repo now
> 
> you can checkout the source code from here
> https://weex.apache.org/download/download.html#_0-26-0 <
> https://weex.apache.org/download/download.html#_0-26-0>
> javaScriptCore's api directory is
> weex_core/Source/include/JavaScriptCore/API
> 
> Weex's logic that use JavaScriptCore's api is here
> weex_core/Source/js_runtime
> 
> FYI, JavaScriptCore itself is under dual License too, at least Weex include
> files under BSD License from JavaScriptCore
> 
> 
> 
> 
> 在 2019年7月16日,下午6:48,Myrle Krantz <my...@apache.org> 写道:
> 
> Hey all,
> 
> First of all: congratulations on your recent release!
> 
> I wanted to circle back to this to make sure it gets resolved before the
> next release.
> 
> First a summary of what has happened as I see it.  If my summary is
> incorrect, please let me know:
> * At some point in the past Weex introduced a run-time and a compile-time
> dependency to Webkit.  When adding the Webkit *.h to the repo, the correct
> license of those files was accidentally overwritten.
> * More recently, this mistake was discovered and a license review of Webkit
> as a dependency was made in which it was realized that Webkit:
> "As Webkit is under dual license, and it's almost impossible for us to
> figure out whether there is an function call chain like
> Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD. I'd like to
> know our proposed change is enough to fix the Category X dependency."
> (
> https://lists.apache.org/thread.html/babe010a7814d4cf3d3d92588bee9dd22277b610daf83733d2622c91@%3Cgeneral.incubator.apache.org%3E
> )
> * The question of whether Webkit could release like this was raised to the
> incubator and then to legal.
> * Despite the lack of resolution to this question, Weex was still allowed
> to make it's most recent release, because Weex is still in incubation.
> 
> While reviewing the release, it became clear to me that Weex is including
> WebKit for it's JavaScriptCore.  Within WebKit, JavaScriptCore is
> LGPL-licensed.  So it is likely that your functional call chains will
> include LGPL-licensed code (after all that's the code you're including
> WebKit for).
> 
> Is there an alternative implementation of JavaScriptCore that a user could
> use in place of the LGPL-licensed portions of WebKit?
> 
> Best Regards,
> Myrle


Re: Concerned about the LGPL dependency in Webkit

Posted by 申远 <sh...@gmail.com>.
If there is no other comments here, we will work out to separate
JavaScriptCore.so from the binary of weex_sdk as planned, which is also
weeks of workload. Maybe @ddy199726 shall give us a hand.

Best Regards,
York Shen

申远

在 2019年7月18日,11:22,York Shen <sh...@gmail.com> 写道:

Just some further information about what @ddy199726 said.

The relationship between weex and JavaScriptCore is similar to the
relationship between any Java Project and JDK.


   - If one want to run a Java program, he/she must have a JDK/JRE to
   interpret Java byte code.
   - If one want to run a Weex program, he/she must have a JavaScript
   interpretator to interpret JavaScript. Here we choose JavaScriptCore.
   - Like any Java program must import some Java Class in the standard
   JDK/JRE, weex has to import the some API (.h file) in JavaScriptCore. All
   those API itself is under BSD License. @ddy199726 and I have doubled
   checked it.
   - The only problem I see here is that JavaScriptCore is inside the
   binary of Weex, which should not happen anymore. We plan to decouple it
   from Weex then users must include weex_sdk and JavaScriptCore together in
   their product.


Best Regards,
York Shen

申远

在 2019年7月17日,15:16,dyy199726@gmail.com 写道:

Hey I'm a developer of incubator-weex

Weex used to use JavaScriptCore's source code directly to execute
JavaScript like this way .


JSValue returnValue = evaluate(globalObject->globalExec(),
makeSource(source, sourceOrigin, url), JSValue(),
evaluationException);

in this case, globalObject is inner object of JavaScriptCore,
And makeSource is inline api of JavaScriptCore.

So Weex has to add all JavaScriptCore's source code to weex'
s repo to make it work normally. There is an function call chain like
Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD is true at
that time.

But now, Weex has refactoring the way we use JavaScriptCore.
Weex just use JavaScriptCore public api. And All JavaScriptCore source code
has been removed from weex's repo.

We just include JavaScriptCore's publish api only.

So this function chain
Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD is not
existed now.

Now Function chain is Weex.apiA -> JavaScriptCore.BSD.apiB ->
JavaScriptCore.so

So there is no webkit license and Webkit *.h in weex's repo now

you can checkout the source code from here
https://weex.apache.org/download/download.html#_0-26-0 <
https://weex.apache.org/download/download.html#_0-26-0>
javaScriptCore's api directory is
weex_core/Source/include/JavaScriptCore/API

Weex's logic that use JavaScriptCore's api is here
weex_core/Source/js_runtime

FYI, JavaScriptCore itself is under dual License too, at least Weex include
files under BSD License from JavaScriptCore




在 2019年7月16日,下午6:48,Myrle Krantz <my...@apache.org> 写道:

Hey all,

First of all: congratulations on your recent release!

I wanted to circle back to this to make sure it gets resolved before the
next release.

First a summary of what has happened as I see it.  If my summary is
incorrect, please let me know:
* At some point in the past Weex introduced a run-time and a compile-time
dependency to Webkit.  When adding the Webkit *.h to the repo, the correct
license of those files was accidentally overwritten.
* More recently, this mistake was discovered and a license review of Webkit
as a dependency was made in which it was realized that Webkit:
"As Webkit is under dual license, and it's almost impossible for us to
figure out whether there is an function call chain like
Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD. I'd like to
know our proposed change is enough to fix the Category X dependency."
(
https://lists.apache.org/thread.html/babe010a7814d4cf3d3d92588bee9dd22277b610daf83733d2622c91@%3Cgeneral.incubator.apache.org%3E
)
* The question of whether Webkit could release like this was raised to the
incubator and then to legal.
* Despite the lack of resolution to this question, Weex was still allowed
to make it's most recent release, because Weex is still in incubation.

While reviewing the release, it became clear to me that Weex is including
WebKit for it's JavaScriptCore.  Within WebKit, JavaScriptCore is
LGPL-licensed.  So it is likely that your functional call chains will
include LGPL-licensed code (after all that's the code you're including
WebKit for).

Is there an alternative implementation of JavaScriptCore that a user could
use in place of the LGPL-licensed portions of WebKit?

Best Regards,
Myrle

Re: Concerned about the LGPL dependency in Webkit

Posted by York Shen <sh...@gmail.com>.
Related PR:  https://github.com/apache/incubator-weex/pull/2940 <https://github.com/apache/incubator-weex/pull/2940>.

Developers could choose any JS interpretator they like by passing a URL [1] when compiling their products.

I shall write a documentation later about how to pass these parameters, but everything else looks fine to me.

[1] https://github.com/apache/incubator-weex/pull/2940/files#diff-312acf6d9ae67bf7d5e8c81da772df85R2

Best Regards,
York Shen

申远

> 在 2019年9月26日,14:55,York Shen <sh...@gmail.com> 写道:
> 
> Rephrase myself.
> 
> I will create a feature which provides the ability of changing JavaScript Interpretator at compiling time. Developers are totally free to choose whichever JavaScript Interpretator they like as long as its interface is the same as we currently using.
> 
> I shall write some documentation and scripts to give an introduction about how to choose JavaScript Interpretator they like. And only in this introduction I will use jsc-android [1] for demo purpose, but neither the source code or binary of Weex would contain any JavaScript interpretator code.
> 
> I think this feature will not only solve the License and dependency problem for good, but also gives developers the ability of choosing JS interpretator they like.
> 
> [1] https://www.npmjs.com/package/jsc-android <https://www.npmjs.com/package/jsc-android>
> 
> Best Regards,
> York Shen
> 
> 申远
> 
>> 在 2019年9月25日,14:56,York Shen <shenyuancs@gmail.com <ma...@gmail.com>> 写道:
>> 
>> As it’s a NPM plugin, I need some time to figure out how to integrate it into Android build process, but everything else should be fine.
>> 
>> Best Regards,
>> York Shen
>> 
>> 申远
>> 
>>> 在 2019年9月25日,14:49,York Shen <shenyuancs@gmail.com <ma...@gmail.com>> 写道:
>>> 
>>> Updated:
>>> 
>>> I just found a JavasScript Interpretator callled jsc-android[1] under BSD-2-Clause License. As it’s provided the exactly same interface we are currently using, I think we can solve this problem by switching to jsc-android. 
>>> 
>>> Thanks for the help of @lucky-chen, I have successfully built and run Weex on jsc-android.
>>> 
>>> No more platform dependency, no more LGPL runtime.
>>> 
>>> [1] https://www.npmjs.com/package/jsc-android <https://www.npmjs.com/package/jsc-android>
>>> 
>>> Best Regards,
>>> York Shen
>>> 
>>> 申远
>>> 
>>>> 在 2019年7月23日,03:15,Myrle Krantz <myrle@apache.org <ma...@apache.org>> 写道:
>>>> 
>>>> Thanks YorkShen,
>>>> 
>>>> This is an answer I can live with.  Let's see if legal can live with it
>>>> too.  I've pinged the ticket you made.  Let me see if I can get it
>>>> unblocked.
>>>> 
>>>> Best,
>>> 
>> 
> 


Re: Concerned about the LGPL dependency in Webkit

Posted by York Shen <sh...@gmail.com>.
Rephrase myself.

I will create a feature which provides the ability of changing JavaScript Interpretator at compiling time. Developers are totally free to choose whichever JavaScript Interpretator they like as long as its interface is the same as we currently using.

I shall write some documentation and scripts to give an introduction about how to choose JavaScript Interpretator they like. And only in this introduction I will use jsc-android [1] for demo purpose, but neither the source code or binary of Weex would contain any JavaScript interpretator code.

I think this feature will not only solve the License and dependency problem for good, but also gives developers the ability of choosing JS interpretator they like.

[1] https://www.npmjs.com/package/jsc-android

Best Regards,
York Shen

申远

> 在 2019年9月25日,14:56,York Shen <sh...@gmail.com> 写道:
> 
> As it’s a NPM plugin, I need some time to figure out how to integrate it into Android build process, but everything else should be fine.
> 
> Best Regards,
> York Shen
> 
> 申远
> 
>> 在 2019年9月25日,14:49,York Shen <shenyuancs@gmail.com <ma...@gmail.com>> 写道:
>> 
>> Updated:
>> 
>> I just found a JavasScript Interpretator callled jsc-android[1] under BSD-2-Clause License. As it’s provided the exactly same interface we are currently using, I think we can solve this problem by switching to jsc-android. 
>> 
>> Thanks for the help of @lucky-chen, I have successfully built and run Weex on jsc-android.
>> 
>> No more platform dependency, no more LGPL runtime.
>> 
>> [1] https://www.npmjs.com/package/jsc-android <https://www.npmjs.com/package/jsc-android>
>> 
>> Best Regards,
>> York Shen
>> 
>> 申远
>> 
>>> 在 2019年7月23日,03:15,Myrle Krantz <myrle@apache.org <ma...@apache.org>> 写道:
>>> 
>>> Thanks YorkShen,
>>> 
>>> This is an answer I can live with.  Let's see if legal can live with it
>>> too.  I've pinged the ticket you made.  Let me see if I can get it
>>> unblocked.
>>> 
>>> Best,
>> 
> 


Re: Concerned about the LGPL dependency in Webkit

Posted by York Shen <sh...@gmail.com>.
As it’s a NPM plugin, I need some time to figure out how to integrate it into Android build process, but everything else should be fine.

Best Regards,
York Shen

申远

> 在 2019年9月25日,14:49,York Shen <sh...@gmail.com> 写道:
> 
> Updated:
> 
> I just found a JavasScript Interpretator callled jsc-android[1] under BSD-2-Clause License. As it’s provided the exactly same interface we are currently using, I think we can solve this problem by switching to jsc-android. 
> 
> Thanks for the help of @lucky-chen, I have successfully built and run Weex on jsc-android.
> 
> No more platform dependency, no more LGPL runtime.
> 
> [1] https://www.npmjs.com/package/jsc-android <https://www.npmjs.com/package/jsc-android>
> 
> Best Regards,
> York Shen
> 
> 申远
> 
>> 在 2019年7月23日,03:15,Myrle Krantz <myrle@apache.org <ma...@apache.org>> 写道:
>> 
>> Thanks YorkShen,
>> 
>> This is an answer I can live with.  Let's see if legal can live with it
>> too.  I've pinged the ticket you made.  Let me see if I can get it
>> unblocked.
>> 
>> Best,
> 


Re: Concerned about the LGPL dependency in Webkit

Posted by York Shen <sh...@gmail.com>.
Updated:

I just found a JavasScript Interpretator callled jsc-android[1] under BSD-2-Clause License. As it’s provided the exactly same interface we are currently using, I think we can solve this problem by switching to jsc-android. 

Thanks for the help of @lucky-chen, I have successfully built and run Weex on jsc-android.

No more platform dependency, no more LGPL runtime.

[1] https://www.npmjs.com/package/jsc-android

Best Regards,
York Shen

申远

> 在 2019年7月23日,03:15,Myrle Krantz <my...@apache.org> 写道:
> 
> Thanks YorkShen,
> 
> This is an answer I can live with.  Let's see if legal can live with it
> too.  I've pinged the ticket you made.  Let me see if I can get it
> unblocked.
> 
> Best,


Re: Concerned about the LGPL dependency in Webkit

Posted by Myrle Krantz <my...@apache.org>.
Thanks YorkShen,

This is an answer I can live with.  Let's see if legal can live with it
too.  I've pinged the ticket you made.  Let me see if I can get it
unblocked.

Best,
Myrle

On Mon, Jul 22, 2019 at 9:30 AM 申远 <sh...@gmail.com> wrote:

> >
> > The source I'm referring to says otherwise[1], but you may have a better
> > source.
>
> After carefully review License File in Webkit source code [1], I didn't
> find any fact could support the idea that JavaScriptCore is under LGPL as
> there is no standalone LICENSE file for JavaScriptCore. *So I think that
> JavaScriptCore is also under dual-license as Webkit does.*
>
> This would still be OK if, at runtime, another implementation could be used
> > in place of this LGPL component.
>
>  There is another implementation for JavaScript interpretator called V8 ,
> which is under BSD License [2]. But users must write some extra code to
> switch to V8 as the header files between V8 and JavaScriptCore are not
> compatible. I'm not sure whether we could call it runtime replaceable.
>
> [1]
>
> https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.17.4/Source/JavaScriptCore/
> [2] https://chromium.googlesource.com/v8/v8.git/+/master/LICENSE
>
> Best Regards,
> YorkShen
>
> 申远
>
>
> Myrle Krantz <my...@apache.org> 于2019年7月19日周五 下午7:57写道:
>
> > On Thu, Jul 18, 2019 at 5:22 AM York Shen <sh...@gmail.com> wrote:
> >
> > > Just some further information about what @ddy199726 said.
> > >
> > > The relationship between weex and JavaScriptCore is similar to the
> > > relationship between any Java Project and JDK.
> > >
> > > If one want to run a Java program, he/she must have a JDK/JRE to
> > interpret
> > > Java byte code.
> > > If one want to run a Weex program, he/she must have a JavaScript
> > > interpretator to interpret JavaScript. Here we choose JavaScriptCore.
> > >
> >
> > If it is the case that this can be done with any JavaScript interpreter,
> > then you are working within the Apache licensing policies.  You're doing
> > great.  Thank you for answering my questions.
> >
> > It is a real pleasure working with you York Shen and ddy!
> > Myrle
> >
>

Re: Concerned about the LGPL dependency in Webkit

Posted by 申远 <sh...@gmail.com>.
>
> The source I'm referring to says otherwise[1], but you may have a better
> source.

After carefully review License File in Webkit source code [1], I didn't
find any fact could support the idea that JavaScriptCore is under LGPL as
there is no standalone LICENSE file for JavaScriptCore. *So I think that
JavaScriptCore is also under dual-license as Webkit does.*

This would still be OK if, at runtime, another implementation could be used
> in place of this LGPL component.

 There is another implementation for JavaScript interpretator called V8 ,
which is under BSD License [2]. But users must write some extra code to
switch to V8 as the header files between V8 and JavaScriptCore are not
compatible. I'm not sure whether we could call it runtime replaceable.

[1]
https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.17.4/Source/JavaScriptCore/
[2] https://chromium.googlesource.com/v8/v8.git/+/master/LICENSE

Best Regards,
YorkShen

申远


Myrle Krantz <my...@apache.org> 于2019年7月19日周五 下午7:57写道:

> On Thu, Jul 18, 2019 at 5:22 AM York Shen <sh...@gmail.com> wrote:
>
> > Just some further information about what @ddy199726 said.
> >
> > The relationship between weex and JavaScriptCore is similar to the
> > relationship between any Java Project and JDK.
> >
> > If one want to run a Java program, he/she must have a JDK/JRE to
> interpret
> > Java byte code.
> > If one want to run a Weex program, he/she must have a JavaScript
> > interpretator to interpret JavaScript. Here we choose JavaScriptCore.
> >
>
> If it is the case that this can be done with any JavaScript interpreter,
> then you are working within the Apache licensing policies.  You're doing
> great.  Thank you for answering my questions.
>
> It is a real pleasure working with you York Shen and ddy!
> Myrle
>

Re: Concerned about the LGPL dependency in Webkit

Posted by Myrle Krantz <my...@apache.org>.
On Thu, Jul 18, 2019 at 5:22 AM York Shen <sh...@gmail.com> wrote:

> Just some further information about what @ddy199726 said.
>
> The relationship between weex and JavaScriptCore is similar to the
> relationship between any Java Project and JDK.
>
> If one want to run a Java program, he/she must have a JDK/JRE to interpret
> Java byte code.
> If one want to run a Weex program, he/she must have a JavaScript
> interpretator to interpret JavaScript. Here we choose JavaScriptCore.
>

If it is the case that this can be done with any JavaScript interpreter,
then you are working within the Apache licensing policies.  You're doing
great.  Thank you for answering my questions.

It is a real pleasure working with you York Shen and ddy!
Myrle

Re: Concerned about the LGPL dependency in Webkit

Posted by York Shen <sh...@gmail.com>.
Just some further information about what @ddy199726 said.

The relationship between weex and JavaScriptCore is similar to the relationship between any Java Project and JDK.

If one want to run a Java program, he/she must have a JDK/JRE to interpret Java byte code.
If one want to run a Weex program, he/she must have a JavaScript interpretator to interpret JavaScript. Here we choose JavaScriptCore.
Like any Java program must import some Java Class in the standard JDK/JRE, weex has to import the some API (.h file) in JavaScriptCore. All those API itself is under BSD License. @ddy199726 and I have doubled checked it.
The only problem I see here is that JavaScriptCore is inside the binary of Weex, which should not happen anymore. We plan to decouple it from Weex then users must include weex_sdk and JavaScriptCore together in their product.

Best Regards,
York Shen

申远

> 在 2019年7月17日,15:16,dyy199726@gmail.com 写道:
> 
> Hey I'm a developer of incubator-weex
> 
> Weex used to use JavaScriptCore's source code directly to execute JavaScript like this way .
> 
> 
> JSValue returnValue = evaluate(globalObject->globalExec(), makeSource(source, sourceOrigin, url), JSValue(),
> evaluationException);
> 
> in this case, globalObject is inner object of JavaScriptCore,
> And makeSource is inline api of JavaScriptCore. 
> 
> So Weex has to add all JavaScriptCore's source code to weex'
> s repo to make it work normally. There is an function call chain like Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD is true at that time.
> 
> But now, Weex has refactoring the way we use JavaScriptCore.
> Weex just use JavaScriptCore public api. And All JavaScriptCore source code has been removed from weex's repo.
> 
> We just include JavaScriptCore's publish api only.
> 
> So this function chain Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD is not existed now.
> 
> Now Function chain is Weex.apiA -> JavaScriptCore.BSD.apiB -> JavaScriptCore.so
> 
> So there is no webkit license and Webkit *.h in weex's repo now
> 
> you can checkout the source code from here https://weex.apache.org/download/download.html#_0-26-0 <https://weex.apache.org/download/download.html#_0-26-0>
> javaScriptCore's api directory is weex_core/Source/include/JavaScriptCore/API
> 
> Weex's logic that use JavaScriptCore's api is here weex_core/Source/js_runtime
> 
> FYI, JavaScriptCore itself is under dual License too, at least Weex include files under BSD License from JavaScriptCore
> 
> 
> 
> 
>> 在 2019年7月16日,下午6:48,Myrle Krantz <my...@apache.org> 写道:
>> 
>> Hey all,
>> 
>> First of all: congratulations on your recent release!
>> 
>> I wanted to circle back to this to make sure it gets resolved before the
>> next release.
>> 
>> First a summary of what has happened as I see it.  If my summary is
>> incorrect, please let me know:
>> * At some point in the past Weex introduced a run-time and a compile-time
>> dependency to Webkit.  When adding the Webkit *.h to the repo, the correct
>> license of those files was accidentally overwritten.
>> * More recently, this mistake was discovered and a license review of Webkit
>> as a dependency was made in which it was realized that Webkit:
>> "As Webkit is under dual license, and it's almost impossible for us to
>> figure out whether there is an function call chain like
>> Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD. I'd like to
>> know our proposed change is enough to fix the Category X dependency."
>> (
>> https://lists.apache.org/thread.html/babe010a7814d4cf3d3d92588bee9dd22277b610daf83733d2622c91@%3Cgeneral.incubator.apache.org%3E
>> )
>> * The question of whether Webkit could release like this was raised to the
>> incubator and then to legal.
>> * Despite the lack of resolution to this question, Weex was still allowed
>> to make it's most recent release, because Weex is still in incubation.
>> 
>> While reviewing the release, it became clear to me that Weex is including
>> WebKit for it's JavaScriptCore.  Within WebKit, JavaScriptCore is
>> LGPL-licensed.  So it is likely that your functional call chains will
>> include LGPL-licensed code (after all that's the code you're including
>> WebKit for).
>> 
>> Is there an alternative implementation of JavaScriptCore that a user could
>> use in place of the LGPL-licensed portions of WebKit?
>> 
>> Best Regards,
>> Myrle
> 


Re: Concerned about the LGPL dependency in Webkit

Posted by Myrle Krantz <my...@apache.org>.
Hello dyy,

Thank you for your reply.  It's entirely possible that my understanding
incomplete and that you do not need to change anything.  Please let me ask
a couple of questions:

On Wed, Jul 17, 2019 at 9:17 AM <dy...@gmail.com> wrote:

> Now Function chain is Weex.apiA -> JavaScriptCore.BSD.apiB ->
> JavaScriptCore.so
>

I believe this is the point at which my understanding diverges from what
you have written.  I believe that JavaScriptCore is not BSD licensed, but
rather LGPL licensed (1).  This means that Weex is directly dependent on
LGPL code and thus, indirectly, any source dependent on Weex is dependent
on LGPL.

This would still be OK if, at runtime, another implementation could be used
in place of this LGPL component.  (much like OpenJDK can be used)  My
current understanding is that it cannot be.  I may be misunderstanding.


> So there is no webkit license and Webkit *.h in weex's repo now
>

Acknowledged.


>
> you can checkout the source code from here
> https://weex.apache.org/download/download.html#_0-26-0 <
> https://weex.apache.org/download/download.html#_0-26-0>
> javaScriptCore's api directory is
> weex_core/Source/include/JavaScriptCore/API
>
> Weex's logic that use JavaScriptCore's api is here
> weex_core/Source/js_runtime
>

I didn't go through all the code, but I looked at some of it.  It's quite
lovely.  You make me miss programming C++ : o)


> FYI, JavaScriptCore itself is under dual License too, at least Weex
> include files under BSD License from JavaScriptCore
>

The source I'm referring to says otherwise[1], but you may have a better
source.

Best,
Myrle

[1] "WebKit is available under a BSD-form license[11] with the exception of
the WebCore and JavaScriptCore components, which are available under the
GNU Lesser General Public License. As of March 7, 2013, WebKit is a
trademark of Apple, registered with the U.S. Patent and Trademark
Office.[12] "  https://en.wikipedia.org/wiki/WebKit

Re: Concerned about the LGPL dependency in Webkit

Posted by dy...@gmail.com.
Hey I'm a developer of incubator-weex

Weex used to use JavaScriptCore's source code directly to execute JavaScript like this way .


JSValue returnValue = evaluate(globalObject->globalExec(), makeSource(source, sourceOrigin, url), JSValue(),
evaluationException);

in this case, globalObject is inner object of JavaScriptCore,
And makeSource is inline api of JavaScriptCore. 

So Weex has to add all JavaScriptCore's source code to weex'
s repo to make it work normally. There is an function call chain like Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD is true at that time.

But now, Weex has refactoring the way we use JavaScriptCore.
Weex just use JavaScriptCore public api. And All JavaScriptCore source code has been removed from weex's repo.

We just include JavaScriptCore's publish api only.

So this function chain Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD is not existed now.

Now Function chain is Weex.apiA -> JavaScriptCore.BSD.apiB -> JavaScriptCore.so

So there is no webkit license and Webkit *.h in weex's repo now

you can checkout the source code from here https://weex.apache.org/download/download.html#_0-26-0 <https://weex.apache.org/download/download.html#_0-26-0>
javaScriptCore's api directory is weex_core/Source/include/JavaScriptCore/API

Weex's logic that use JavaScriptCore's api is here weex_core/Source/js_runtime

FYI, JavaScriptCore itself is under dual License too, at least Weex include files under BSD License from JavaScriptCore




> 在 2019年7月16日,下午6:48,Myrle Krantz <my...@apache.org> 写道:
> 
> Hey all,
> 
> First of all: congratulations on your recent release!
> 
> I wanted to circle back to this to make sure it gets resolved before the
> next release.
> 
> First a summary of what has happened as I see it.  If my summary is
> incorrect, please let me know:
> * At some point in the past Weex introduced a run-time and a compile-time
> dependency to Webkit.  When adding the Webkit *.h to the repo, the correct
> license of those files was accidentally overwritten.
> * More recently, this mistake was discovered and a license review of Webkit
> as a dependency was made in which it was realized that Webkit:
> "As Webkit is under dual license, and it's almost impossible for us to
> figure out whether there is an function call chain like
> Weex.apiA->Webkit.BSD.apiB->Webkit.BSD.apiC->Webkit.LGPL.apiD. I'd like to
> know our proposed change is enough to fix the Category X dependency."
> (
> https://lists.apache.org/thread.html/babe010a7814d4cf3d3d92588bee9dd22277b610daf83733d2622c91@%3Cgeneral.incubator.apache.org%3E
> )
> * The question of whether Webkit could release like this was raised to the
> incubator and then to legal.
> * Despite the lack of resolution to this question, Weex was still allowed
> to make it's most recent release, because Weex is still in incubation.
> 
> While reviewing the release, it became clear to me that Weex is including
> WebKit for it's JavaScriptCore.  Within WebKit, JavaScriptCore is
> LGPL-licensed.  So it is likely that your functional call chains will
> include LGPL-licensed code (after all that's the code you're including
> WebKit for).
> 
> Is there an alternative implementation of JavaScriptCore that a user could
> use in place of the LGPL-licensed portions of WebKit?
> 
> Best Regards,
> Myrle