[packages/iceweasel] - randomize display

arekm arekm at pld-linux.org
Mon May 18 21:43:42 CEST 2015


commit a2ee0328fd28059e6e679c37fcc3925abd7458a6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon May 18 21:43:31 2015 +0200

    - randomize display

 iceweasel.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/iceweasel.spec b/iceweasel.spec
index 4db5d5a..ace815f 100644
--- a/iceweasel.spec
+++ b/iceweasel.spec
@@ -325,10 +325,11 @@ ac_add_options --with-x
 EOF
 
 %if %{with pgo}
-/usr/bin/Xvfb :100 &
+D=$(( RANDOM % (200 - 100 + 1 ) + 5 ))
+/usr/bin/Xvfb :${D} &
 XVFB_PID=$!
 [ -n "$XVFB_PID" ] || exit 1
-export DISPLAY=:100
+export DISPLAY=:${D}
 %{__make} -j1 -f client.mk profiledbuild \
 	DESTDIR=obj-%{_target_cpu}/dist \
 	CC="%{__cc}" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iceweasel.git/commitdiff/a2ee0328fd28059e6e679c37fcc3925abd7458a6



More information about the pld-cvs-commit mailing list