Source: elfutils Version: 0.152-1 Severity: important Justification: future ftbfs Tags: upstream patch
Hi, As bug#582952 explains, as soon as dash stops pretending not to know how to set the $LINENO variable, autoconf will stop rejecting it and falling back to bash, provoking some build failures with non-portable configure scripts. Alas. In elfutils, the symptoms look like this: | checking for xgettext... /usr/bin/xgettext | checking for msgmerge... /usr/bin/msgmerge | ./configure: 4892: ./configure: Bad substitution | make: *** [config.status] Error 2 It's possible to test using dash 0.5.7-2~exp1 or by setting CONFIG_SHELL=/bin/dash directly. How about this patch (+ an "autoreconf -f")? --- configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b68f543f..f8f23e54 100644 --- a/configure.ac +++ b/configure.ac @@ -248,7 +248,7 @@ AC_SUBST([eu_version]) # 1.234<whatever> -> 1234<whatever> case "$PACKAGE_VERSION" in -[[0-9]].*) eu_version="${PACKAGE_VERSION/./}" ;; +[[0-9]].*) eu_version="${PACKAGE_VERSION%%.*}${PACKAGE_VERSION#*.}" ;; *) AC_MSG_ERROR([confused by version number '$PACKAGE_VERSION']) ;; esac case "$eu_version" in @@ -277,6 +277,6 @@ case "$eu_version" in esac # Round up to the next release API (x.y) version. -[eu_version=$[($eu_version + 999) / 1000]] +[eu_version=$((($eu_version + 999) / 1000))] AC_OUTPUT -- 1.7.8.rc0 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org