Skip to content

Commit

Permalink
fix: mitigate OpenCL packaging error
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bsherman committed Dec 15, 2024
1 parent fa108e3 commit 387bddf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 387bddf

Please sign in to comment.