File 0257-diameter-remove-optional-call-to-deprecated-fn-and-u.patch of Package erlang

From a7366b0a49faba1dbf1f68da704948e0ccd9ccd4 Mon Sep 17 00:00:00 2001
From: Kiko Fernandez-Reyes <kiko@erlang.org>
Date: Tue, 25 Apr 2023 10:37:59 +0200
Subject: [PATCH] diameter:  remove optional call to deprecated fn and update
 appup

`diameter` should not call or rely on the deprecated function
`dbg:stop_clear/0`.

The main reason is that `dbg:stop_clear/0` is simply an alias to
`dbg:stop/0`. Thus, `dbg:stop_clear/0` was marked as deprecated in a
previous pull request GH-6903 (commit
`861be72c5a1261ee1694ee468540256f6db11e87`), and these are the remains
that I forgot to update.
---
 erts/test/otp_SUITE.erl             | 2 +-
 lib/diameter/src/diameter.appup.src | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/erts/test/otp_SUITE.erl b/erts/test/otp_SUITE.erl
index 40e2be0a85..a8424ea46f 100644
--- a/erts/test/otp_SUITE.erl
+++ b/erts/test/otp_SUITE.erl
@@ -542,7 +542,7 @@ ignore_undefs() ->
                 %% The following functions are optional dependencies for diameter
                 #{{dbg,ctp,0} => true,
                   {dbg,p,2} => true,
-                  {dbg,stop_clear,0} => true,
+                  {dbg,stop,0} => true,
                   {dbg,trace_port,2} => true,
                   {dbg,tracer,2} => true,
                   {erl_prettypr,format,1} => true,
-- 
2.35.3

openSUSE Build Service is sponsored by