I have started to get this warning on master lately in do_rootfs tasks, I am using archlinux with Python 3.10.4 openembedded-core/meta/classes/license_image.bbclass:23: ResourceWarning: unclosed file <_io.TextIOWrapper name='/mnt/b/yoe/master/build/tmp/deploy/licenses/yoe-installer-image-raspberrypi4-64-20220331174313/package.manifest' mode='w+' encoding='UTF-8'> 'w+').write(output) ResourceWarning: Enable tracemalloc to get the object allocation traceback ===================== /mnt/b/yoe/master/sources/openembedded-core/meta/lib/oe/rootfs.py:331: ResourceWarning: unclosed file <_io.TextIOWrapper name='/mnt/b/yoe/master/build/tmp/pkgdata/raspberrypi4-64/kernel-depmod/kernel-abiversion' mode='r' encoding='UTF-8'> kernel_ver = open(kernel_abi_ver_file).read().strip(' \n') ResourceWarning: Enable tracemalloc to get the object allocation traceback
I've noticed this today as well and fix sent as: https://lists.openembedded.org/g/openembedded-core/message/164109
Patch incoming... Thanks Martin.
https://git.yoctoproject.org/poky/commit/?id=632c83ab787211ef927a999f4ecde1d3ce40621d