我打算使用 /引用别人开源项目的多个文件,但是不知道怎么做是正确的?需要附上别人的 license 文件吗?
我找到一个例子: https://github.com/cmu-db/bustub/tree/master/third_party
例子中在引用的文件前进行注释:
// This source file was originally from:
// https://github.com/PeterScott/murmur3
//
// We've changed it for use with VoltDB:
// - We changed the top-level functions defined below to return
// their hash by value, rather than accept a pointer to storage
// for the result
还另外准备了一个文件versions.txt去列出所有的引用:
........
# Library, Version, Commit Hash
# murmur3
# url: https://github.com/aappleby/smhasher.git
# branch: master
# commit hash: 61a0530f28277f2e850bfc39600ce61d02b518de
# commit hash date: 9 Jan 2018
上面这个例子中的方式自然是可以效仿的。但是例子中的引用其实是 public domain 。我想问引用声明会和被引用项目的 license 有关吗?很多项目不是 public domain,怎么去做引用声明呢?