Source: wmweather
Version: 0.12.21-8
Severity: wishlist
Tags: patch
Usertags: fileordering


While working on the "reproducible builds" effort [1], we have noticed
that wmweather could not be built reproducibly.
It creates the md5sums file in an unsorted order.

The attached patch fixes this.


diff --git a/debian/rules b/debian/rules
index e49331b..035f141 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,7 +61,7 @@ endif
 	install -d -p -m 0755 debian/wmweather/DEBIAN
 	install    -p -m 0644 debian/control debian/conffiles debian/wmweather/DEBIAN
 	install    -p -m 0755 debian/postinst debian/postrm debian/wmweather/DEBIAN
-	cd debian/wmweather && find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums
+	cd debian/wmweather && find usr -type f -print0 | LC_ALL=C sort -z | xargs -0 md5sum > DEBIAN/md5sums
 	dpkg-shlibdeps debian/wmweather/usr/bin/wmweather
 	dpkg-gencontrol -isp -pwmweather -Pdebian/wmweather

Attachment: signature.asc
Description: Digital signature

Reproducible-builds mailing list

Reply via email to