tags 647350 + fixed-upstream
thanks

On Tue, Nov 01, 2011 at 09:09:27PM -0500, Jonathan Nieder wrote:
> 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.

This has been commited already in git upstream:
diff --git a/ChangeLog b/ChangeLog
index de76d32..b7b0c15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-10-08  Roland McGrath  <rol...@hack.frob.com>
+
+       * configure.ac (eu_version): Use sed instead of ${x/y/z} syntax.
+       Use POSIX.2 $((...)) syntax instead of $[...].
+       Reported by Mike Frysinger <vap...@gentoo.org>.
+
 2011-10-08  Mike Frysinger  <vap...@gentoo.org>

        * configure.ac: Fix use of AC_ARG_ENABLE to handle $enableval correctly.
diff --git a/configure.ac b/configure.ac
index cf3f6d6..826e644 100644
--- a/configure.ac
+++ b/configure.ac
@@ -255,7 +255,7 @@ AC_SUBST([eu_version])

 # 1.234<whatever> -> 1234<whatever>
 case "$PACKAGE_VERSION" in
-[[0-9]].*) eu_version="${PACKAGE_VERSION/./}" ;;
+[[0-9]].*) eu_version=`echo "$PACKAGE_VERSION" | sed 's@\.@@'` ;;
 *)                AC_MSG_ERROR([confused by version number 
'$PACKAGE_VERSION']) ;;
 esac
 case "$eu_version" in
@@ -284,6 +284,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


Kurt




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to