[Reproducible-commits] [python-setuptools] 03/03: Output names in toplevel.txt with a stable order to make module builds reproducible.

Holger Levsen holger at moszumanska.debian.org
Mon Mar 23 10:14:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch pu/reproducible_builds
in repository python-setuptools.

commit f9821e86e4e3a62e9a59ed7dc6ee795aedc2acb8
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Mon Mar 23 11:10:29 2015 +0100

    Output names in toplevel.txt with a stable order to make module builds reproducible.
---
 debian/changelog                                    |  7 +++++++
 debian/patches/series                               |  1 +
 debian/patches/stable-order-for-toplevel-names.diff | 17 +++++++++++++++++
 3 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d83e0ee..a8bc25b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-setuptools (5.5.1-1.0~reproducible1) UNRELEASED; urgency=medium
+
+  * Output names in toplevel.txt with a stable order to make module
+    builds reproducible.
+
+ -- Jérémy Bobbio <lunar at debian.org>  Fri, 26 Dec 2014 11:32:13 +0100
+
 python-setuptools (5.5.1-1) unstable; urgency=medium
 
   * New upstream version. Closes: #754089.
diff --git a/debian/patches/series b/debian/patches/series
index 3c7dc33..0ce5c48 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 install-layout.diff
 multiarch-extname.diff
+stable-order-for-toplevel-names.diff
diff --git a/debian/patches/stable-order-for-toplevel-names.diff b/debian/patches/stable-order-for-toplevel-names.diff
new file mode 100644
index 0000000..def4303
--- /dev/null
+++ b/debian/patches/stable-order-for-toplevel-names.diff
@@ -0,0 +1,17 @@
+Description: Outpt top-level names in stable order
+ In order to make the build process of Python module reproducible, names in
+ toplevel.txt must be written in a stable order. Here we go for the simple
+ answer by sorting them.
+Author: Jérémy Bobbio <lunar at debian.org>
+
+--- python-setuptools-5.5.1.orig/setuptools/command/egg_info.py
++++ python-setuptools-5.5.1/setuptools/command/egg_info.py
+@@ -389,7 +389,7 @@ def write_toplevel_names(cmd, basename,
+             for k in cmd.distribution.iter_distribution_names()
+         ]
+     )
+-    cmd.write_file("top-level names", filename, '\n'.join(pkgs) + '\n')
++    cmd.write_file("top-level names", filename, '\n'.join(sorted(pkgs)) + '\n')
+ 
+ 
+ def overwrite_arg(cmd, basename, filename):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/python-setuptools.git



More information about the Reproducible-commits mailing list