Source: libcorelinux
Version: 0.4.32-7.4
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: fileordering
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that libcorelinux could not be built reproducibly.
It generates an example Makefile which contains unsorted sections.

The attached patch fixes this by sorting the lists of files.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/genmake.pl b/debian/genmake.pl
index d041bf9..a5ee9b9 100644
--- a/debian/genmake.pl
+++ b/debian/genmake.pl
@@ -61,6 +61,8 @@ sub genrule {
     }
 }
 find(\&genrule, @ARGV);
+@binaries = sort @binaries;
+@objects = sort @objects;
 
 open(M, "> @ARGV/Makefile");
 print M "# do not change this file, automatically generated by genmake.pl\n";
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to