<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56648>56648</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Create legal clarity around Apache license clause 4b
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          nhaehnle
      </td>
    </tr>
</table>

<pre>
    Clause 4b of the Apache license says:

> (4) You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
>    …
>    (b) You must cause any modified files to carry prominent notices stating that You changed the files; and

While I am not a lawyer myself, here's my understanding of it based on how our corporate lawyers interpret this rule in general:

The normal pull request flow for a contributor on GitHub involves, as a first step, creating and distributing a modified copy of LLVM by uploading it to a personal fork on GitHub. This triggers clause 4b, which means that *files* need to carry prominent notices that the contributor made changes to them. For C++ sources this presumably means a note in the file's header stating the name of the contributor -- which goes against LLVM's current practice.

There are any number of ways in which this could potentially be resolved:

1. Given that there are many Apache licensed projects out there, perhaps a clear legal statement from somewhere can be obtained that this is just not an issue (Apache Foundation? Relevant precedent somewhere?)
2. Perhaps the LLVM foundation could adjust the relicensing project to add an explicit exemption from this clause, or replace it entirely by a more flexible clause that still serves the same purpose (such as the GPL's "The **work** must carry prominent notices stating that you modified it, and giving a relevant date." -- since it talks about the work as a whole instead of individual files, this requirement would presumably be satisfied by Git history and probably even the context of a personal fork).
3. Perhaps if contributors were free to create branches in the main repository, or some other repository under the github.com/llvm umbrella, one might argue that it is the LLVM Foundation itself which distributes the modified copy and therefore clause 4b doesn't apply -- see https://github.com/llvm/llvm-project/issues/56643.
4. Other ideas?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylVtuO2zYQ_Rr5hYjhla_74IfNJk4LbJGgDRr0kZJGElOKVHmx13_fM6R82RQFCnQhwL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