Source: funguloids
Version: 1.06-12
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that funguloids could not be built reproducibly.
When the gamedata archive is created, the order of elements differs,
because they are sorted differently depending on the locale.

The attached patch fixes this by using the C locale for sorting.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 2db4149..bc34576 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ override_dh_auto_configure:
 		cp bin/bootstrap.mpk bin/bootstrap.mpk.orig ; \
 		./debian/mpak.py -e -f bin/bootstrap.mpk  -p _bootstrap ; \
 		sed -ri '/^[A-Z]/ s/(.*)/overlay \1/' _bootstrap/*.overlay ; \
-		./debian/mpak.py -c -f bin/bootstrap.mpk  _bootstrap/* ; \
+		./debian/mpak.py -c -f bin/bootstrap.mpk $$(LC_ALL=C ls _bootstrap/*) ; \
 		rm -rf _bootstrap ; \
 	fi
 	
@@ -33,7 +33,7 @@ override_dh_auto_configure:
 		sed -ri '/^[A-Z]/ s/(.*)/overlay \1/' _gamedata/*.overlay ; \
 		sed -ri '/^[A-Z]/ s/(.*)/particle_system \1/' _gamedata/*.particle ; \
 		sed -ri 's/^(\t\t\t)(texture_unit) 1/\1\2\n\1{\n\1}\n\1\2/' _gamedata/materials.material ; \
-		./debian/mpak.py -c -f bin/funguloids.mpk _gamedata/* ; \
+		./debian/mpak.py -c -f bin/funguloids.mpk $$(LC_ALL=C ls _gamedata/*) ; \
 		rm -rf _gamedata ; \
 	fi
 
_______________________________________________
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