Source: sprng Version: 2.0a-8 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: environment X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that sprng could not be built reproducibly. It uses a bashism while generating example files; echo -e doesn't work with other shells like dash, it will embed the -e in the output. The attached patch fixes this by using printf instead. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/bashism.patch b/debian/patches/bashism.patch new file mode 100644 index 0000000..72e6243 --- /dev/null +++ b/debian/patches/bashism.patch @@ -0,0 +1,16 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: echo -e works only with bash; use printf instead + +--- a/SRC/insertmenu ++++ b/SRC/insertmenu +@@ -7,9 +7,5 @@ + + if [ $s = "0" ] + then +- echo -e " $1 $2 --- $3 $4" >> $6 +-# on some systems use echo without '-e' +-# uncomment the next line +-# echo " $1 $2 --- $3 $4" >> $6 +- ++ printf " $1 $2 --- $3 $4" >> $6 + fi diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..a16e50b --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +bashism.patch
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds