Skip to content

Commit

Permalink
Don't load swrast_dri.so, it's breaking(?) some driver/distro combina…
Browse files Browse the repository at this point in the history
…tions and

may not actually help.
  • Loading branch information
lordofhyphens committed Jan 6, 2019
1 parent b84be0d commit f18c340
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions package/linux/appimage-apprun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,20 @@ if [ -e "./optional/libgcc/libgcc_s.so.1" ]; then
fi
fi

if [ -e "./optional/swrast_dri/swrast_dri.so" ]; then
lib="$(PATH="/sbin:$PATH" ldconfig -p | grep "swrast_dri\.so\ ($libc6arch)" | awk 'NR==1{print $NF}')"
sym_sys=$(tr '\0' '\n' < "$lib" | grep -e '^GCC_[0-9]\\.[0-9]' | tail -n1)
sym_app=$(tr '\0' '\n' < "./optional/swrast_dri/swrast_dri.so" | grep -e '^GCC_[0-9]\\.[0-9]' | tail -n1)
if [ "$(printf "${sym_sys}\n${sym_app}"| sort -V | tail -1)" != "$sym_sys" ]; then
swrastpath="./optional/swrast_dri:"
fi
fi
# Don't load swrast_dir for now, it is breaking new systems and this mechanism doesn't
# work for detecting whether or not it is necessary.
# if [ -e "./optional/swrast_dri/swrast_dri.so" ]; then
# lib="$(PATH="/sbin:$PATH" ldconfig -p | grep "swrast_dri\.so ($libc6arch)" | awk 'NR==1{print $NF}')"
# if [ "$lib" == "" ]; then
# swrastpath=""
# else
# sym_sys=$(tr '\0' '\n' < "$lib" | grep -e '^GCC_[0-9]\\.[0-9]' | tail -n1)
# sym_app=$(tr '\0' '\n' < "./optional/swrast_dri/swrast_dri.so" | grep -e '^GCC_[0-9]\\.[0-9]' | tail -n1)
# if [ "$(printf "${sym_sys}\n${sym_app}"| sort -V | tail -1)" != "$sym_sys" ]; then
# swrastpath="./optional/swrast_dri:"
# fi
# fi
# fi

if [ -n "$cxxpath" ] || [ -n "$gccpath" ] || [ -n "$swrastpath" ]; then
if [ -e "./optional/exec.so" ]; then
Expand Down

0 comments on commit f18c340

Please sign in to comment.