[packages/redis] randomize port number so concurrent builds doesn't break

glen glen at pld-linux.org
Sat May 7 17:35:32 CEST 2016


commit f3aa83ebe69c808405be877ba4e316a1959d865a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat May 7 18:35:16 2016 +0300

    randomize port number so concurrent builds doesn't break

 redis.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/redis.spec b/redis.spec
index e9f2027..483ff3d 100644
--- a/redis.spec
+++ b/redis.spec
@@ -77,6 +77,10 @@ disk.
 %{__sed} -i -e '/    integration\/replication/d' tests/test_helper.tcl
 %{__sed} -i -e '/    unit\/memefficiency/d' tests/test_helper.tcl
 
+# randomize port number so concurrent builds doesn't break
+port=$((21110 + ${RANDOM:-$$} % 10))
+sed -i -e "s/set ::port 21111/set ::port $port/" tests/test_helper.tcl
+
 # use system jemalloc
 mv deps/jemalloc{,-local}
 install -d deps/jemalloc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/redis.git/commitdiff/f3aa83ebe69c808405be877ba4e316a1959d865a



More information about the pld-cvs-commit mailing list