Source: strace
Version: 4.11-1
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 strace could not be built reproducibly.
The script generate_sen.sh sorts the entries in a locale dependent
order.

The attached patch fixes this by sorting with the locale set to C.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..89074bf
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,10 @@
+--- a/generate_sen.sh
++++ b/generate_sen.sh
+@@ -3,6 +3,6 @@
+ echo 'enum {'
+ echo 'SEN_printargs = 0,'
+     sed -n '/printargs/! s/.*SEN(\([^)]*\)).*/\1/p' |
+-    sort -u |
++    LC_ALL=C sort -u |
+     sed 's/.*/SEN_&,/'
+ echo '};'
diff --git a/debian/patches/series b/debian/patches/series
index f801e6f..0304aba 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 times32.patch
+reproducible_build.patch

Attachment: signature.asc
Description: PGP 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