Source: p4vasp
Version: 0.3.29+dfsg-1
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 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 <rei...@reiner-h.de>
+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")

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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