File 0366-Update-deprecations.patch of Package erlang
From 9df41b9302a1a58664187ba1db721b62cc77df63 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Fri, 21 Mar 2025 12:17:53 +0100
Subject: [PATCH 2/3] Update deprecations
---
bootstrap/lib/stdlib/ebin/otp_internal.beam | Bin 11472 -> 11492 bytes
lib/stdlib/src/otp_internal.erl | 30 ++++++++++++++------
2 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl
index 4c382d282d..f559c77994 100644
--- a/lib/stdlib/src/otp_internal.erl
+++ b/lib/stdlib/src/otp_internal.erl
@@ -1,4 +1,18 @@
%%
+%% Copyright Ericsson AB 2020-2025. All Rights Reserved.
+%%
+%% Licensed under the Apache License, Version 2.0 (the "License");
+%% you may not use this file except in compliance with the License.
+%% You may obtain a copy of the License at
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS,
+%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+%% See the License for the specific language governing permissions and
+%% limitations under the License.
+%%
%% WARNING: DO NOT EDIT THIS FILE.
%%
%% This file was auto-generated from attributes in the source
@@ -105,9 +119,9 @@ obsolete(crypto, cmac, 3) ->
obsolete(crypto, cmac, 4) ->
{removed, "use crypto:macN/5 instead"};
obsolete(crypto, crypto_dyn_iv_init, 3) ->
- {removed, "not supported, use crypto_init/4"};
+ {removed, "not supported, use crypto:crypto_init/4"};
obsolete(crypto, crypto_dyn_iv_update, 3) ->
- {removed, "not supported, use crypto_update/2"};
+ {removed, "not supported, use crypto:crypto_update/2"};
obsolete(crypto, hmac, 3) ->
{removed, "use crypto:mac/4 instead"};
obsolete(crypto, hmac, 4) ->
@@ -201,11 +215,11 @@ obsolete(rpc, safe_multi_server_call, 2) ->
obsolete(rpc, safe_multi_server_call, 3) ->
{removed, "use rpc:multi_server_call/3 instead"};
obsolete(ssl, cipher_suites, 0) ->
- {removed, "use cipher_suites/2,3 instead"};
+ {removed, "use ssl:cipher_suites/2,3 instead"};
obsolete(ssl, cipher_suites, 1) ->
- {removed, "use cipher_suites/2,3 instead"};
+ {removed, "use ssl:cipher_suites/2,3 instead"};
obsolete(ssl, connection_info, 1) ->
- {removed, "use ssl:connection_information/[1,2] instead"};
+ {removed, "use ssl:connection_information/1,2 instead"};
obsolete(ssl, negotiated_next_protocol, 1) ->
{removed, "use ssl:negotiated_protocol/1 instead"};
obsolete(zlib, adler32, 2) ->
@@ -225,9 +239,9 @@ obsolete(zlib, crc32_combine, 4) ->
obsolete(zlib, getBufSize, 1) ->
{removed, "this function has been removed"};
obsolete(zlib, inflateChunk, 1) ->
- {removed, "use safeInflate/2 instead"};
+ {removed, "use zlib:safeInflate/2 instead"};
obsolete(zlib, inflateChunk, 2) ->
- {removed, "use safeInflate/2 instead"};
+ {removed, "use zlib:safeInflate/2 instead"};
obsolete(zlib, setBufSize, 2) ->
{removed, "this function has been removed"};
obsolete(auth, node_cookie, _) ->
@@ -249,7 +263,7 @@ obsolete(erl_scan, token_info, _) ->
obsolete(filename, find_src, _) ->
{removed, "use filelib:find_source/1,3 instead"};
obsolete(ssl, ssl_accept, _) ->
- {removed, "use ssl_handshake/1,2,3 instead"};
+ {removed, "use ssl:handshake/1,2,3 instead"};
obsolete(ct_slave, _, _) ->
{deprecated, "use ?CT_PEER(), or the 'peer' module instead", "OTP 29"};
obsolete(gen_fsm, _, _) ->
--
2.43.0