bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: automake-1.11.1 test failure on Mac OS X 10.6


From: Ralf Wildenhues
Subject: Re: automake-1.11.1 test failure on Mac OS X 10.6
Date: Sun, 10 Jan 2010 19:55:47 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

Hello,

FWIW, I'd like to fix this bug before the next release (without
reintroducing any old bugs in this area), but I haven't looked
at it at all yet.

Cheers,
Ralf

* Peter O'Gorman wrote on Wed, Dec 09, 2009 at 06:36:31PM CET:
> Automake's instspc.test fails when prefix has a ^M in it, it becomes
> an r on darwin:
> 
>  /usr/bin/install -c -m 644  ../sub/nobase.h 
> '/Users/leodavis/autotools-new/automake-1.11/tests/instspc.dir/sub1/r-prefix/foo/sub'
> test   -f 
> '/Users/leodavis/autotools-new/automake-1.11/tests/instspc.dir/sub1/^M-prefix/foo/sub/nobase.h'
> make: *** [test-install-sep] Error 1
> + eval 'build_failures="$build_failures
> 
> 
> status.m4 has:
> ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
> if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
>   ac_cs_awk_cr='\r'
> else
>   ac_cs_awk_cr=$ac_cr
> fi
> 
> ac_cs_awk_cr seems to be getting set to '\r' - is this correct?
> 
> Then later:
> cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
> if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
>   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
> else
>   cat
> fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
>   || AC_MSG_ERROR([could not setup config files machinery])
> _ACEOF
> 
> The sed changes ^M to r:
> $ printf "a^Mb" | sed 's/^M/\r/'
> arb
> 
> It works with GNU sed:
> printf "a^Mb" | sed 's/^M/\r/' | hexdump
> 0000000 61 0d 62
> 0000003




reply via email to

[Prev in Thread] Current Thread [Next in Thread]