Source: pyparted Version: 3.10.7-2 Severity: wishlist Tags: patch upstream User: reproducible-bui...@lists.alioth.debian.org Usertags: fileordering X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that pyparted could not be built reproducibly. It collects source files without sorting, which leads to a non-deterministic linking order. The attached patch fixes this by sorting the globbed file list. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch new file mode 100644 index 0000000..d09182c --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,11 @@ +--- a/setup.py ++++ b/setup.py +@@ -73,7 +73,7 @@ + packages=['parted'], + package_dir={'parted': 'src/parted'}, + ext_modules=[Extension('_ped', +- glob.glob(os.path.join('src', '*.c')), ++ sorted(glob.glob(os.path.join('src', '*.c'))), + define_macros=features, + **pkgconfig('libparted', + include_dirs=['include'])) diff --git a/debian/patches/series b/debian/patches/series index 74ae2f7..86cd2a1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ no-last-flag-check.patch +reproducible-build.patch
signature.asc
Description: Digital signature