From 0a16c36fe81aba8fdef2b75078718c80b4088e8b Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Fri, 11 Oct 2024 11:27:21 -0400 Subject: [PATCH] Add Ubuntu 24.10 and Fedora 41 to CI. (#18753) * Add Ubuntu 24.10 and Fedora 41 to CI. * Fix broken DNF package install checking in dependency handling script. * Force usage of DNF on Fedora for dependency handling. --- .github/data/distros.yml | 16 ++++++++++++++-- .../installer/install-required-packages.sh | 18 ++++++++++++++---- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.github/data/distros.yml b/.github/data/distros.yml index 2c5569bff38417..73cb488abcc461 100644 --- a/.github/data/distros.yml +++ b/.github/data/distros.yml @@ -174,7 +174,7 @@ include: - &fedora distro: fedora - version: "40" + version: "41" support_type: Core notes: '' eol_check: true @@ -183,13 +183,20 @@ include: dnf remove -y json-c-devel packages: &fedora_packages type: rpm - repo_distro: fedora/40 + repo_distro: fedora/41 builder_rev: *def_builder_rev arches: - x86_64 - aarch64 test: ebpf-core: true + - <<: *fedora + version: "40" + packages: + <<: *fedora_packages + repo_distro: fedora/40 + test: + ebpf-core: true - <<: *fedora version: "39" packages: @@ -303,6 +310,11 @@ include: - arm64 test: ebpf-core: true + - <<: *ubuntu + version: "24.10" + packages: + <<: *ubuntu_packages + repo_distro: ubuntu/oracular - <<: *ubuntu version: "22.04" packages: diff --git a/packaging/installer/install-required-packages.sh b/packaging/installer/install-required-packages.sh index e0be30e4619c5c..e80db16c86a538 100755 --- a/packaging/installer/install-required-packages.sh +++ b/packaging/installer/install-required-packages.sh @@ -411,25 +411,35 @@ detect_package_manager_from_distribution() { centos* | clearos* | rocky* | almalinux*) package_installer="" tree="centos" - [[ -n "${yum}" ]] && package_installer="install_yum" [[ -n "${dnf}" ]] && package_installer="install_dnf" + [[ -n "${yum}" ]] && package_installer="install_yum" if [[ "${IGNORE_INSTALLED}" -eq 0 ]] && [[ -z "${package_installer}" ]]; then echo >&2 "command 'yum' or 'dnf' is required to install packages on a '${distribution} ${version}' system." exit 1 fi ;; - fedora* | redhat* | red\ hat* | rhel*) + redhat* | red\ hat* | rhel*) package_installer= tree="rhel" - [[ -n "${yum}" ]] && package_installer="install_yum" [[ -n "${dnf}" ]] && package_installer="install_dnf" + [[ -n "${yum}" ]] && package_installer="install_yum" if [[ "${IGNORE_INSTALLED}" -eq 0 ]] && [[ -z "${package_installer}" ]]; then echo >&2 "command 'yum' or 'dnf' is required to install packages on a '${distribution} ${version}' system." exit 1 fi ;; + fedora*) + package_installer="install_dnf" + tree="rhel" + if [[ "${IGNORE_INSTALLED}" -eq 0 ]] && [[ -z "${package_installer}" ]]; then + echo >&2 "command 'yum' or 'dnf' is required to install packages on a '${distribution} ${version}' system." + exit 1 + fi + ;; + + ol*) package_installer= tree="ol" @@ -1543,7 +1553,7 @@ install_yum() { validate_install_dnf() { echo >&2 " > Checking if package '${*}' is installed..." - dnf list installed "${*}" > /dev/null 2>&1 || echo "${*}" + dnf list --installed "${*}" > /dev/null 2>&1 || echo "${*}" } install_dnf() {