File 0449-Disable-parallel-make-invocations.patch of Package erlang

From 992ed4f5ace556ea4c0236879c219d7306889b15 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Mon, 16 Jun 2025 14:24:04 +0200
Subject: [PATCH] Disable parallel make invocations

For example "make opt debug" will build  one target at a time
but each targets sub-makefile may still parallelize its sub targets.

This to avoid corrupted files when the same file is generated
in parallel from two Makefile invocations.
---
 make/run_make.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/make/run_make.mk b/make/run_make.mk
index ecbf7da774..49d5f672fc 100644
--- a/make/run_make.mk
+++ b/make/run_make.mk
@@ -42,3 +42,5 @@ emu jit:
 clean generate depend docs release release_spec release_docs release_docs_spec \
   tests release_tests release_tests_spec static_lib format format-check compdb:
 	$(make_verbose)$(MAKE) -f $(TARGET)/Makefile $@
+
+.NOTPARALLEL:
-- 
2.43.0

openSUSE Build Service is sponsored by