From 387bddf943576a7a5d9240b6215eb1ec411cf7f3 Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Sun, 15 Dec 2024 16:49:42 -0600 Subject: [PATCH] fix: mitigate OpenCL packaging error It seems a new package was created in Fedora release repos which has started to be installed in all builds of Fedora 41/42, but it was not meant to be installed. The new OpenCL-ICD-Loader conflicts with ocl-icd which is required by mesa-OpenCL, nvidia drivers, etc. This mitigation simply ensures that ocl-icd is installed, not the new, undesired package. Upstream bug report: https://bugzilla.redhat.com/show_bug.cgi?id=2332429 --- install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install.sh b/install.sh index 28dfbab8..63423b29 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