Bug 13971 - [devtool] requires LIC_FILES_CHKSUM to be set, even for LICENSE=CLOSED
Summary: [devtool] requires LIC_FILES_CHKSUM to be set, even for LICENSE=CLOSED
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided enhancement
Target Milestone: ---
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-07-06 05:13 UTC by Bjarne Michelsen
Modified: 2020-07-09 07:51 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarne Michelsen 2020-07-06 05:13:33 UTC
When using `devtool upgrade <component>`, devtool requires LIC_FILES_CHKSUM to be set in the recipe, even if the recipe uses `LICENSE=CLOSED`

To reproduce:

1. Create a recipe with `LICENSE=CLOSED` but no `LIC_CHKSUM`
2. Run `devtool upgrade <component>`

Result:

```
Traceback (most recent call last):
  File "sources/poky/scripts/devtool", line 334, in <module>
    ret = main()
  File "sources/poky/scripts/devtool", line 321, in main
    ret = args.func(args, config, basepath, workspace)
  File "sources/poky/scripts/lib/devtool/upgrade.py", line 553, in upgrade
    old_licenses = _extract_licenses(srctree, rd.getVar('LIC_FILES_CHKSUM'))
  File "sources/poky/scripts/lib/devtool/upgrade.py", line 457, in _extract_licenses
    for url in recipe_licenses.split():
AttributeError: 'NoneType' object has no attribute 'split'
```