Evaluate directional dependency compatibility (Dependency → Project) across 14 major SPDX licenses from MIT & Apache-2.0 to MPL-2.0, LGPL-3.0-only, GPL-2.0/3.0, AGPL-3.0, EPL-2.0 & BSL-1.1.
Informational engineering matrix based on SPDX / FSF / OSI guidance — not formal legal advice. Consult qualified counsel for commercial license exceptions.
Apache-2.0 patent retaliation conflicts with GPL-2.0-only
Per FSF guidance, Apache-2.0's patent termination and indemnification provisions are further restrictions incompatible with GPL-2.0-only (§6). Combined distribution violates GPL-2.0-only.
Engineering Obligations & Actions
Do not statically or dynamically combine Apache-2.0 dependencies in a GPL-2.0-only distribution.
Options: upgrade project to GPL-3.0-only (if authorized by all copyright holders), replace the dependency, or obtain an exception.
Why is open-source license compatibility directional?
Incorporating a dependency into a project depends on which license governs the dependency versus the outer project. For example, MIT -> GPL-3.0-only is compatible (the combined work ships under GPL-3.0-only), whereas GPL-3.0-only -> MIT is incompatible because an MIT project cannot remain MIT if it embeds GPL-3.0-only code.
Why is Apache-2.0 compatible with GPL-3.0-only but incompatible with GPL-2.0-only?
Per FSF guidance, Apache-2.0 contains patent termination and indemnification provisions that conflict with GPL-2.0-only §6, whereas GPL-3.0-only §7 explicitly permits Apache-2.0's additional terms when combined under GPL-3.0-only.
What is the §13 rule between GPL-3.0-only and AGPL-3.0-only?
GPL-3.0-only §13 explicitly permits linking into an AGPL-3.0-only combined work, while AGPL-3.0-only code brought into a GPL-3.0-only project requires upgrading the combined work to AGPL-3.0-only so network users receive Corresponding Source.