1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gcc/3.2.3/gcc-3.2.3-trap-posix.patch Fri Jun 01 16:50:29 2007 +0000
1.3 @@ -0,0 +1,45 @@
1.4 +#
1.5 +# Submitted-By: Marc Kleine-Budde <mkl@pengutronix.de>, 2005-04-20
1.6 +#
1.7 +# Error:
1.8 +#
1.9 +# creating libintl.h
1.10 +# Configuring etc...
1.11 +# loading cache ../config.cache
1.12 +# checking for a BSD compatible install... (cached) /usr/bin/install -c
1.13 +# creating ./config.status
1.14 +# creating Makefile
1.15 +# trap: usage: trap [-lp] [[arg] signal_spec ...]
1.16 +#
1.17 +# Description:
1.18 +#
1.19 +# non-posix conform usage of trap causes bash >= 3.0 to fail
1.20 +#
1.21 +# e.g.: http://sourceware.org/ml/crossgcc/2004-12/msg00132.html
1.22 +#
1.23 +# Status:
1.24 +#
1.25 +# fixed in gcc >= 3.3.5
1.26 +# backport of gcc-3.3.5 fix
1.27 +#
1.28 +diff -ruN gcc-3.2.3-orig/configure gcc-3.2.3/configure
1.29 +--- gcc-3.2.3-orig/configure 2002-06-24 18:14:28.000000000 +0200
1.30 ++++ gcc-3.2.3/configure 2005-04-20 18:42:49.000000000 +0200
1.31 +@@ -697,7 +697,7 @@
1.32 + if test -f skip-this-dir; then
1.33 + # Perform the same cleanup as the trap handler, minus the "exit 1" of course,
1.34 + # and reset the trap handler.
1.35 +- trap 0
1.36 ++ trap '' 0
1.37 + rm -rf Makefile* ${tmpdir}
1.38 + # Execute the final clean-up actions
1.39 + ${config_shell} skip-this-dir
1.40 +@@ -1615,7 +1615,7 @@
1.41 + # Perform the same cleanup as the trap handler, minus the "exit 1" of course,
1.42 + # and reset the trap handler.
1.43 + rm -rf ${tmpdir}
1.44 +-trap 0
1.45 ++trap '' 0
1.46 +
1.47 + exit 0
1.48 +