[Reproducible-builds] [dh-python] 01/02: Ensure that Depends and the likes are written in a stable order
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Sep 19 15:47:41 UTC 2014
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.
commit a9cf7ae8a3a562bd4d91314cb6712542dbaa4ad6
Author: Jérémy Bobbio <lunar at debian.org>
Date: Sun Aug 24 20:47:50 2014 +0000
Ensure that Depends and the likes are written in a stable order
This is needed for reproducible builds.
---
...-Depends-and-the-likes-are-written-in-a-s.patch | 42 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 43 insertions(+)
diff --git a/debian/patches/0001-Ensure-that-Depends-and-the-likes-are-written-in-a-s.patch b/debian/patches/0001-Ensure-that-Depends-and-the-likes-are-written-in-a-s.patch
new file mode 100644
index 0000000..1fa3db2
--- /dev/null
+++ b/debian/patches/0001-Ensure-that-Depends-and-the-likes-are-written-in-a-s.patch
@@ -0,0 +1,42 @@
+From 8c892fde3d9009072f48cd5a6a8c9a19549b6480 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lunar at debian.org>
+Date: Sun, 24 Aug 2014 20:47:50 +0000
+Subject: [PATCH] Ensure that Depends and the likes are written in a stable
+ order
+
+This is needed for reproducible builds.
+---
+ dhpython/depends.py | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/dhpython/depends.py b/dhpython/depends.py
+index e406fb7..935ddc6 100644
+--- a/dhpython/depends.py
++++ b/dhpython/depends.py
+@@ -61,17 +61,17 @@ class Dependencies:
+ def export_to(self, dh):
+ """Fill in debhelper's substvars."""
+ prefix = PKG_PREFIX_MAP.get(self.impl, 'misc')
+- for i in self.depends:
++ for i in sorted(self.depends):
+ dh.addsubstvar(self.package, '{}:Depends'.format(prefix), i)
+- for i in self.recommends:
++ for i in sorted(self.recommends):
+ dh.addsubstvar(self.package, '{}:Recommends'.format(prefix), i)
+- for i in self.suggests:
++ for i in sorted(self.suggests):
+ dh.addsubstvar(self.package, '{}:Suggests'.format(prefix), i)
+- for i in self.enhances:
++ for i in sorted(self.enhances):
+ dh.addsubstvar(self.package, '{}:Enhances'.format(prefix), i)
+- for i in self.breaks:
++ for i in sorted(self.breaks):
+ dh.addsubstvar(self.package, '{}:Breaks'.format(prefix), i)
+- for i in self.rtscripts:
++ for i in sorted(self.rtscripts):
+ dh.add_rtupdate(self.package, i)
+
+ def __str__(self):
+--
+1.7.10.4
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5c51b5a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Ensure-that-Depends-and-the-likes-are-written-in-a-s.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dh-python.git
More information about the Reproducible-builds
mailing list