Skip to content

Commit

Permalink
mesa-vpu: use mesa from debian bookworm-backports
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate authored and igorpecovnik committed Oct 9, 2024
1 parent 067dd99 commit cd4b4e8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions extensions/mesa-vpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ function post_install_kernel_debs__3d() {

pkgs+=("chromium")
fi
elif [[ "${DISTRIBUTION}" == "Debian" && "${RELEASE}" == "bookworm" ]]; then

display_alert "Adding mesa backport repo for ${RELEASE} from OBS" "${EXTENSION}" "info"
echo 'deb http://download.opensuse.org/repositories/home:/amazingfate:/mesa-bookworm-backport/Debian_12/ /' | tee "${SDCARD}"/etc/apt/sources.list.d/home:amazingfate:mesa-bookworm-backport.list
curl -fsSL https://download.opensuse.org/repositories/home:amazingfate:mesa-bookworm-backport/Debian_12/Release.key | gpg --dearmor | tee "${SDCARD}"/etc/apt/trusted.gpg.d/home_amazingfate_mesa-bookworm-backport.gpg > /dev/null

fi

if [[ "${BUILD_DESKTOP}" == "yes" ]]; then # if desktop, add amazingfated's multimedia PPAs and rockchip-multimedia-config utility, chromium, gstreamer, etc
Expand Down Expand Up @@ -160,7 +154,11 @@ function post_install_kernel_debs__3d() {
fi

display_alert "Installing 3D extension packages" "${EXTENSION}" "info"
do_with_retries 3 chroot_sdcard_apt_get_install "${pkgs[@]}"
if [[ "${DISTRIBUTION}" == "Debian" && "${RELEASE}" == "bookworm" ]]; then
do_with_retries 3 chroot_sdcard_apt_get_install -t bookworm-backports "${pkgs[@]}"
else
do_with_retries 3 chroot_sdcard_apt_get_install "${pkgs[@]}"
fi

# This library gets downgraded
if [[ "${BUILD_DESKTOP}" == "yes" ]]; then
Expand Down

0 comments on commit cd4b4e8

Please sign in to comment.