Source: mono Version: 4.6.2.7+dfsg-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: randomness toolchain X-Debbugs-Cc: reproducible-b...@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 `. `'` la...@debian.org / chris-lamb.co.uk `-
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"); } }