File 2682-update_deprecations-Add-special-handling-for-lists-z.patch of Package erlang

From 1ddf34fcf4d336a5ca49529afa64b9410d322b27 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Fri, 5 Sep 2025 09:00:45 +0200
Subject: [PATCH 2/3] update_deprecations: Add special handling for lists:zf/2

`lists:zf/2` is undocumented and deprecated. Referencing an
undocumented function will generate a warning, which will fail
the documentation build. Therefore, we will need to avoid creating
a reference to it in `deprecations.md`.
---
 lib/stdlib/scripts/update_deprecations | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/stdlib/scripts/update_deprecations b/lib/stdlib/scripts/update_deprecations
index d200635ab2..8681c96a7f 100755
--- a/lib/stdlib/scripts/update_deprecations
+++ b/lib/stdlib/scripts/update_deprecations
@@ -361,6 +361,9 @@ make_gen_list([], _, _) ->
 make_gen_mfas(MFAs) ->
      [make_item(MFA) || MFA <- MFAs].
 
+make_item({{lists,zf,2},Text}) ->
+    %% Avoid creating a reference to this undocumented function.
+    ["-   Undocumented function lists:zf/2 ", " (",Text,")\n"];
 make_item({{M,F,A},Text}) ->
     ["-   `",lists:concat([M,":",F,"/",A]),"` ", " (",Text,")\n"].
 
-- 
2.51.0

openSUSE Build Service is sponsored by