summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/remove-SH_USE_BSD_ECHO-autoconf-test-to-make-build-more-reproducible.patch33
-rw-r--r--debian/patches/series1
2 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/remove-SH_USE_BSD_ECHO-autoconf-test-to-make-build-more-reproducible.patch b/debian/patches/remove-SH_USE_BSD_ECHO-autoconf-test-to-make-build-more-reproducible.patch
new file mode 100644
index 000000000..2e955fd4c
--- /dev/null
+++ b/debian/patches/remove-SH_USE_BSD_ECHO-autoconf-test-to-make-build-more-reproducible.patch
@@ -0,0 +1,33 @@
+Description: Remove SH_USE_BSD_ECHO autoconf test
+ It is unused; doesn't make sense in "build on one box, install on many"
+ context; and its presence causes the downstream packages that install
+ config.h to be non-reproducible.
+ .
+ See https://bugs.debian.org/849288 for a discussion of this issue.
+Author: Daniel Shahaf <danielsh@apache.org>
+Origin: http://www.zsh.org/mla/workers/2016/msg02716.html
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -2309,21 +2309,6 @@
+ if test x$zsh_cv_sys_fifo = xyes; then
+ AC_DEFINE(HAVE_FIFOS)
+ fi
+-dnl ---------------------
+-dnl echo style of /bin/sh
+-dnl ---------------------
+-AC_CACHE_CHECK(if echo in /bin/sh interprets escape sequences,
+-zsh_cv_prog_sh_echo_escape,
+-[if test "`/bin/sh -c \"echo '\\n'\"`" = "\\n"; then
+- zsh_cv_prog_sh_echo_escape=no
+-else
+- zsh_cv_prog_sh_echo_escape=yes
+-fi])
+-AH_TEMPLATE([SH_USE_BSD_ECHO],
+-[Define to 1 if /bin/sh does not interpret \ escape sequences.])
+-if test x$zsh_cv_prog_sh_echo_escape = xno; then
+- AC_DEFINE(SH_USE_BSD_ECHO)
+-fi
+
+ dnl -----------
+ dnl test for whether link() works
diff --git a/debian/patches/series b/debian/patches/series
index cb6fdacc2..6aec33eff 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
further-mitigate-test-suite-hangs.patch
update-debian-sections.patch
+remove-SH_USE_BSD_ECHO-autoconf-test-to-make-build-more-reproducible.patch