Re: Strange sporadic build issues (incremental builds in docker container)
Trevor Woerner
On Wed 2022-03-30 @ 04:08:31 PM, Richard Purdie wrote:
On Wed, 2022-03-30 at 09:40 -0400, Trevor Woerner wrote:Awesome! That is a very simple and quick reproducer!Hi Matthias,The "good" news is I did work out how to reproduce this. I haven't looked at why but hopefully that helps us more forward with looking atAs per our conversation I quickly tried the following (not that I expected this to be a final solution, but just a poking-around kind of thing): diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index cc81461473..503da61b3d 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -170,6 +170,7 @@ do_unpack[dirs] = "${WORKDIR}" do_unpack[cleandirs] = "${@d.getVar('S') if os.path.normpath(d.getVar('S')) != os.path.normpath(d.getVar('WORKDIR')) else os.path.join('${S}', 'patches')}" python base_do_unpack() { + bb.utils.remove(d.getVar('B') + "/.pc", recurse=True) src_uri = (d.getVar('SRC_URI') or "").split() if not src_uri: return And it changed the error message from: $ bitbake keymaps -c patch ... ERROR: keymaps-1.0-r31 do_patch: Applying patch 'GPLv2.patch' on target directory '/z/build-master/quilt-fix/qemux86/nodistro/build/tmp-glibc/work/qemux86-oe-linux/keymaps/1.0-r31' CmdError('quilt --quiltrc /z/build-master/quilt-fix/qemux86/nodistro/build/tmp-glibc/work/qemux86-oe-linux/keymaps/1.0-r31/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: stderr: File series fully applied, ends at patch GPLv2.patch ') to: $ bitbake keymaps -c patch ... ERROR: keymaps-1.0-r31 do_patch: Applying patch 'GPLv2.patch' on target directory '/z/build-master/quilt-fix/qemux86/nodistro/build/tmp-glibc/work/qemux86-oe-linux/keymaps/1.0-r31' CmdError('quilt --quiltrc /z/build-master/quilt-fix/qemux86/nodistro/build/tmp-glibc/work/qemux86-oe-linux/keymaps/1.0-r31/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch GPLv2.patch The next patch would create the file COPYING, which already exists! Applying it anyway. patching file COPYING Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- rejects in file COPYING Patch GPLv2.patch can be reverse-applied stderr: ') progress? https://www.reddit.com/r/ProgrammerHumor/comments/8j5qim/progress/ |
|