gitlab-ci: Set the prefix to ./install instead of the DESTDIR.
authorEric Anholt <eric@anholt.net>
Thu, 25 Jul 2019 18:02:34 +0000 (11:02 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 13 Aug 2019 17:30:01 +0000 (10:30 -0700)
If we don't set DESTDIR, then the DEFAULT_DRIVER_DIR built into the
libraries is correct and we don't need to use LIBGL_DRIVERS_PATH and
friends for CI usage.  Incidentally, this moves our installed paths
from /builds/anholt/mesa/install/usr/local/lib (for example) to
/builds/anholt/mesa/install/lib for simplicity.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
.gitlab-ci/meson-build.sh
.gitlab-ci/run-shader-db.sh

index d0df91fa3949988ba85c54629fa0de8335c46b93..42aed0e91c51974653a4a39f5f1c1b670c9e83bc 100755 (executable)
@@ -17,6 +17,7 @@ fi
 rm -rf _build
 meson _build --native-file=native.file \
       ${CROSS+--cross /cross_file-$CROSS.txt} \
+      -D prefix=`pwd`/install \
       -D libdir=lib \
       -D buildtype=debug \
       -D build-tests=true \
@@ -32,7 +33,7 @@ cd _build
 meson configure
 ninja -j4
 LC_ALL=C.UTF-8 ninja test
-DESTDIR=$PWD/../install ninja install
+ninja install
 cd ..
 
 if test -n "$MESON_SHADERDB"; then
index a6093e5d57bf910946d257c242218c2e509110fe..7580457d850fccdb62701ffe6d0b3c4ec57cb245 100755 (executable)
@@ -5,8 +5,8 @@ ARTIFACTSDIR=`pwd`/shader-db
 mkdir -p $ARTIFACTSDIR
 export DRM_SHIM_DEBUG=true
 
-LIBDIR=`pwd`/install/usr/local/lib
-export LIBGL_DRIVERS_PATH=$LIBDIR/dri
+LIBDIR=`pwd`/install/lib
+export LD_LIBRARY_PATH=$LIBDIR
 
 cd /usr/local/shader-db