File 0224-update_deprecations-The-script-didn-t-handle-depreca.patch of Package erlang

From d3ee69f110920c58edb5ffcbb00f219feaf261d1 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 19 Jan 2022 07:47:47 +0100
Subject: [PATCH 1/2] update_deprecations: The script didn't handle
 '-deprecated([f/1])'

which caused the atom 'undefined' to be the Text in update_deprecations:make_xml_info/2.
According to /home/uabhnil/Projects/OTP/otp1/HOWTO/DEPRECATE.md that 'undefined' should be changed to
"see the documentation for details." by that script.
The internal wiki page has the same opinion as the script.
---
 lib/stdlib/scripts/update_deprecations | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/stdlib/scripts/update_deprecations b/lib/stdlib/scripts/update_deprecations
index ef6be3b5af..be8257980c 100755
--- a/lib/stdlib/scripts/update_deprecations
+++ b/lib/stdlib/scripts/update_deprecations
@@ -243,7 +243,7 @@ make_xml(Top, Type, OutFile, InfoText0) ->
     ok.
 
 make_xml_info([{Tag,M,F,A,Text} | Attributes], Tag) ->
-    [{{M,F,A}, Text} | make_xml_info(Attributes, Tag)];
+    [{{M,F,A}, info_string(Text)} | make_xml_info(Attributes, Tag)];
 make_xml_info([_ | Attributes], Tag) ->
     make_xml_info(Attributes, Tag);
 make_xml_info([], _Tag) ->
-- 
2.31.1

openSUSE Build Service is sponsored by