[MPlayer-dev-eng] [PATCH] Unnecessary line in configure cause problems on a log-structured file system

pl p_l at gmx.fr
Thu May 9 00:28:33 CEST 2002


On Wed, May 08, 2002 at 11:00:34AM +0200, Bernd Ernesti wrote:

> please apply the follwoing patch to remove an unnecessary line in the configure
> script, which cause a build error on a NetBSD log-structured file system.
> 
> For more details see:
> 
> http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=16149
> 
> Checking for sys/soundcard.h ... ./configure: cannot create /usr/tmp/raid0/pkgsrc/graphics/mplayer/work/mplayer-conf--6371.o: text busy
> *** Error code 2

Indeed this line is here to avoid having a stale binary when we exit
from cc_check.

The '> "$TMPO"' should just truncate the no longer used binary. Don't
know why your system tells it's used (nonposix ?).


Does it works if you replace this line by a 'rm -f "$TMPO" ' ?


> Index: configure
> ===================================================================
> RCS file: /cvsroot/mplayer/main/configure,v
> retrieving revision 1.460
> diff -u -r1.460 configure
> --- configure	7 May 2002 21:51:40 -0000	1.460
> +++ configure	8 May 2002 08:52:58 -0000
> @@ -31,7 +31,6 @@
>    cat "$TMPC" >> "$TMPLOG"
>    echo >> "$TMPLOG"
>    echo "$_cc $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG"
> -  > "$TMPO"
>    ( "$_cc" $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1
>    TMP="$?"
>    echo >> "$TMPLOG"

-- 
Best regards,
  pl



More information about the MPlayer-dev-eng mailing list