Created attachment 4032 [details] diffoscope output demonstrating the bug. The package kernel-devsrc built at various times (from scratch) can contain files that have different permissions (see the attached diffoscope file). This has been observed several times, and seems always the same files are affected: include/config/auto.conf include/config/auto.conf.cmd include/config/tristate.conf generated/autoconf.h So probably a race...
Since all of the offending files are generated, I am not sure they should be actually included in the kernel-devsrc package at all.
Changing a make _mrproper_scripts_ to mrproper fixes this, patch has been sent.
With the patch in ML we fail "test_kernel_module": NOTE: core-image-sato-sdk-1.0-r0 do_testimage: FAIL [3.527s]: test_kernel_module (kernelmodule.KernelModuleTest) NOTE: core-image-sato-sdk-1.0-r0 do_testimage: ---------------------------------------------------------------------- NOTE: core-image-sato-sdk-1.0-r0 do_testimage: Traceback (most recent call last): File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f return func(*args, **kwargs) File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f return func(*args, **kwargs) File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f return func(*args, **kwargs) File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/meta/lib/oeqa/runtime/cases/kernelmodule.py", line 40, in test_kernel_module self.assertEqual(status, 0, msg='\n'.join([cmd, output])) AssertionError: 2 != 0 : cd /usr/src/kernel && make scripts HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --silentoldconfig Kconfig *** *** Configuration file ".config" not found! *** *** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig"). *** make[2]: *** [scripts/kconfig/Makefile:39: silentoldconfig] Error 1 make[1]: *** [Makefile:548: silentoldconfig] Error 2 make: *** No rule to make target 'include/config/auto.conf', needed by 'scripts'. Stop.
We test this as part of reproducible builds and no longer see this.