LiResolver:开源软件的许可证不兼容性解决
LiResolver: License Incompatibility Resolution for Open Source Software
AI总结:
本文提出了一种名为LiResolver的工具,通过细粒度实体与关系抽取理解许可证语义,优先推荐官方许可证或生成自定义许可证,有效解决了开源软件中的许可证不兼容问题。
摘要:
开源软件(OSS)许可证规定了合法重用、分发和修改OSS的条件。然而,在引入附带许可证的第三方OSS时会出现一个常见问题,即许可证不兼容性,当一个项目中存在多个许可证且它们之间存在冲突时就会发生这种情况。尽管存在问题,但由于缺乏对许可证的理解以及复杂的包依赖关系,修复许可证不兼容性问题需要大量工作。在本文中,我们提出了LiResolver,一种细粒度、可扩展且灵活的工具,用于解决开源软件的许可证不兼容性问题。具体而言,它首先通过细粒度的实体抽取和关系抽取来理解许可证的语义。然后,它通过优先推荐官方许可证来检测并解决许可证不兼容性问题。当没有官方许可证能满足约束条件时,它会生成自定义许可证作为替代解决方案。综合实验证明了LiResolver的有效性,其不兼容问题定位的假阳性(FP)率为4.09%,假阴性(FN)率为0.02%,并且在230个真实世界不兼容项目中,有62.61%由LiResolver解决。我们讨论了OSS开发者的反馈以及从这项工作中获得的经验教训。LiResolver的所有数据集和复现包均已公开,以促进后续研究。
英文摘要:
Open source software (OSS) licenses regulate the conditions under which OSS can be legally reused, distributed, and modified. However, a common issue arises when incorporating third-party OSS accompanied with licenses, i.e., license incompatibility, which occurs when multiple licenses exist in one project and there are conflicts between them. Despite being problematic, fixing license incompatibility issues requires substantial efforts due to the lack of license understanding and complex package dependency. In this paper, we propose LiResolver, a fine-grained, scalable, and flexible tool to resolve license incompatibility issues for open source software. Specifically, it first understands the semantics of licenses through fine-grained entity extraction and relation extraction. Then, it detects and resolves license incompatibility issues by recommending official licenses in priority. When no official licenses can satisfy the constraints, it generates a custom license as an alternative solution. Comprehensive experiments demonstrate the effectiveness of LiResolver, with 4.09% false positive (FP) rate and 0.02% false negative (FN) rate for incompatibility issue localization, and 62.61% of 230 real-world incompatible projects resolved by LiResolver. We discuss the feedback from OSS developers and the lessons learned from this work. All the datasets and the replication package of LiResolver have been made publicly available to facilitate follow-up research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。