Bug 6450

Summary: License file does not trigger package rebuild
Product: [Build System, Metadata & Runtime] BitBake Reporter: Volker <lists.volker>
Component: bitbakeAssignee: Randy Witt <randy.e.witt>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, poky.bs.watcher, poky.watcher
Version: 1.6   
Target Milestone: 1.8 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Volker 2014-06-13 15:18:30 UTC
Steps done:
1. I did a build which ran fine.
2. I changed the license file of our own recipes, not in the recipe but the license file itself
2.1 I did not fix the md5sum in the recipes
3. I executed the image build again in the hope to find easily the packages that needs the license md5sum fixed
4. the build did not run:
---
NOTE: Tasks Summary: Attempted 2558 tasks of which 2558 didn't need to be rerun and all succeeded.
---

I would have expected that all packages that use this changed license file would have been rebuild. Rebuilding everything from scratch takes much longer.

It is unclear if this is a bug or feature. Feature in a way that "code has not changed, packages don't need to be rebuild".
Comment 1 Paul Eggleton 2014-06-13 16:31:06 UTC
For clarification, from our discussion on IRC this is a file referred to in LIC_FILES_CHKSUM.
Comment 2 Randy Witt 2015-03-16 17:26:01 UTC
This should be fixed as of:

commit a39ce568e091a0305ea2806cdd041cda42680d65
Author: Randy Witt <randy.e.witt@linux.intel.com>
Date:   Mon Mar 2 10:55:37 2015 -0800


There was also a qa selftest added as part of:

commit f0f6b234a7e855dd40c0dc0f3d1d843c7f59e7e1
Author: Randy Witt <randy.e.witt@linux.intel.com>
Date:   Mon Mar 2 10:55:38 2015 -0800


The name of the test is lic-checksum.LicenseTests.test_foo. I'm going to send a patch to change the name very soon since test_foo was not intentional.