Lune

ASE2023顶会

Understanding and Remediating Open-Source License Incompatibilities in the PyPI Ecosystem

Weiwei Xu, Hao He, Kai Gao, Minghui Zhou

摘要

The reuse and distribution of open-source software must be in compliance with its accompanying open-source license. In modern packaging ecosystems, maintaining such compliance is challenging because a package may have a complex multi-layered dependency graph with many packages, any of which may have an incompatible license. Although prior research finds that license incompatibilities are prevalent, empirical evidence is still scarce in some modern packaging ecosystems (e.g., PyPI). It also remains unclear how developers remediate the license incompatibilities in the dependency graphs of their packages (including direct and transitive dependencies), let alone any automated approaches. To bridge this gap, we conduct a large-scale empirical study of license incompatibilities and their remediation practices in the PyPI ecosystem. We find that 7.27% of the PyPI package releases have license incompatibilities and 61.3 % of them are caused by transitive dependencies, causing challenges in their remediation; for remediation, developers can apply one of the five strategies: migration, removal, pinning versions, changing their own licenses, and negotiation. Inspired by our findings, we propose Silence, an SMT-solver-based approach to recommend license incompatibility remediations with minimal costs in package dependency graph. Our evaluation shows that the remediations proposed by Silencecan match 19 historical real-world cases (except for migrations not covered by an existing knowledge base) and have been accepted by five popular PyPI packages whose developers were previously unaware of their license incompatibilities.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI Packages 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
  • PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI Packages 引用了 Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM Ecosystem
  • PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI Packages 引用了 A large-scale empirical study on Java library migrations: prevalence, trends, and rationales
  • Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain Attacks 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
  • Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain Attacks 引用了 Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM Ecosystem
  • Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain Attacks 引用了 A large-scale empirical study on Java library migrations: prevalence, trends, and rationales
  • Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain Attacks 引用了 A Qualitative Study of Dependency Management and Its Security Implications
  • Licoeval: Evaluating LLMs on License Compliance in Code Generation 引用了 PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI Packages
  • Your "Notice" Is Missing: Detecting and Fixing Violations of Modification Terms in Open Source Licenses during Forking 引用了 Identifying Open-Source License Violation and 1-day Security Risk at Large Scale
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. PyRadar: Towards Automatically Retrieving and Validating Source Code Repository Information for PyPI PackagesKai Gao, Weiwei Xu, Wenhao Yang, Minghui ZhouFSE 2024 · 7 次引用
  2. Licoeval: Evaluating LLMs on License Compliance in Code GenerationWeiwei Xu, Kai Gao, Hao He, Minghui ZhouICSE 2025 · 6 次引用
  3. "The Law Doesn't Work Like a Computer": Exploring Software Licensing Issues Faced by Legal PractitionersNathan Wintersgill, Trevor Stalnaker, Laura A. Heymann, Oscar Chaparro 等FSE 2024 · 6 次引用
  4. Pinning Is Futile: You Need More Than Local Dependency Versioning to Defend against Supply Chain AttacksHao He, Bogdan Vasilescu, Christian KästnerFSE 2025 · 3 次引用
  5. Your "Notice" Is Missing: Detecting and Fixing Violations of Modification Terms in Open Source Licenses during ForkingKaifeng Huang, Yingfeng Xia, Bihuan Chen, Siyang He 等ISSTA 2024 · 3 次引用

它引用的 Paper8

  1. Identifying Open-Source License Violation and 1-day Security Risk at Large ScaleRuian Duan, Ashish Bijlani, Meng Xu, Taesoo Kim 等CCS 2017 · 126 次引用
  2. Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM EcosystemChengwei Liu, Sen Chen, Lingling Fan, Bihuan Chen 等ICSE 2022 · 94 次引用
  3. A Qualitative Study of Dependency Management and Its Security ImplicationsIvan Pashchenko, Duc-Ly Vu, Fabio MassacciCCS 2020 · 84 次引用
  4. Watchman: monitoring dependency conflicts for Python library ecosystemYing Wang, Ming Wen, Yepang Liu, Yibo Wang 等ICSE 2020 · 65 次引用
  5. A large-scale empirical study on Java library migrations: prevalence, trends, and rationalesHao He, Runzhi He, Haiqiao Gu, Minghui ZhouFSE 2021 · 47 次引用

相关 Paper

  1. LiResolver: License Incompatibility Resolution for Open Source SoftwareSihan Xu, Ya Gao, Lingling Fan, Linyu Li 等ISSTA 2023 · 6 次引用
  2. Small Changes, Big Trouble: Demystifying and Parsing License Variants for Incompatibility Detection in the PyPI EcosystemWeiwei Xu, Hengzhi Ye, Kai Gao, Minghui ZhouICSE 2026 · 1 次引用
  3. smartPip: A Smart Approach to Resolving Python Dependency Conflict IssuesChao Wang, Rongxin Wu, Haohao Song, Jiwu Shu 等ASE 2022 · 15 次引用
  4. Less is More? An Empirical Study on Configuration Issues in Python PyPI EcosystemYun Peng, Ruida Hu, Ruoke Wang, Cuiyun Gao 等ICSE 2024 · 5 次引用
  5. Knowledge-Based Version Incompatibility Detection for Deep LearningZhongkai Zhao, Bonan Kou, Mohamed Yilmaz Ibrahim, Muhao Chen 等FSE 2023 · 7 次引用
黄昏的海面,两侧是细线勾勒的悬崖