Skip to content

Improve license detection for usbmuxd notices - #5542

Open
mevarx wants to merge 1 commit into
aboutcode-org:developfrom
mevarx:fix/usbmuxd-license-detection
Open

mevarx wants to merge 1 commit into
aboutcode-org:developfrom
mevarx:fix/usbmuxd-license-detection

Conversation

@mevarx

@mevarx mevarx commented Nov 24, 2026

Copy link
Copy Markdown

Fixes #5539

Summary

ScanCode reported fragmented GPL/LGPL matches for the usbmuxd notices in the issue. This adds four rules for the source notices and the README license section, without changing the matcher.

  • client.c, conf.c, and usb.h detect gpl-2.0 OR gpl-3.0: the notice offers version 2 or version 3, not either version or later.
  • utils.h detects lgpl-2.1-plus: the grant specifies LGPL 2.1 or later even though the warranty paragraph drops “Lesser”.
  • README.md detects both expressions because it documents the project's GPL options and the separate LGPL files.

Testing

python -m pytest tests/licensedcode/test_detection_datadriven4.py --test-suite=all -k usbmuxd -q — 5 passed locally on Windows in a worktree containing only this change. Full CI has not been verified.

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in a uniquely named feature branch and have no merge conflicts 📁

AI assistance was used to prepare the rules, regression fixtures, and PR description.

Add rules and regression fixtures for the mixed GPL and LGPL notices documented in aboutcode-org#5539.

Signed-off-by: shree varshan <shreevarshan2699@gmail.com>
@mevarx
mevarx marked this pull request as ready for review November 24, 2026 14:23

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve detection accuracy for https://github.com/libimobiledevice/usbmuxd

1 participant