Using one source code file from other project with different license type

Aug 22 2020

I want to use one source code file from other open source project which is licensed under GPL3. That source code will be used to perform a single task in my project.

My entire project is licensed under MIT license.

Can someone please suggest, how can I do that without violating LICENSE term of other project? How and where to include other project's license in my project?

回答

4 vonbrand Aug 22 2020 at 06:54

As per GPL, if you use GPL code in your project, the whole shebang must be under GPL. If that isn't acceptable, you'll have to find a way around that (find another one with a MIT-compatile license, write your own MIT-licensed version, don't use that functionality, ...).

独自のコードを作成するときにGPLコードを見ると、コピーと解釈される可能性があるので注意してください。オリジナルと可能な限り異なることを確認する必要があります。異なるアルゴリズムを使用し、異なる制約を設定します(たとえば、一般性ではなく、使用するために狭く設計されています。効率とコードの明確さなど)。結果が違法コピーとして訴えられないことを確認するために、Unixユーティリティのクローンを作成する際にFSFが提供するアドバイスを覗いてみてください(かなりの時間がかかりましたか?)。