build-from-source: use buildroot repo on RHEL 10

The buildroot package repositories are not present on RHEL 10 installs,
so we can't build-from-source there.

Drag in whichever latest buildroot is there. Hopefully that's good
enough, it's roughly analogous to what we do for RHEL 8.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1994
This commit is contained in:
Lubomir Rintel 2024-07-17 15:58:09 +02:00
parent 126bfa29f8
commit 0b6c3af237

View file

@ -26,6 +26,10 @@ YUM_ARGS=()
if grep -q --quiet Ootpa /etc/redhat-release; then
YUM_ARGS+=("--enablerepo=rhel-8-buildroot")
fi
if grep -q --quiet Coughlan /etc/redhat-release; then
rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
YUM_ARGS+=('--repofrompath=buildroot,http://download.devel.redhat.com/rhel-$releasever/nightly/BUILDROOT-$releasever-Public-Beta/latest-BUILDROOT-$releasever-RHEL-$releasever/compose/Buildroot/$basearch/os')
fi
if [[ "$INSTALL_DEPENDENCIES" == yes ]]; then
$SUDO yum install \