File 0315-Fix-broken-make-test-in-erts-emulator.patch of Package erlang
From 4f88c8841209ed4e03b11cb6e951d71ab3e198b6 Mon Sep 17 00:00:00 2001
From: Kjell Winblad <kjellwinblad@gmail.com>
Date: Tue, 17 Aug 2021 15:37:59 +0200
Subject: [PATCH] Fix broken "make test" in erts/emulator
The test target in "$(ERL_TOP)/make/app_targets.mk" that is included
in the end of "erts/emulator/Makefile.in" is not picked up by make
when executing make in the emulator directory. The reason for this is
that the file generated from "erts/emulator/Makefile.in" is executed
by an external make call. Unfortunately, this makes running commands
such as the following not work as intended:
(cd $ERL_TOP/erts/emulator && make ARGS="-suite binary_SUITE -case deep_bitstr_lists" test)
Putting "include $(ERL_TOP)/make/app_targets.mk" in the end of
"erts/emulator/Makefile.in" fixes the problem.
---
erts/emulator/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/erts/emulator/Makefile b/erts/emulator/Makefile
index 65fdbdb747..33852a87af 100644
--- a/erts/emulator/Makefile
+++ b/erts/emulator/Makefile
@@ -23,3 +23,5 @@
include $(ERL_TOP)/make/run_make.mk
+include $(ERL_TOP)/make/app_targets.mk
+
--
2.31.1