From 3ac431bf2675f23bad1b742cdee8dce0f249cc541f5e5a0dfa9b9b5e017bf01d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 24 Jan 2014 12:31:27 +0000 Subject: [PATCH] Select headless renderer OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/weston?expand=0&rev=26 --- weston.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/weston.spec b/weston.spec index 39f821e..d89b3a4 100644 --- a/weston.spec +++ b/weston.spec @@ -22,7 +22,7 @@ Version: 1.4.0 Release: 0 Summary: Wayland Reference Compositor License: HPND and CC-BY-SA-3.0 -Group: System/X11/Servers/XF86_5 +Group: System/X11/Servers Url: http://wayland.freedesktop.org/ #Git-Clone: git://anongit.freedesktop.org/wayland/weston @@ -120,11 +120,20 @@ rm -f "%buildroot/%_libdir"/*.la "%buildroot/%_libdir/weston"/*.la; %check ls -dl /proc/self || exit 0; -mkdir -pm go-rwx xdg; # Ignore exit code, because """the headless backend is not even in the 1.0 # stable series. It means it will be an option starting from 1.2 of stable # series.""" -XDG_RUNTIME_DIR="$PWD/xdg" make check || :; +# And the 1.4 tests don't use it :/ +export XDG_RUNTIME_DIR="$HOME/xdgrun" +export XDG_CONFIG_HOME="$HOME" +cat >"$XDG_CONFIG_HOME/weston.ini" <<-EOF + [core] + backend=headless-backend.so +EOF +mkdir -pm go-rwx "$XDG_RUNTIME_DIR" +if ! make check; then + cat tests/test-suite.log +fi %files %defattr(-,root,root)