[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
automake-1.11.1 test failure on Mac OS X 10.6
From: |
Peter O'Gorman |
Subject: |
automake-1.11.1 test failure on Mac OS X 10.6 |
Date: |
Wed, 09 Dec 2009 11:36:31 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 |
Hi,
Yes this is the right list :)
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
Peter
--
Peter O'Gorman
http://pogma.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- automake-1.11.1 test failure on Mac OS X 10.6,
Peter O'Gorman <=