patches/gcc/3.3.1/gcc-3.3.1-trap-posix.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/3.3.1/gcc-3.3.1-trap-posix.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,44 @@
     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 +# e.g.: http://sourceware.org/ml/crossgcc/2004-12/msg00132.html
    1.21 +#
    1.22 +# Status:
    1.23 +#
    1.24 +# fixed in gcc >= 3.3.5
    1.25 +# backport of gcc-3.3.5 fix
    1.26 +#
    1.27 +diff -ruN gcc-3.3.1-orig/configure gcc-3.3.1/configure
    1.28 +--- gcc-3.3.1-orig/configure	2002-09-29 18:11:24.000000000 +0200
    1.29 ++++ gcc-3.3.1/configure	2005-04-20 18:49:20.223220401 +0200
    1.30 +@@ -697,7 +697,7 @@
    1.31 + if test -f skip-this-dir; then
    1.32 + 	# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
    1.33 + 	# and reset the trap handler.
    1.34 +-	trap 0
    1.35 ++	trap '' 0
    1.36 + 	rm -rf Makefile* ${tmpdir}
    1.37 + 	# Execute the final clean-up actions
    1.38 + 	${config_shell} skip-this-dir
    1.39 +@@ -1596,7 +1596,7 @@
    1.40 + # Perform the same cleanup as the trap handler, minus the "exit 1" of course,
    1.41 + # and reset the trap handler.
    1.42 + rm -rf ${tmpdir}
    1.43 +-trap 0
    1.44 ++trap '' 0
    1.45 + 
    1.46 + exit 0
    1.47 +