Bug#582037: idjc: FTBFS error: ffmpeg/avcodec.h: No such file or directory

Reinhard Tartler siretart at tauware.de
Tue May 18 08:35:46 UTC 2010


On Tue, May 18, 2010 at 10:28:49 (CEST), Fabian Greffrath wrote:

> Seems to be a race condition in the check for the legacy avcodec include
> file location. Please try the patch attached (which also fixes a bashism
> BTW).

--- idjc-0.8.2.orig/configure.in
+++ idjc-0.8.2/configure.in
@@ -48,8 +48,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
-            if test $? -eq 0 ; then
+            if $(gcc `pkg-config --cflags libavcodec` ffmpeg_avcodec.c -o /dev/null > /dev/null 2> /dev/null) ; then
                 AC_MSG_RESULT([yes])
                 AC_DEFINE(FFMPEG_AVCODEC, 1, [if set use legacy include file location])
             else

I don't understand the race here. What is running in paralell to the
configure script here?

In squeeze and later, this check must always fail. To fix this bug, this
check should be either forcefully disabled or fixed.

Can someone please show this issue upstream?

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4





More information about the pkg-multimedia-maintainers mailing list