File relx-4.3.0-stacktrace.patch of Package relx
diff -Ndurp relx-4.3.0/src/relx.hrl relx-4.3.0-stacktrace/src/relx.hrl
--- relx-4.3.0/src/relx.hrl 2021-02-04 20:32:32.000000000 +0200
+++ relx-4.3.0-stacktrace/src/relx.hrl 2021-03-23 17:27:25.993101187 +0200
@@ -22,7 +22,10 @@
-define(RLX_ERROR(Reason), {error, {?MODULE, Reason}}).
-ifdef(OTP_RELEASE).
+-if (?OTP_RELEASE >= 21).
-define(WITH_STACKTRACE(T, R, S), T:R:S ->).
--else.
+-endif.
+-endif.
+-ifndef(WITH_STACKTRACE).
-define(WITH_STACKTRACE(T, R, S), T:R -> S = erlang:get_stacktrace(),).
-endif.