From b9d274776ed7846048a3cc22f1543d6b8f67e54d Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Fri, 1 Mar 2024 22:44:37 -0800 Subject: [PATCH 1/2] feat: Add Explicit sync patches for XWayland on Nvidia builds --- Containerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Containerfile b/Containerfile index 958a2f55e21..4f399eb2b05 100644 --- a/Containerfile +++ b/Containerfile @@ -41,6 +41,21 @@ RUN if [ ${FEDORA_MAJOR_VERSION} -ge "39" ]; then \ || true \ ; fi +# Install Explicit Sync Patches on Nvidia builds +RUN if [[ "${IMAGE_FLAVOR}" =~ "nvidia" ]]; then \ + wget https://copr.fedorainfracloud.org/coprs/gloriouseggroll/nvidia-explicit-sync/repo/fedora-$(rpm -E %fedora)/gloriouseggroll-nvidia-explicit-sync-fedora-$(rpm -E %fedora).repo?arch=x86_64 -O /etc/yum.repos.d/_copr_gloriouseggroll-nvidia-explicit-sync.repo && \ + rpm-ostree override replace \ + --experimental \ + --from repo=copr:copr.fedorainfracloud.org:gloriouseggroll:nvidia-explicit-sync \ + xorg-x11-server-Xwayland && \ + rpm-ostree override replace \ + --experimental \ + --from repo=copr:copr.fedorainfracloud.org:gloriouseggroll:nvidia-explicit-sync \ + egl-wayland \ + || true && \ + rm /etc/yum.repos.d/_copr_gloriouseggroll-nvidia-explicit-sync.repo + ; fi + COPY usr /usr COPY just /tmp/just COPY etc/yum.repos.d/ /etc/yum.repos.d/ From 7d3c3124e2d8aba4ee35bb6c00ab231d8a68a915 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Fri, 1 Mar 2024 22:45:26 -0800 Subject: [PATCH 2/2] chore: Syntax fix --- Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 4f399eb2b05..7e08555c0e4 100644 --- a/Containerfile +++ b/Containerfile @@ -53,7 +53,7 @@ RUN if [[ "${IMAGE_FLAVOR}" =~ "nvidia" ]]; then \ --from repo=copr:copr.fedorainfracloud.org:gloriouseggroll:nvidia-explicit-sync \ egl-wayland \ || true && \ - rm /etc/yum.repos.d/_copr_gloriouseggroll-nvidia-explicit-sync.repo + rm /etc/yum.repos.d/_copr_gloriouseggroll-nvidia-explicit-sync.repo \ ; fi COPY usr /usr