Skip to content

Commit

Permalink
fix(deck): Add mesa fixes from Bazzite
Browse files Browse the repository at this point in the history
  • Loading branch information
zelikos committed Dec 30, 2024
1 parent 0f2000c commit fcaccf8
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
19 changes: 19 additions & 0 deletions files/scripts/mesa-fix_1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

# Tell this script to exit if there are any errors.
# You should have this in every custom script, to ensure that your completed
# builds actually ran successfully without any errors!
set -oue pipefail

mkdir -p /tmp/mesa-fix64/dri
cp /usr/lib64/libgallium-*.so /tmp/mesa-fix64/
cp /usr/lib64/dri/kms_swrast_dri.so /tmp/mesa-fix64/dri/
cp /usr/lib64/dri/libdril_dri.so /tmp/mesa-fix64/dri/
cp /usr/lib64/dri/swrast_dri.so /tmp/mesa-fix64/dri/
cp /usr/lib64/dri/virtio_gpu_dri.so /tmp/mesa-fix64/dri/
mkdir -p /tmp/mesa-fix32/dri
cp /usr/lib/libgallium-*.so /tmp/mesa-fix32/
cp /usr/lib/dri/kms_swrast_dri.so /tmp/mesa-fix32/dri/
cp /usr/lib/dri/libdril_dri.so /tmp/mesa-fix32/dri/
cp /usr/lib/dri/swrast_dri.so /tmp/mesa-fix32/dri/
cp /usr/lib/dri/virtio_gpu_dri.so /tmp/mesa-fix32/dri/
4 changes: 4 additions & 0 deletions files/scripts/mesa-fix_2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rsync -a /tmp/mesa-fix64/ /usr/lib64/
rsync -a /tmp/mesa-fix32/ /usr/lib/
rm -rf /tmp/mesa-fix64
rm -rf /tmp/mesa-fix32
4 changes: 2 additions & 2 deletions files/scripts/steamos-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ mkdir -p /usr/share/gamescope-session-plus/
curl -Lo /usr/share/gamescope-session-plus/bootstrap_steam.tar.gz https://large-package-sources.nobaraproject.org/bootstrap_steam.tar.gz

# Finalizing
cp --no-dereference --preserve=links /usr/lib/libdrm.so.2 /usr/lib/libdrm.so && \
cp --no-dereference --preserve=links /usr/lib64/libdrm.so.2 /usr/lib64/libdrm.so && \
cp --no-dereference --preserve=links /usr/lib/libdrm.so.2 /usr/lib/libdrm.so
cp --no-dereference --preserve=links /usr/lib64/libdrm.so.2 /usr/lib64/libdrm.so
14 changes: 14 additions & 0 deletions recipes/gnome/zeliblue-deck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ modules:
- source: system_files/deck
destination: /

- type: rpm-ostree
repos:
- https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite-multilib/repo/fedora-%OS_VERSION%/kylegospo-bazzite-multilib-fedora-%OS_VERSION%.repo?arch=x86_64
install:
- mesa-dri-drivers.i686

- type: script
scripts:
- mesa-fix_1.sh

- type: rpm-ostree
replace:
- from-repo: https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite-multilib/repo/fedora-%OS_VERSION%/kylegospo-bazzite-multilib-fedora-%OS_VERSION%.repo?arch=x86_64
Expand All @@ -55,6 +65,10 @@ modules:
- bluez-libs
- xorg-x11-server-Xwayland

- type: script
scripts:
- mesa-fix_2.sh

- type: rpm-ostree
repos:
- https://copr.fedorainfracloud.org/coprs/ycollet/audinux/repo/fedora-%OS_VERSION%/ycollet-audinux-fedora-%OS_VERSION%.repo
Expand Down

0 comments on commit fcaccf8

Please sign in to comment.