patches/gcc/2.95.3/160-gcc-2.95.3-trap-posix.patch
changeset 746 b150d6f590fc
parent 745 e445c00d134d
child 747 d3e603e7c17c
     1.1 --- a/patches/gcc/2.95.3/160-gcc-2.95.3-trap-posix.patch	Mon Jul 28 20:17:48 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,44 +0,0 @@
     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-2.95.3-orig/configure gcc-2.95.3/configure
    1.28 ---- gcc-2.95.3-orig/configure	1999-04-02 16:17:40.000000000 +0200
    1.29 -+++ gcc-2.95.3/configure	2005-04-20 18:25:45.030488235 +0200
    1.30 -@@ -687,7 +687,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 -f Makefile* ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos
    1.37 - 	# Execute the final clean-up actions
    1.38 - 	${config_shell} skip-this-dir
    1.39 -@@ -1599,7 +1599,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 -f ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos
    1.43 --trap 0
    1.44 -+trap '' 0
    1.45 - 
    1.46 - exit 0
    1.47 -