[swift-dev] Including third-party code in repo

Zhuowei Z zhuowei_swift at outlook.com
Sat Dec 19 14:26:10 CST 2015


Hello,


I'm currently working on a port of Swift to Android. Since Android's libc is missing a few required methods, I added code from a few other sources to implement the functionality. Specifically, I added an implementation of posix_spawn from the FreeBSD libc, floating point routines from Android NDK's copy of SunSoft FDLIBM (which just requires attribution), and a getline implementation from the Android source (Apache licensed).


I'm wondering whether I'm allowed to do this. While their licenses are compatible with Apache license, they all require attribution at the top of the source, but Swift's contribution guidelines only allows the Swift license header. I don't think there's any third-party code in Swift currently, so I can't find a precedent for what to do in this situation.


Is the inclusion of third party code allowed, and if so, what should the license header on their files look like?


Zhuowei



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20151219/588310e6/attachment.html>


More information about the swift-dev mailing list