From f6f90249e419d8b694c660b62cba4d679728a11c Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Sun, 15 Dec 2024 16:59:15 -0600 Subject: [PATCH] fix: mitigate OpenCL packaging error (#692) --- install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install.sh b/install.sh index 28dfbab..63423b2 100755 --- a/install.sh +++ b/install.sh @@ -6,6 +6,15 @@ RELEASE="$(rpm -E %fedora)" KERNEL_SUFFIX="" QUALIFIED_KERNEL="$(rpm -qa | grep -P 'kernel-(|'"$KERNEL_SUFFIX"'-)(\d+\.\d+\.\d+)' | sed -E 's/kernel-(|'"$KERNEL_SUFFIX"'-)//')" +# mitigate upstream packaging bug: https://bugzilla.redhat.com/show_bug.cgi?id=2332429 +# swap the incorrectly installed OpenCL-ICD-Loader for ocl-icd, the expected package +rpm-ostree override replace \ + --from repo='fedora' \ + --experimental \ + --remove=OpenCL-ICD-Loader \ + ocl-icd \ + || true + curl -Lo /etc/yum.repos.d/_copr_ublue-os_staging.repo https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-"${RELEASE}"/ublue-os-staging-fedora-"${RELEASE}".repo curl -Lo /etc/yum.repos.d/_copr_kylegospo_oversteer.repo https://copr.fedorainfracloud.org/coprs/kylegospo/oversteer/repo/fedora-"${RELEASE}"/kylegospo-oversteer-fedora-"${RELEASE}".repo