I am publishing an open-source code project under the MIT-style license. I have the full notice in the LICENSE file of the source repository.

I want to take a whole file from another open-source project licensed under the Apache 2.0 license. The two licenses are commonly regarded as compatible. If that matters, the code of the file will be part of test harness, not distributed with the binary package compiled from my sources, but rather used at compile time only. But the code should still be published as part of the project, e. g. on GitHub.

How should I reflect the other project copyright? Is retaining a copyright notice at the beginning of the ingested file enough? Or should I also mention "Copyright (c) that_other_project" somewhere else, and where if so?

  • If you're using open source software in your toolset but not redistributing it, it is not necessary to license it to your users.
    – phoog
    Nov 27 '15 at 5:54
  • @phoog: thank you. I am not redistributing this code in the binary package, but am publishing a copy on GitHub. I do not understand if that is legally a redistribution or not.
    – kkm
    Nov 27 '15 at 5:58
  • in that case I'm glad I posted this as a comment rather than an answer. I will be interested to see what your question yields.
    – phoog
    Nov 27 '15 at 6:04
  • @phoog: I added a clarification to my question, glad that you spotted it might be unclear!
    – kkm
    Nov 27 '15 at 6:08
  • 1
    @kkm publishing code on github is redistribution. You do have to comply with the licence terms of the software you have taken code from.
    – bdsl
    Jan 23 '17 at 1:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.