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
Signed-off-by: Hongxu Jia <[email protected]>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 3664c76..8989c1e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -37,5 +37,5 @@ tests_test_LDADD = libxcb-errors.la $(XCB_LIBS)
CLEANFILES = src/extensions.c
src/extensions.c: src/extensions.py
- $(AM_V_GEN)$(PYTHON) $(srcdir)/src/extensions.py [email protected]
${XCBPROTO_XCBINCLUDEDIR}/*.xml && \
+ mkdir -p src && $(AM_V_GEN)$(PYTHON) $(srcdir)/src/extensions.py [email protected]
${XCBPROTO_XCBINCLUDEDIR}/*.xml && \
mv [email protected] $@
--
2.49.0