File 5607-Disable-support-for-Linux-THP-on-architectures-other.patch of Package erlang

From dbba3df4d559ebb00233be0ad88c0412dc667987 Mon Sep 17 00:00:00 2001
From: lexprfuncall <5360361+lexprfuncall@users.noreply.github.com>
Date: Wed, 7 Aug 2024 21:56:17 -0700
Subject: [PATCH] Disable support for Linux THP on architectures other than
 amd64

THP seems to be causing problems on 32-bit and 64-bit ARM hosts.  This
change disables the test for THP on everything except 64-bit x86 hosts
which are known to work.
---
 erts/configure    | 4 ++--
 erts/configure.ac | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/erts/configure b/erts/configure
index 13318d25d7..d99cc51920 100755
--- a/erts/configure
+++ b/erts/configure
@@ -25692,8 +25692,8 @@ printf "%s\n" "no" >&6; }
 	;;
 esac
 
-case $OPSYS in #(
-  linux*) :
+case $ARCH-$OPSYS in #(
+  amd64-linux*) :
 
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Transparent Huge Pages interface is available" >&5
 printf %s "checking whether the Transparent Huge Pages interface is available... " >&6; }
diff --git a/erts/configure.ac b/erts/configure.ac
index a03da7b3be..82f33ebc39 100644
--- a/erts/configure.ac
+++ b/erts/configure.ac
@@ -3036,9 +3036,9 @@ case $host_os in
 esac
 
 dnl Checks for the Transparent Huge pages (THP) availability on Linux
-AS_CASE([$OPSYS],
-  [linux*],
   [      
+AS_CASE([$ARCH-$OPSYS],
+  [amd64-linux*],
     AC_CACHE_CHECK(
       [whether the Transparent Huge Pages interface is available],
       erts_cv_linux_thp,
-- 
2.43.0

openSUSE Build Service is sponsored by