File otp_src_28.4.1-ex_doc_wrapper.patch of Package erlang

diff -Ndurp otp_src_28.4.1/make/ex_doc_wrapper.in otp_src_28.4.1-ex_doc_wrapper/make/ex_doc_wrapper.in
--- otp_src_28.4.1/make/ex_doc_wrapper.in	2026-03-12 17:54:38.000000000 +0200
+++ otp_src_28.4.1-ex_doc_wrapper/make/ex_doc_wrapper.in	2026-03-13 02:21:09.099483171 +0200
@@ -49,38 +49,6 @@ fi
 
 ## Detect ex_doc version and store it in a variable
 ## This is currently used to handle search engine changes in v0.39.0
-export EX_DOC_VERSION=$($EX_DOC --version)
-
-## The below bash magic captures the output of stderr into OUTPUT while still printing
-## everything we get to stdout and stderr. This is done by:
-
-## 1. duplicating the stdout (1) and stderr (2) streams to fd 3 and 4 respectively.
-exec 3>&1 4>&2
-
-## Running the command where we redirect stderr to fd 1 and stdout to fd 3.
-## We then use tee on the stderr (which is now fd 1) to print that to fd 4
-OUTPUT="$( { escript@EXEEXT@ "${EX_DOC}" "${ARGS[@]}"; } 2>&1 1>&3 | tee /dev/fd/4 )"
-
-## Close fd 3 and 4
-exec 3>&- 4>&-
-
-## If EX_DOC_WARNINGS_AS_ERRORS is not explicitly turned on
-## and any .app file is missing, we turn off warnings as errors
-if [ "${EX_DOC_WARNINGS_AS_ERRORS}" != "true" ]; then
-    for app in $ERL_TOP/lib/*/; do
-        if [ ! -f $app/ebin/*.app ]; then
-            EX_DOC_WARNINGS_AS_ERRORS=false
-        fi
-    done
-fi
+export EX_DOC_VERSION=$(escript@EXEEXT@ $EX_DOC --version)
 
-if [ "${EX_DOC_WARNINGS_AS_ERRORS}" != "false" ]; then
-    if echo "${OUTPUT}" | grep "warning:" 1>/dev/null; then
-        echo "ex_doc emitted warnings"
-        ## Touch the config file in order to re-trigger make
-        if [ -f "docs.exs" ]; then
-            touch "docs.exs"
-        fi
-        exit 1;
-    fi
-fi
+escript@EXEEXT@ "${EX_DOC}" "${ARGS[@]}"
openSUSE Build Service is sponsored by