Bug#623799: idjc: ftbfs with CONFIG_SHELL=/bin/dash

Jonathan Nieder jrnieder at gmail.com
Sat Apr 23 06:31:42 UTC 2011


Source: idjc
Version: 0.8.5-1
Severity: important
Justification: future ftbfs
Tags: upstream patch

Hi again,

With dash in experimental as /bin/sh, this package fails to build from
source.  (Please forgive my laziness in omitting the corresponding
error message.)  The problem can also be experienced with dash from
sid by overriding autoconf's choice of shell:

	CONFIG_SHELL=/bin/dash debian/rules build

See http://bugs.debian.org/582952 for details.

The cause seems to be use of the ksh-invented &> operator in
configure.ac.  Shells like dash interpret it as a request to run in
the background (&) and redirect stdout (>); to redirect both stdout
and stderr one has to use the more precise ">/dev/null 2>&1", as in
the patch below.

With the changes below applied, the package builds again.  If there is
additional information that would be useful, please feel free to ask.

Regards,
Jonathan

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index d681377..828c019 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,7 +50,7 @@ if test $makeffmpeg != "no" ; then
             AC_SUBST(HAVE_AVCODEC, 1)
             
             AC_MSG_CHECKING([for avcodec.h in legacy ffmpeg directory])
-            gcc `pkg-config --cflags libavcodec` ffmpeg_avcodec.c -o /dev/null &> /dev/null
+            gcc `pkg-config --cflags libavcodec` ffmpeg_avcodec.c -o /dev/null >/dev/null 2>&1
             if test $? -eq 0 ; then
                 AC_MSG_RESULT([yes])
                 AC_DEFINE(FFMPEG_AVCODEC, 1, [if set use legacy include file location])
@@ -108,7 +108,7 @@ fi
 PKG_CHECK_MODULES([PYGTK], [pygtk-2.0 >= 2.6.0])
 
 AC_MSG_CHECKING([for mutagen])
-python -c "import mutagen" &>/dev/null
+python -c "import mutagen" >/dev/null 2>&1
 if test $? -ne 0 ; then
     AC_MSG_RESULT([no])
     AC_MSG_ERROR([required dependency (mutagen / python-mutagen) is missing])
-- 
1.7.5.rc3






More information about the pkg-multimedia-maintainers mailing list