Source: mozilla-devscripts
Version: 0.42
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: fileordering toolchain
X-Debbugs-Cc: [email protected]
Hi!
While working on the "reproducible builds" effort [1], we have noticed
that mozilla-devscripts embeds file lists in undeterministic readdir
order into .js files.
The attached patch fixes this by sorting the list of files.
Regards,
Reiner
[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/install-xpi b/install-xpi
index 4e7c674..aba8773 100755
--- a/install-xpi
+++ b/install-xpi
@@ -131,7 +131,7 @@ def install_xpi(script_name, package, xpi_file, exclude, install_dir, links,
(script_name, xpi_file), file=sys.stderr)
sys.exit(XPI_FILE_DOES_NOT_EXISTS)
zfobj = zipfile.ZipFile(xpi_file)
- xpi_content = zfobj.namelist()
+ xpi_content = sorted(zfobj.namelist())
# determine installation directory
if get_arch(package, debian_directory) == "all":