Signed-off-by: Justin Lecher <j...@gentoo.org>
---
 eclass/virtualx.eclass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
index 78f5429..3df3fe1 100644
--- a/eclass/virtualx.eclass
+++ b/eclass/virtualx.eclass
@@ -92,9 +92,10 @@ virtualmake() {
        local i=0
        local retval=0
        local OLD_SANDBOX_ON="${SANDBOX_ON}"
-       local XVFB=$(type -p Xvfb)
-       local XHOST=$(type -p xhost)
+       local XVFB XHOST XDISPLAY
        local xvfbargs="-screen 0 1280x1024x24"
+       XVFB=$(type -p Xvfb) || die
+       XHOST=$(type -p xhost) || die
 
        # backcompat for maketype
        if [[ -n ${maketype} ]]; then
-- 
2.6.3


Reply via email to