File primusrun-bsc1061561.diff of Package primus

diff -burNE primus-0+git20150328.d1afbf6.orig/primusrun primus-0+git20150328.d1afbf6/primusrun
--- primus-0+git20150328.d1afbf6.orig/primusrun	2017-10-06 08:41:13.479966047 +0200
+++ primus-0+git20150328.d1afbf6/primusrun	2017-10-06 08:41:28.083337367 +0200
@@ -2,31 +2,31 @@
 
 # Readback-display synchronization method
 # 0: no sync, 1: D lags behind one frame, 2: fully synced
-# export PRIMUS_SYNC=${PRIMUS_SYNC:-0}
+export PRIMUS_SYNC=${PRIMUS_SYNC:-0}
 
 # Verbosity level
 # 0: only errors, 1: warnings (default), 2: profiling
-# export PRIMUS_VERBOSE=${PRIMUS_VERBOSE:-1}
+export PRIMUS_VERBOSE=${PRIMUS_VERBOSE:-1}
 
 # Upload/display method
 # 0: autodetect, 1: textures, 2: PBO/glDrawPixels (needs Mesa-10.1+)
-# export PRIMUS_UPLOAD=${PRIMUS_UPLOAD:-0}
+export PRIMUS_UPLOAD=${PRIMUS_UPLOAD:-0}
 
 # Approximate sleep ratio in the readback thread, percent
-# export PRIMUS_SLEEP=${PRIMUS_SLEEP:-90}
+export PRIMUS_SLEEP=${PRIMUS_SLEEP:-90}
 
 # Secondary display
-# export PRIMUS_DISPLAY=${PRIMUS_DISPLAY:-:8}
+export PRIMUS_DISPLAY=${PRIMUS_DISPLAY:-:8}
 
 # "Accelerating" libGL
 # $LIB will be interpreted by the dynamic linker
-# export PRIMUS_libGLa=${PRIMUS_libGLa:-'/usr/$LIB/nvidia/libGL.so.1'}
+export PRIMUS_libGLa=${PRIMUS_libGLa:-'/usr/$LIB/nvidia/libGL.so.1'}
 
 # "Displaying" libGL
-# export PRIMUS_libGLd=${PRIMUS_libGLd:-'/usr/$LIB/libGL.so.1'}
+export PRIMUS_libGLd=${PRIMUS_libGLd:-'/usr/$LIB/libGL.so.1'}
 
 # Directory containing primus libGL
-PRIMUS_libGL=${PRIMUS_libGL:-$(dirname `readlink -ne $0`)/'$LIB'}
+PRIMUS_libGL=${PRIMUS_libGL:-'/usr/$LIB/primus'}
 
 # On some distributions, e.g. on Ubuntu, libnvidia-tls.so is not available
 # in default search paths.  Add its path manually after the primus library