]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
xcb-util-errors: fix racing on out of source tree build
authorHongxu Jia <hongxu.jia@windriver.com>
Thu, 25 Sep 2025 07:56:46 +0000 (15:56 +0800)
committerMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Fri, 26 Sep 2025 07:08:23 +0000 (09:08 +0200)
commit1f2df752d9ea3f8cf6a6a7da92deba9eaa0e4964
tree6eb0b7e9d4dfa6f22b3c6e5384f0a0c42ee3c3b0
parent54544dda6fe1ac51ce66b994744d214efdf7412d
xcb-util-errors: fix racing on out of source tree build

While building out of source tree, there is a racing issue
on the existence of dir ./src
...
python3 ../sources/xcb-util-errors-1.0.1/src/extensions.py src/extensions.c.tmp path-to/1.0.1/recipe-sysroot/usr/share/xcb/*.xml && \
mv src/extensions.c.tmp src/extensions.c
  File "src/extensions.py", line 91, in <module>
    output = open(output_file, "w")
FileNotFoundError: [Errno 2] No such file or directory: 'src/extensions.c.tmp'
make: *** [Makefile:1435: src/extensions.c] Error 1
...

Explicitly create dir ./src before generating src/extensions.c.tmp

Inherit python3native to instead of host python3 to run python script

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-graphics/xorg-lib/xcb-util-errors/0001-fix-racing-on-out-of-source-tree-build.patch [new file with mode: 0644]
meta/recipes-graphics/xorg-lib/xcb-util-errors_1.0.1.bb