Use RHEL 9 compatibility packages

This commit is contained in:
2026-06-18 18:54:55 -04:00
parent 8c4c4f078a
commit af2e748efd

View File

@@ -22,7 +22,7 @@
# shellcheck disable=SC2329 # shellcheck disable=SC2329
shopt -s extglob shopt -s extglob
declare -g SCRIPT_VERSION="1.35.16" declare -g SCRIPT_VERSION="1.35.17-dev"
declare -g MC_VERSION_HARDCODE="35.0.74" # do find all replace declare -g MC_VERSION_HARDCODE="35.0.74" # do find all replace
declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE
declare -g BOARD_ID="92.0" # MC35 board ID for fallback latest version detection declare -g BOARD_ID="92.0" # MC35 board ID for fallback latest version detection
@@ -902,6 +902,18 @@ translate_packages() {
;; ;;
*) echo "Skipping package translations for $ID" ;; *) echo "Skipping package translations for $ID" ;;
esac esac
# TODO Quirks
case $BUILD_TARGET in
# RHEL 9
centos)
if [[ ${VERSION_ID%%.*} == 9 ]]; then
requires_arr=("${requires_arr[@]/freetype*/freetype}") # remove freetype minimum version requirement
requires_arr=("${requires_arr[@]/webkit2gtk*/webkit2gtk3}") # use webkit2gtk3
requires_arr=("${requires_arr[@]/pango*/pango}") # remove pango minimum version requirement
fi
;;
esac
} }
# @description Creates an RPM .spec file and builds the RPM from the source DEB using rpmbuild # @description Creates an RPM .spec file and builds the RPM from the source DEB using rpmbuild