Your message dated Tue, 02 Aug 2016 04:19:56 +0000
with message-id <[email protected]>
and subject line Bug#806493: fixed in cython 0.24.1-1
has caused the Debian Bug report #806493,
regarding cython: please make the output reproducible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
806493: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806493
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: cython
Version: 0.23.2+git16-ga8fbae1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness toolchain
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the "reproducible builds" effort [0], we noticed that
cython generates output that is not reproducible.
The attached patch removes non-deterministic dict ordering from the
output. Once applied, some packages that use cython can be built
reproducibly using our reproducible toolchain (eg. astroscrappy).
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py
index 3772daf..ae40cd5 100644
--- a/Cython/Compiler/Nodes.py
+++ b/Cython/Compiler/Nodes.py
@@ -7817,7 +7817,8 @@ class ParallelStatNode(StatNode, ParallelNode):
def initialize_privates_to_nan(self, code, exclude=None):
first = True
- for entry, (op, lastprivate) in self.privates.items():
+ for entry, (op, lastprivate) in sorted(self.privates.items(),
+ key=lambda x: x[0].cname):
if not op and (not exclude or entry != exclude):
invalid_value = entry.type.invalid_value()
@@ -8079,7 +8080,8 @@ class ParallelStatNode(StatNode, ParallelNode):
c = self.begin_of_parallel_control_block_point
temp_count = 0
- for entry, (op, lastprivate) in self.privates.items():
+ for entry, (op, lastprivate) in sorted(self.privates.items(),
+ key=lambda x: x[0].cname):
if not lastprivate or entry.type.is_pyobject:
continue
@@ -8608,7 +8610,8 @@ class ParallelRangeNode(ParallelStatNode):
code.putln("#ifdef _OPENMP")
code.put("#pragma omp for")
- for entry, (op, lastprivate) in self.privates.items():
+ for entry, (op, lastprivate) in sorted(self.privates.items(),
+ key=lambda x: x[0].cname):
# Don't declare the index variable as a reduction
if op and op in "+*-&^|" and entry != self.target.entry:
if entry.type.is_pyobject:
--- End Message ---
--- Begin Message ---
Source: cython
Source-Version: 0.24.1-1
We believe that the bug you reported is fixed in the latest version of
cython, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Yaroslav Halchenko <[email protected]> (supplier of updated cython package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 01 Aug 2016 18:21:43 -0400
Source: cython
Binary: cython cython-dbg cython3 cython3-dbg cython-doc
Architecture: source amd64 all
Version: 0.24.1-1
Distribution: unstable
Urgency: medium
Maintainer: Python Applications Packaging Team
<[email protected]>
Changed-By: Yaroslav Halchenko <[email protected]>
Description:
cython - C-Extensions for Python
cython-dbg - C-Extensions for Python - debug build
cython-doc - C-Extensions for Python - documentation
cython3 - C-Extensions for Python 3
cython3-dbg - C-Extensions for Python 3 - debug build
Closes: 806493 820183 830645
Changes:
cython (0.24.1-1) unstable; urgency=medium
.
[ Alexis Bienvenüe <[email protected]> ]
* Fix copyright year in documentation for reproducible build
(Closes: #820183)
.
[ Yaroslav Halchenko ]
* Fresh upstream release (Closes: #830645)
- addresses additional reproducible build issues (Closes: #806493)
please open NEW bugreport if additional issues persist
* debian/watch
- monitor pypi for release tarballs
Checksums-Sha1:
615999bb02bea34e5d26f2570db2bcc7812c4bad 2337 cython_0.24.1-1.dsc
a837efb73c195585ce6e27cf53e3587285ccd39f 1703756 cython_0.24.1.orig.tar.gz
44af2fc6a6a634f22f9d5901cf9c87ae0de5b0d8 23020 cython_0.24.1-1.debian.tar.xz
9a9b7f285713d58a021ec6b5824069987fde9a29 3916254 cython-dbg_0.24.1-1_amd64.deb
b6bef786310b25f8843e905603b41fb0bb1caab3 443104 cython-doc_0.24.1-1_all.deb
f71b18904b84dc4aace66109f2b65e0a07d0767e 6364058 cython3-dbg_0.24.1-1_amd64.deb
9130ba488b0384e840ee833141e62f1dd2af70f7 1766558 cython3_0.24.1-1_amd64.deb
bf24c6192c0021fac895f3d7ba51357a62eae2ef 1751766 cython_0.24.1-1_amd64.deb
Checksums-Sha256:
44de613896c6862c73c7cafaaab4834f5d334a56c726acfd36c940300e6212b3 2337
cython_0.24.1-1.dsc
84808fda00508757928e1feadcf41c9f78e9a9b7167b6649ab0933b76f75e7b9 1703756
cython_0.24.1.orig.tar.gz
73e2bd663e05e6b0704e188524e74a25d1742fcee81e7cde46e0a3bb91b7620a 23020
cython_0.24.1-1.debian.tar.xz
09e12a0e04839841894c77698c8f8773bcc5ce3c6d9ad75cbefd50dda9854992 3916254
cython-dbg_0.24.1-1_amd64.deb
95c3ec0304b29f21c7cc6ed6dec0832870e05bb0af5336268d779089dc64358f 443104
cython-doc_0.24.1-1_all.deb
9870b49da0d80b045f6d1370017b68e6622f0e38f0e40b9046ae57ab7f6be1c6 6364058
cython3-dbg_0.24.1-1_amd64.deb
d5bf18d8f6bbaa8b925490da2b4129dd6e7c13a021efaae1b954f6df3bb36340 1766558
cython3_0.24.1-1_amd64.deb
2cd60291d651f9e35a7e26c7f87db30099bd4882131b6fe3764d77764cd0a83c 1751766
cython_0.24.1-1_amd64.deb
Files:
70032bb8e05f31e40095103441a18d02 2337 python optional cython_0.24.1-1.dsc
890b494a12951f1d6228c416a5789554 1703756 python optional
cython_0.24.1.orig.tar.gz
c5358882d2e69ea82b5d8982e7c85cd1 23020 python optional
cython_0.24.1-1.debian.tar.xz
92f40d64767af2c9466408136d1dfed9 3916254 debug extra
cython-dbg_0.24.1-1_amd64.deb
4f23df728b674eee0f5074bed0e8bcbd 443104 doc optional
cython-doc_0.24.1-1_all.deb
9a79c5910701348657e34580a6fa0216 6364058 debug extra
cython3-dbg_0.24.1-1_amd64.deb
46280c32ef16b669897fb58bfa4945ad 1766558 python optional
cython3_0.24.1-1_amd64.deb
98542f333463809dc96e6a17089d5ae9 1751766 python optional
cython_0.24.1-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJXoA3MAAoJEKLeI1Bi2jP6wZ0QALgKP4MbSiSMBzSPK5bqNfcu
8fVqPdss0W3cZ/23+Jycsa0W9wiz84+Cj6WyYqSy/HEuNAYQNAt09CHZX2r/R7nO
GNbOuCJ9r92vAZabiUk0whTg7SC3YRnJcW0okIbKxUthjr9SJy/fGBeEMFDQqNTi
BUVXjSUJaQzO6PpLdnKdmLcpTR377c1hfx/UWhaw74L8a0RULM6Mi/F8/GxT4Xdc
QDcuxNHC+fMNywmu8HI9ZLRexYRtazJON5mBh6SwaP7I6mQU2XyepMLlI9K5dPQf
mTm9AI3BJTbg/HwhVgXmDaO1105AU4oEheRyL9P7oxZvlA/0yrvU8LrP4rococmR
Sh7XdcAuUTrJ9k2U4zsxnkPUkFIPdOHEsFtnMR0dDHBXpy4lVtEH2TebaEUcZmRk
2paIUYzZ1Vf9zPzf1FN9a555kb4SmgRl9xDhIshUY2Rwmk7m6v3vnk4hujR0zlGM
tvhxPyKzUofoOP6lvLW+r/1BsPhAB87vVi5ohDCEh+wHFIytwx6cjbYtd4bZoTCT
30w+vx2h5mf05HRgrB1D3GxiSmYR1vNCZ+zbO7UEH5ghtB5rcwT4LFodywgY76wx
bM54H8qF/R3AMMzFLSZUP6E5iSyyXEcUrX+DYiEQe4SSw9rbqd0IOLs1ljVpLLl0
SG6q+VZDHudNpfumMRXN
=GcxP
-----END PGP SIGNATURE-----
--- End Message ---