File gun-1.3.3-stacktrace.patch of Package gun

diff -Ndurp gun-1.3.3/src/gun.erl gun-1.3.3-stacktrace/src/gun.erl
--- gun-1.3.3/src/gun.erl	2020-08-25 12:23:37.000000000 +0300
+++ gun-1.3.3-stacktrace/src/gun.erl	2022-07-27 05:29:47.677022614 +0300
@@ -14,10 +14,6 @@
 
 -module(gun).
 
--ifdef(OTP_RELEASE).
--compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}).
--endif.
-
 %% Connection.
 -export([open/2]).
 -export([open/3]).
@@ -651,7 +647,7 @@ proc_lib_hack(Parent, Owner, Host, Port,
 		_:normal -> exit(normal);
 		_:shutdown -> exit(shutdown);
 		_:Reason = {shutdown, _} -> exit(Reason);
-		_:Reason -> exit({Reason, erlang:get_stacktrace()})
+		_:Reason:Stacktrace -> exit({Reason, Stacktrace})
 	end.
 
 init(Parent, Owner, Host, Port, Opts) ->
openSUSE Build Service is sponsored by