From b9ec4d1a679f1485c9c109969e891269627d9f7f Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Tue, 13 Aug 2013 02:10:01 -0400 Subject: Prevent *.pyo and *.pyc multilib problems Differences in the python byte code fails in a build validation (rpmdiff) done on difference architecture of the same package. This patch: 1) Ensures that timestamps of generated *.pyo and *.pyc files match 2) Python integer literals greater or equal 2^32 and lower than 2^64 are converted to long right away to prevent different type of the integer on architectures with different size of int https://fedorahosted.org/freeipa/ticket/3858 --- ipalib/plugins/trust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/plugins') diff --git a/ipalib/plugins/trust.py b/ipalib/plugins/trust.py index 8790dcd2..6c7ea560 100644 --- a/ipalib/plugins/trust.py +++ b/ipalib/plugins/trust.py @@ -561,7 +561,7 @@ sides. base_id = DEFAULT_RANGE_SIZE + ( pysss_murmur.murmurhash3( dom_sid, - len(dom_sid), 0xdeadbeef + len(dom_sid), 0xdeadbeefL ) % 10000 ) * DEFAULT_RANGE_SIZE -- cgit