File 0348-lib-stdlib-fix-redirection-links-in-docs.patch of Package erlang

From f25886e59fc6a1217e48c42510da36594cb292bd Mon Sep 17 00:00:00 2001
From: Ariel Otilibili <otilibil@eurecom.fr>
Date: Mon, 9 Dec 2024 21:58:27 +0100
Subject: [PATCH 1/3] lib/stdlib: fix redirection links in docs

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
---
 lib/stdlib/src/gen_event.erl  | 2 +-
 lib/stdlib/src/gen_fsm.erl    | 5 ++---
 lib/stdlib/src/gen_statem.erl | 4 ++--
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/lib/stdlib/src/gen_event.erl b/lib/stdlib/src/gen_event.erl
index d69e648c25..5c4e930e91 100644
--- a/lib/stdlib/src/gen_event.erl
+++ b/lib/stdlib/src/gen_event.erl
@@ -28,7 +28,7 @@ event handlers that are added and deleted dynamically.
 An event manager implemented using this module has a standard set of
 interface functions and includes functionality for tracing
 and error reporting.  It also fits into an OTP supervision tree.
-For more information, see [OTP Design Principles](`e:system:events.md`).
+For more information, see [gen_event section in OTP Design Principles](`e:system:events.md`).
 
 Each event handler is implemented as a callback module
 exporting a predefined set of functions. The relationship between
diff --git a/lib/stdlib/src/gen_fsm.erl b/lib/stdlib/src/gen_fsm.erl
index 7276f19284..113d00166d 100644
--- a/lib/stdlib/src/gen_fsm.erl
+++ b/lib/stdlib/src/gen_fsm.erl
@@ -206,7 +206,7 @@ A generic finite state machine process (`gen_fsm`) implemented
 using this module has a standard set of interface functions
 and includes functionality for tracing and error reporting.
 It also fits into an OTP supervision tree.  For more information,
-see [OTP Design Principles](`e:system:design_principles`).
+see [OTP Design Principles](`e:system:design_principles.md`).
 
 A `gen_fsm` process assumes all specific parts to be located
 in a callback module exporting a predefined set of functions.
@@ -679,8 +679,7 @@ its internal [*state data*](#state-data)
 during a release upgrade/downgrade, that is,
 when instruction `{update, Module, Change, ...}`,
 where `Change = {advanced, Extra}`, is given in the appup file;
-see section Release Handling Instructions in OTP Design Principles.
-[OTP Design Principles](`e:system:release_handling.md#instr`).
+see [Release Handling Instructions in OTP Design Principles](`e:system:release_handling.md#instr`).
 
 For an upgrade, `OldVsn` is `Vsn`, and for a downgrade,
 `OldVsn` is `{down, Vsn}`. `Vsn` is defined by the vsn attribute(s)
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl
index 150ba7455b..b48626f05f 100644
--- a/lib/stdlib/src/gen_statem.erl
+++ b/lib/stdlib/src/gen_statem.erl
@@ -30,7 +30,7 @@ A generic state machine server process (`gen_statem`) implemented
 using this module has a standard set of interface functions
 and includes functionality for tracing and error reporting.
 It also fits into an OTP supervision tree.  For more information,
-see [OTP Design Principles](`e:system:statem.md`).
+see [gen_statem section in OTP Design Principles](`e:system:statem.md`).
 
 > #### Note {: .info }
 >
@@ -1739,7 +1739,7 @@ its internal state during a release upgrade/downgrade, that is,
 when the instruction `{update, Module, Change, ...}`,
 where `Change = {advanced, Extra}`, is specified in
 the [`appup`](`e:sasl:appup.md`) file.  For more information, see
-[OTP Design Principles](`e:system:release_handling.md#instr`).
+[Release Handling Instructions in OTP Design Principles](`e:system:release_handling.md#instr`).
 
 For an upgrade, `OldVsn` is `Vsn`, and for a downgrade, `OldVsn` is
 `{down, Vsn}`. `Vsn` is defined by the `vsn` attribute(s)
-- 
2.43.0

openSUSE Build Service is sponsored by