Skip to content

Commit

Permalink
Wine (x86): only install binary mesa package if older than mesa from apt
Browse files Browse the repository at this point in the history
binary builds are mesa 22.1.0 from the dev branch. Do not use them if the version installed from apt is greater than or equal to this version (like on debian bookworm+ and ubuntu jammy+)
  • Loading branch information
theofficialgman committed Jun 13, 2023
1 parent ff24b63 commit 351689a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/Wine (x86)/install-32
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ rm -rf "$PWD/wine-stuff"
git clone https://github.com/Botspot/wine-stuff || error "Failed to clone wine-stuff repository!"
sudo mv "$PWD/wine-stuff/icons" /opt/wine-${version}
sudo mv "$PWD/wine-stuff/Windows_10.msstyles" /opt/wine-${version}
if [ $(ldd --version | head -n1 | awk '{print $NF}' | sed 's/\..*//g') -ge 2 ] && [ "$(ldd --version | head -n1 | awk '{print $NF}' | sed 's/.*\.//g')" -ge 30 ];then
#only install mesa if glibc is 2.30 or greater
if [ $(ldd --version | head -n1 | awk '{print $NF}' | sed 's/\..*//g') -ge 2 ] && [ "$(ldd --version | head -n1 | awk '{print $NF}' | sed 's/.*\.//g')" -ge 30 ] && ! package_is_new_enough libgl1-mesa-dri 22.1.0 ;then
#only install mesa if glibc is 2.30 or greater and apt mesa version is less than 22.1.0 (which is the version of the binary builds)
sudo mv "$PWD/wine-stuff/mesa" /opt/wine-${version}
fi
rm -rf "$PWD/wine-stuff"
Expand Down

0 comments on commit 351689a

Please sign in to comment.