nvidia-x11: 358.16 -> 361.42
This fixes the segfault reported in #13942 caused by missing libEGL.so.0 and libEGL_nvidia.so.0 symlinks.
This commit is contained in:
@@ -34,6 +34,8 @@ installPhase() {
|
||||
cp -prd *.so.* tls "$out/lib/"
|
||||
rm "$out"/lib/lib{glx,nvidia-wfb}.so.* # handled separately
|
||||
|
||||
rm $out/lib/libGL.so.1.* # GLVND
|
||||
|
||||
if test -z "$libsOnly"; then
|
||||
# Install the X drivers.
|
||||
mkdir -p $out/lib/xorg/modules
|
||||
@@ -60,16 +62,18 @@ installPhase() {
|
||||
|
||||
libname_short=`echo -n "$libname" | sed 's/so\..*/so/'`
|
||||
|
||||
# nvidia's EGL stack seems to expect libGLESv2.so.2 to be available
|
||||
if [ $(basename "$libname_short") == "libGLESv2.so" ]; then
|
||||
ln -srnf "$libname" "$libname_short.2"
|
||||
fi
|
||||
|
||||
if [[ "$libname" != "$libname_short" ]]; then
|
||||
ln -srnf "$libname" "$libname_short"
|
||||
fi
|
||||
if [[ "$libname" != "$libname_short.1" ]]; then
|
||||
ln -srnf "$libname" "$libname_short.1"
|
||||
|
||||
if [[ $libname_short =~ libEGL.so || $libname_short =~ libEGL_nvidia.so ]]; then
|
||||
major=0
|
||||
else
|
||||
major=1
|
||||
fi
|
||||
|
||||
if [[ "$libname" != "$libname_short.$major" ]]; then
|
||||
ln -srnf "$libname" "$libname_short.$major"
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -119,9 +123,6 @@ installPhase() {
|
||||
# For simplicity and dependency reduction, don't support the gtk3 interface.
|
||||
rm $out/lib/libnvidia-gtk3.*
|
||||
|
||||
# We distribute these separately in `libvdpau`
|
||||
rm "$out"/lib/libvdpau{.*,_trace.*}
|
||||
|
||||
# Move VDPAU libraries to their place
|
||||
mkdir "$out"/lib/vdpau
|
||||
mv "$out"/lib/libvdpau* "$out"/lib/vdpau
|
||||
|
||||
Reference in New Issue
Block a user