arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.10636cs.SE
收藏

捕捉蝴蝶:窥探 SPDX 许可证之间的条款与冲突

Catch the Butterfly: Peeking into the Terms and Conflicts among SPDX Licenses

Tao Liu, Chengwei Liu, Tianwei Liu, He Wang, Gaofei Wu, Yang Liu, Yuqing Zhang

AI总结:

本文提出基于条款粒度分析主流软件许可证,构建含453个 SPDX 许可证条款与冲突标注的高质量数据集,并通过实证研究揭示许可证差异、copyleft 冲突及 NPM 生态中的使用威胁。

摘要:

第三方库(TPLs)在软件开发中的广泛采用加速了现代软件的创建。然而,这种便利伴随着潜在的法律风险。开发者可能会无意中违反 TPLs 的许可证,从而导致法律问题。尽管现有研究已经探讨了软件许可证和潜在的不兼容性,但这些研究通常聚焦于有限的一组许可证,或依赖低质量的许可证数据,这可能会影响其结论。为弥补这一空白,需要一个涵盖广泛主流许可证的高质量许可证数据集,以帮助开发者应对复杂的软件许可证格局,避免潜在的法律陷阱,并指导软件开发中管理许可证合规性与兼容性的解决方案。为此,我们开展了首个基于条款粒度理解主流软件许可证的工作,并获得了一个包含453个 SPDX 许可证、具有良好标注条款和冲突的高质量数据集。具体而言,我们首先对主流平台进行差异分析,以理解每个许可证的条款和态度。接下来,我们提出一套标准化的许可证条款,以高质量地捕获和标注现有主流许可证。此外,我们纳入了 copyleft 冲突,并归纳出453个 SPDX 许可证中三大类许可证冲突。基于这些内容,我们开展了两项实证研究,从许可方和被许可方双方视角揭示关注点与威胁。其中一项研究深入分析了 SPDX 许可证之间的相似性、差异和冲突,重新审视了 NPM 生态系统中许可证的使用与冲突,并得出了与以往工作不同的结论。我们的研究揭示了一些富有洞察力的发现,并公开了相关分析数据,为进一步研究奠定了基础。

英文摘要:

The widespread adoption of third-party libraries (TPLs) in software development has accelerated the creation of modern software. However, this convenience comes with potential legal risks. Developers may inadvertently violate the licenses of TPLs, leading to legal issues. While existing studies have explored software licenses and potential incompatibilities, these studies often focus on a limited set of licenses or rely on low-quality license data, which may affect their conclusions. To address this gap, there is a need for a high-quality license dataset that encompasses a broad range of mainstream licenses to help developers navigate the complex landscape of software licenses, avoid potential legal pitfalls, and guide solutions for managing license compliance and compatibility in software development. To this end, we conduct the first work to understand the mainstream software licenses based on term granularity and obtain a high-quality dataset of 453 SPDX licenses with well-labeled terms and conflicts. Specifically, we first conduct a differential analysis of the mainstream platforms to understand the terms and attitudes of each license. Next, we propose a standardized set of license terms to capture and label existing mainstream licenses with high quality. Moreover, we include copyleft conflicts and conclude the three major types of license conflicts among the 453 SPDX licenses. Based on these, we carry out two empirical studies to reveal the concerns and threats from the perspectives of both licensors and licensees. One study provides an in-depth analysis of the similarities, differences, and conflicts among SPDX licenses, revisits the usage and conflicts of licenses in the NPM ecosystem, and draws conclusions that differ from previous work. Our studies reveal some insightful findings and disclose relevant analytical data, which set the stage for further research.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑