Source: moblin-icon-theme Version: 0.10.0-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 moblin-icon-theme could not be built reproducibly. It iterates over an unsorted list of directories during build. The attached patch fixes this. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/create-icon-theme.sh b/create-icon-theme.sh
index 482c1e5..bf4dc08 100755
--- a/create-icon-theme.sh
+++ b/create-icon-theme.sh
@@ -36,7 +36,7 @@ echo -e "[Icon Theme]\nName=$THEME_NAME\nComment=$THEME_COMMENT\n" > index.theme
echo "Inherits=hicolor" >> index.theme
echo -n "Directories=" >> index.theme
-DIRS=`find * -type d | grep -v git | grep -v scalable | grep "/"`
+DIRS=`find * -type d | LC_ALL=C sort | grep -v git | grep -v scalable | grep "/"`
for foo in $DIRS
@@ -56,12 +56,12 @@ done
echo "Creating Makefiles"
-SIZES=$(find * -maxdepth 0 -type d -not -name 'scalable' -printf '%f ')
+SIZES=$(find * -maxdepth 0 -type d -not -name 'scalable' -printf '%f ' | LC_ALL=C sort)
MAKEFILES='Makefile\n'
for dir in $SIZES
do
- subdirs=$(find $dir/* -maxdepth 0 -type d -printf '%f ')
+ subdirs=$(find $dir/* -maxdepth 0 -type d -printf '%f ' | LC_ALL=C sort)
echo "SUBDIRS=$subdirs" > $dir/Makefile.am
MAKEFILES="$MAKEFILES\n$dir/Makefile"
for context in $subdirs
signature.asc
Description: Digital signature

