Bug 13637

Summary: recipetool license failure when reproducible_build class is inherited
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2019-11-18 12:28:32 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/481

There were a ton of failures when:

INHERIT += "reproducible_build"

was added. This bug covers the recipetool license selftest failure

2019-11-16 20:12:25,418 - oe-selftest - INFO - 10: 39/78 149/378 (5.63s) (recipetool.RecipetoolTests.test_recipetool_create_simple)
2019-11-16 20:12:25,418 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/recipetool.py", line 406, in test_recipetool_create_simple
    self._test_recipe_contents(os.path.join(temprecipe, dirlist[0]), checkvars, inherits)
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/devtool.py", line 172, in _test_recipe_contents
    self.assertEqual(value, needvalue, 'values for %s do not match' % var)
  File "/usr/lib/python3.6/unittest/case.py", line 829, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib/python3.6/unittest/case.py", line 1082, in assertSetEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib/python3.6/unittest/case.py", line 670, in fail
    raise self.failureException(msg)
AssertionError: Items in the first set but not the second:
'file://socat-1.7.3.0/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263'
'file://socat-1.7.3.0/COPYING.OpenSSL;md5=5c9bccc77f67a8328ef4ebaf468116f4'
Items in the second set but not the first:
'file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263'
'file://COPYING.OpenSSL;md5=5c9bccc77f67a8328ef4ebaf468116f4' : values for LIC_FILES_CHKSUM do not match