patch 9.2.0013: parallel make invocation may break Wayland header generation

Problem:  parallel make invocation may break Wayland header generation
Solution: Use single make target to generate Wayland protocol files.
          (Jan Palus)

$(WAYLAND_SRC) contains up to 4 files which, given right timing and
parallelization level, can spawn 4 independent `make` processes during
parallel build. Each process generates same set of files intermittently
leading to inconsistent results. Instead use one common target each
source file depends on.

fixes:  #19419
closes: #19420

Signed-off-by: Jan Palus <jpalus@fastmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Jan Palus
2026-02-16 21:46:27 +00:00
committed by Christian Brabandt
parent 4255ba7ff4
commit c4b8783970
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -1607,7 +1607,10 @@ EXTRA_SRC = if_lua.c if_mzsch.c auto/if_perl.c \
gui_beval.c netbeans.c job.c channel.c \
$(GRESOURCE_SRC)
$(WAYLAND_SRC):
$(WAYLAND_SRC): genwaylandproto
.PHONY: genwaylandproto
genwaylandproto:
cd auto/wayland; $(MAKE)
# Needed for parallel jobs to work
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
13,
/**/
12,
/**/