File 0343-Update-deprecations.patch of Package erlang

From df8da229b15504007e38406e6dda463ce837aaa5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Mon, 2 Nov 2020 14:41:29 +0100
Subject: [PATCH 3/3] Update deprecations

---
 bootstrap/lib/stdlib/ebin/otp_internal.beam | Bin 9276 -> 9308 bytes
 lib/stdlib/src/otp_internal.erl             |   2 ++
 2 files changed, 2 insertions(+)

diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl
index 9bd406723a..3cda3591c3 100644
--- a/lib/stdlib/src/otp_internal.erl
+++ b/lib/stdlib/src/otp_internal.erl
@@ -69,6 +69,8 @@ obsolete(disk_log, lclose, 2) ->
     {deprecated, "use the new try/catch syntax for retrieving the stack backtrace", "OTP 24"};
 obsolete(erlang, now, 0) ->
     {deprecated, "see the \"Time and Time Correction in Erlang\" chapter of the ERTS User's Guide for more information"};
+obsolete(erlang, phash, 2) ->
+    {deprecated, "use erlang:phash2/2 instead"};
 obsolete(filename, safe_relative_path, 1) ->
     {deprecated, "use filelib:safe_relative_path/2 instead", "OTP 25"};
 obsolete(http_uri, decode, 1) ->
-- 
2.26.2

openSUSE Build Service is sponsored by