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:
Eelco Dolstra
2016-04-06 15:53:14 +02:00
parent 77103edec2
commit 59ef7d25c3
2 changed files with 14 additions and 13 deletions
+11 -10
View File
@@ -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