File 0508-otp-Do-not-allow-core-apps-to-be-disabled.patch of Package erlang

From 7cdc87000e53a35298d8df6972e4189c050b25dc Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Tue, 16 Mar 2021 17:55:29 +0100
Subject: [PATCH] otp: Do not allow core apps to be disabled

Closes #4621
---
 configure.src | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/configure.src b/configure.src
index 0ced1500ac..c0a195b147 100644
--- a/configure.src
+++ b/configure.src
@@ -148,7 +148,14 @@ while test $# != 0; do
 	    case $1 in
 		--without-*)
 		    skip_app=`expr "$1" : '--without-\(.*\)'`
-		    if test -d "lib/$skip_app"; then
+                    if [ "$skip_app" = "stdlib" ] ||
+                           [ "$skip_app" = "kernel" ] ||
+                           [ "$skip_app" = "sasl" ] ||
+                           [ "$skip_app" = "compiler" ] ||
+                           [ "$skip_app" = "erl_interface" ]; then
+                        echo "ERROR: $skip_app is a mandatory application" 1>&2
+                        exit 1
+		    elif test -d "lib/$skip_app"; then
 			skip_applications="$skip_applications $skip_app"
 		    fi;;
 		*)
-- 
2.26.2

openSUSE Build Service is sponsored by