abi: force TERM=none in abi generation
authorAndrew Tridgell <tridge@samba.org>
Tue, 11 Jan 2011 05:00:26 +0000 (16:00 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 11 Jan 2011 05:48:56 +0000 (06:48 +0100)
on Fedora12 gdb puts out a bit of binary garbage at the front of
script output when TERM=xterm, presumably trying something like a
clear screen.

luckily it doesn't do it for unknown terminal types

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Jan 11 06:48:56 CET 2011 on sn-devel-104

buildtools/scripts/abi_gen.sh

index d563fb85333a74e54043329bde58864dedaf3e52..ed6f445519ed7118a06f49585a7fdee5f084534e 100755 (executable)
@@ -16,5 +16,6 @@ nm "$SHAREDLIB" | cut -d' ' -f2- | egrep '^[BDGTRVWS]' | grep -v @ | cut -c3- |
 done
 ) > $GDBSCRIPT
 
-gdb -batch -x $GDBSCRIPT "$SHAREDLIB" < /dev/null
+# forcing the terminal avoids a problem on Fedora12
+TERM=none gdb -batch -x $GDBSCRIPT "$SHAREDLIB" < /dev/null
 rm -f $GDBSCRIPT