Bug#851809: mono: please make the output of dh_makeclilibs reproducible
Chris Lamb
lamby at debian.org
Wed Jan 18 22:53:37 UTC 2017
Source: mono
Version: 4.6.2.7+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness toolchain
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that dh_makeclilibs generates "clilibs" files with a non-deterministic
order.
This affects packages such as gtk-sharp-beans. For example:
│ -gtk-sharp-beans 2.14.0.0__97a95fb57b03c03a libgtk-sharp-beans-cil
│ gio-sharp 2.14.0.0__35e10195dab3c99f libgtk-sharp-beans-cil
│ +gtk-sharp-beans 2.14.0.0__97a95fb57b03c03a libgtk-sharp-beans-cil
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
diff --git a/debian/dh_makeclilibs b/debian/dh_makeclilibs
index 976fd75..17cfa88 100755
--- a/debian/dh_makeclilibs
+++ b/debian/dh_makeclilibs
@@ -297,6 +297,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (-e "$tmp/DEBIAN/clilibs") {
doit("chmod", 644, "$tmp/DEBIAN/clilibs");
doit("chown", "0:0", "$tmp/DEBIAN/clilibs");
+ complex_doit("LC_ALL=C sort $tmp/DEBIAN/clilibs -o $tmp/DEBIAN/clilibs");
}
}
More information about the Reproducible-bugs
mailing list