Source: p4vasp Version: 0.3.29+dfsg-1 Severity: wishlist Tags: patch User: [email protected] Usertags: fileordering X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that p4vasp could not be built reproducibly. The file appletlist.py, which is generated during build, contains an unsorted list of modules. The attached patch fixes this by sorting the list before writing it. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/series b/debian/patches/series index c7b934d..6273ed2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ set-title-and-icon fix-generated-files fix-spelling-errors pass-hardening-flags +sort-applet-list diff --git a/debian/patches/sort-applet-list b/debian/patches/sort-applet-list new file mode 100644 index 0000000..ca4a370 --- /dev/null +++ b/debian/patches/sort-applet-list @@ -0,0 +1,16 @@ +Author: Reiner Herrmann <[email protected]> +Description: sort applet list to make build reproducible + +Index: p4vasp-0.3.29+dfsg/install/makeappletlist.py +=================================================================== +--- p4vasp-0.3.29+dfsg.orig/install/makeappletlist.py ++++ p4vasp-0.3.29+dfsg/install/makeappletlist.py +@@ -10,7 +10,7 @@ def applets(path): + l.append(s) + l.append(s) + modules.append(".".join(l)) +- return modules ++ return sorted(modules) + + f=open(join("..","lib","p4vasp","applet","appletlist.py"),"w") + f.write("def appletlist():\n")
signature.asc
Description: OpenPGP digital signature

