From 7bba9da2815a5821cb62c8ab6472dab4e50f0e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20Gr=C3=B8nhaug?= Date: Mon, 25 Mar 2024 19:14:11 +0100 Subject: [PATCH] Fix dependency install script on RHEL derivatives (#9684) Added a check to `script/linux` so the script does not try to enable CSB or add EPEL if the user is on Fedora, which does not need these steps. The script now runs nicely on Fedora! :) Release Notes: - N/A --- script/linux | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/script/linux b/script/linux index bb12006c6f..dc35b1bd68 100755 --- a/script/linux +++ b/script/linux @@ -40,9 +40,11 @@ if [[ -n $dnf ]]; then libzstd-devel vulkan-loader ) - # libxkbcommon-x11-devel is in the crb repo - $maysudo "$dnf" config-manager --set-enabled crb - $maysudo "$dnf" install epel-release epel-next-release + + # libxkbcommon-x11-devel is in the crb repo on RHEL and CentOS, not needed for Fedora + if ! grep -q "Fedora" /etc/redhat-release; then + $maysudo "$dnf" config-manager --set-enabled crb + fi $maysudo "$dnf" install -y "${deps[@]}" exit 0