fix(compile-setup): dnf compile (#1028)

* fix compile for fedora, rocky, old fedoras

* Update compile-setup.sh

* Update compile-setup.sh

* Update compile-setup.sh

* Update compile-setup.sh

* Update core/tabs/system-setup/compile-setup.sh

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* Update core/tabs/system-setup/compile-setup.sh

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* Update compile-setup.sh

---------

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
This commit is contained in:
Jaredy899 2025-02-28 16:15:41 -05:00 committed by GitHub
parent 95e6c357d7
commit 0fc8f07750
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,11 +25,16 @@ installDepend() {
"$ESCALATION_TOOL" "$PACKAGER" install -y "$DEPENDENCIES" "$COMPILEDEPS"
;;
dnf)
COMPILEDEPS='@development-tools'
"$ESCALATION_TOOL" "$PACKAGER" update
"$ESCALATION_TOOL" "$PACKAGER" config-manager --set-enabled powertools
"$ESCALATION_TOOL" "$PACKAGER" install -y "$DEPENDENCIES" "$COMPILEDEPS"
"$ESCALATION_TOOL" "$PACKAGER" install -y glibc-devel.i686 libgcc.i686
"$ESCALATION_TOOL" "$PACKAGER" update -y
if ! "$ESCALATION_TOOL" "$PACKAGER" config-manager --enable powertools 2>/dev/null; then
"$ESCALATION_TOOL" "$PACKAGER" config-manager --enable crb 2>/dev/null || true
fi
# shellcheck disable=SC2086
"$ESCALATION_TOOL" "$PACKAGER" -y install $DEPENDENCIES
if ! "$ESCALATION_TOOL" "$PACKAGER" -y group install "Development Tools" 2>/dev/null; then
"$ESCALATION_TOOL" "$PACKAGER" -y group install development-tools
fi
"$ESCALATION_TOOL" "$PACKAGER" -y install glibc-devel.i686 libgcc.i686
;;
zypper)
COMPILEDEPS='patterns-devel-base-devel_basis'