source: clfs-sysroot/patches/gcc-4.3.2-posix-1.patch@ 08a9b81

Last change on this file since 08a9b81 was e1234d4, checked in by Joe Ciccone <jciccone@…>, 16 years ago

First round of patches changes.

  • Property mode set to 100644
File size: 15.0 KB
RevLine 
[e1234d4]1Submitted By: Joe Ciccone <jciccone@gmail.com>
2Date: 2008-08-24
[00520f6]3Initial Package Version: 4.1.2
4Origin: Jim Gifford
5 Rediffed against 4.1.0 by Chris Staub
6 Rediffed against 4.1.2 by Jim Gifford
[e1234d4]7 Rediffed and additions against 4.2.0 by Joe Ciccone
8 Rediffed against 4.3.0 by Joe Ciccone
[00520f6]9Upstream Status: On Hold
10Description: Makes GCC Posix Compliant
11
[e1234d4]12diff -Naur gcc-4.3.1.orig/contrib/patch_tester.sh gcc-4.3.1/contrib/patch_tester.sh
13--- gcc-4.3.1.orig/contrib/patch_tester.sh 2007-12-26 16:01:38.000000000 -0500
14+++ gcc-4.3.1/contrib/patch_tester.sh 2008-08-24 13:37:11.000000000 -0400
15@@ -287,7 +287,7 @@
16
17 if ! make $dashj `grep "^make:" $PATCH | sed -e "s/^make://g"` bootstrap &> $1/bootstrap ; then
18 report "bootstrap failed with last lines:"
19- tail -30 $1/bootstrap > $1/last_bootstrap
20+ tail -n 30 $1/bootstrap > $1/last_bootstrap
21 freport $1/last_bootstrap
22 report "grep --context=20 Error bootstrap:"
23 grep --context=20 Error $1/bootstrap > $1/bootstrap_error
24@@ -420,7 +420,7 @@
25 # After selfexec, $TESTING is already set up.
26 if [ -d $TESTING ]; then
27 # The only file in $TESTING is the patch.
28- PATCH=`ls -rt -1 $TESTING | head -1`
29+ PATCH=`ls -rt -1 $TESTING | head -n 1`
30 PATCH=$TESTING/$PATCH
31 if [ -f $PATCH ]; then
32 bootntest_patched && bootntest_pristine && compare_passes
33@@ -429,7 +429,7 @@
34 fi
35
36 while true; do
37- PATCH=`ls -rt -1 $PATCHES | head -1`
38+ PATCH=`ls -rt -1 $PATCHES | head -n 1`
39 if [ x$PATCH = x ]; then
40 sleep ${standby}m
41 else
42diff -Naur gcc-4.3.1.orig/contrib/test_summary gcc-4.3.1/contrib/test_summary
43--- gcc-4.3.1.orig/contrib/test_summary 2007-02-09 19:30:46.000000000 -0500
44+++ gcc-4.3.1/contrib/test_summary 2008-08-24 13:37:11.000000000 -0400
45@@ -107,7 +107,7 @@
[00520f6]46 srcdir = configflags;
47 sub(/\/configure .*/, "", srcdir);
48 printf "LAST_UPDATED: ";
49- system("tail -1 " srcdir "/LAST_UPDATED");
50+ system("tail -n 1 " srcdir "/LAST_UPDATED");
51 print "";
52
53 sub(/^[^ ]*\/configure */, " ", configflags);
[e1234d4]54diff -Naur gcc-4.3.1.orig/gcc/configure gcc-4.3.1/gcc/configure
55--- gcc-4.3.1.orig/gcc/configure 2008-05-21 04:54:15.000000000 -0400
56+++ gcc-4.3.1/gcc/configure 2008-08-24 13:37:38.000000000 -0400
57@@ -14265,7 +14265,7 @@
[00520f6]58 # Therefore, use diff -b for the comparisons.
59 if test x$gcc_cv_objdump != x \
60 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
61- | tail -3 > conftest.got \
62+ | tail -n 3 > conftest.got \
63 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
64 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
65 then
[e1234d4]66diff -Naur gcc-4.3.1.orig/gcc/configure.ac gcc-4.3.1/gcc/configure.ac
67--- gcc-4.3.1.orig/gcc/configure.ac 2008-05-21 04:54:15.000000000 -0400
68+++ gcc-4.3.1/gcc/configure.ac 2008-08-24 13:37:25.000000000 -0400
69@@ -2226,7 +2226,7 @@
[00520f6]70 # Therefore, use diff -b for the comparisons.
71 if test x$gcc_cv_objdump != x \
72 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
73- | tail -3 > conftest.got \
74+ | tail -n 3 > conftest.got \
75 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
76 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
77 then
[e1234d4]78diff -Naur gcc-4.3.1.orig/gcc/gccbug.in gcc-4.3.1/gcc/gccbug.in
79--- gcc-4.3.1.orig/gcc/gccbug.in 2007-07-26 04:37:01.000000000 -0400
80+++ gcc-4.3.1/gcc/gccbug.in 2008-08-24 13:37:38.000000000 -0400
81@@ -31,7 +31,7 @@
82
83 # The default release for this host.
84 # We have to guess at what program_transform_name might have done.
85-# "sed 1q" because neither "head -1" nor "head -n 1" is universal, argh.
86+# "sed 1q" because neither "head -n 1" nor "head -n n 1" is universal, argh.
87
88 DEFAULT_GCC="`echo $0 | sed -e 's/bug//'`"
89 DEFAULT_RELEASE="`$DEFAULT_GCC --version | sed 1q`"
90diff -Naur gcc-4.3.1.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.3.1/gcc/testsuite/ada/acats/run_all.sh
91--- gcc-4.3.1.orig/gcc/testsuite/ada/acats/run_all.sh 2006-09-14 06:12:03.000000000 -0400
92+++ gcc-4.3.1/gcc/testsuite/ada/acats/run_all.sh 2008-08-24 13:37:18.000000000 -0400
[00520f6]93@@ -68,7 +68,7 @@
94 ls ${i}?.adb > ${i}.lst 2> /dev/null
95 ls ${i}*m.adb >> ${i}.lst 2> /dev/null
96 ls ${i}.adb >> ${i}.lst 2> /dev/null
97- main=`tail -1 ${i}.lst`
98+ main=`tail -n 1 ${i}.lst`
99 }
100
101 EXTERNAL_OBJECTS=""
[e1234d4]102diff -Naur gcc-4.3.1.orig/libgomp/acinclude.m4 gcc-4.3.1/libgomp/acinclude.m4
103--- gcc-4.3.1.orig/libgomp/acinclude.m4 2007-03-18 07:17:44.000000000 -0400
104+++ gcc-4.3.1/libgomp/acinclude.m4 2008-08-24 13:37:09.000000000 -0400
[00520f6]105@@ -147,7 +147,7 @@
106 # Start by getting the version number. I think the libtool test already
107 # does some of this, but throws away the result.
108 changequote(,)
109- ldver=`$LD --version 2>/dev/null | head -1 | \
110+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
111 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
112 changequote([,])
113 libgomp_gnu_ld_version=`echo $ldver | \
[e1234d4]114diff -Naur gcc-4.3.1.orig/libgomp/configure gcc-4.3.1/libgomp/configure
115--- gcc-4.3.1.orig/libgomp/configure 2008-01-24 11:23:13.000000000 -0500
116+++ gcc-4.3.1/libgomp/configure 2008-08-24 13:37:09.000000000 -0400
117@@ -17600,7 +17600,7 @@
[00520f6]118 # Start by getting the version number. I think the libtool test already
119 # does some of this, but throws away the result.
120
121- ldver=`$LD --version 2>/dev/null | head -1 | \
122+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
123 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
124
125 libgomp_gnu_ld_version=`echo $ldver | \
[e1234d4]126diff -Naur gcc-4.3.1.orig/libjava/classpath/ChangeLog-2004 gcc-4.3.1/libjava/classpath/ChangeLog-2004
127--- gcc-4.3.1.orig/libjava/classpath/ChangeLog-2004 2007-01-09 14:58:05.000000000 -0500
128+++ gcc-4.3.1/libjava/classpath/ChangeLog-2004 2008-08-24 13:37:00.000000000 -0400
129@@ -8256,7 +8256,7 @@
130
131 2004-08-17 Casey Marshall <csm@gnu.org>
132
133- * autogen.sh: use `head -n 1' instead of `head -1'.
134+ * autogen.sh: use `head -n n 1' instead of `head -n 1'.
135
136 2004-08-16 Andrew John Hughes <gnu_andrew@member.fsf.org>
137
138diff -Naur gcc-4.3.1.orig/libjava/classpath/configure gcc-4.3.1/libjava/classpath/configure
139--- gcc-4.3.1.orig/libjava/classpath/configure 2008-02-29 18:47:54.000000000 -0500
140+++ gcc-4.3.1/libjava/classpath/configure 2008-08-24 13:37:00.000000000 -0400
141@@ -29126,7 +29126,7 @@
[00520f6]142 fi # shortcircut to system "stdint.h"
143 # ------------------ PREPARE VARIABLES ------------------------------
144 if test "$GCC" = "yes" ; then
145-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
146+ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
147 else
148 ac_cv_stdint_message="using $CC"
149 fi
[e1234d4]150diff -Naur gcc-4.3.1.orig/libjava/classpath/ltcf-c.sh gcc-4.3.1/libjava/classpath/ltcf-c.sh
151--- gcc-4.3.1.orig/libjava/classpath/ltcf-c.sh 2006-01-17 13:09:40.000000000 -0500
152+++ gcc-4.3.1/libjava/classpath/ltcf-c.sh 2008-08-24 13:36:57.000000000 -0400
[00520f6]153@@ -153,7 +153,7 @@
154 # If the export-symbols file already is a .def file (1st line
155 # is EXPORTS), use it as is.
156 # If DATA tags from a recent dlltool are present, honour them!
157- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
158+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
159 cp $export_symbols $output_objdir/$soname-def;
160 else
161 echo EXPORTS > $output_objdir/$soname-def;
[e1234d4]162diff -Naur gcc-4.3.1.orig/libjava/classpath/ltcf-gcj.sh gcc-4.3.1/libjava/classpath/ltcf-gcj.sh
163--- gcc-4.3.1.orig/libjava/classpath/ltcf-gcj.sh 2005-09-23 17:31:04.000000000 -0400
164+++ gcc-4.3.1/libjava/classpath/ltcf-gcj.sh 2008-08-24 13:36:55.000000000 -0400
[00520f6]165@@ -156,7 +156,7 @@
166 # If the export-symbols file already is a .def file (1st line
167 # is EXPORTS), use it as is.
168 # If DATA tags from a recent dlltool are present, honour them!
169- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
170+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
171 cp $export_symbols $output_objdir/$soname-def;
172 else
173 echo EXPORTS > $output_objdir/$soname-def;
[e1234d4]174diff -Naur gcc-4.3.1.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.3.1/libjava/classpath/m4/ax_create_stdint_h.m4
175--- gcc-4.3.1.orig/libjava/classpath/m4/ax_create_stdint_h.m4 2007-05-19 16:44:43.000000000 -0400
176+++ gcc-4.3.1/libjava/classpath/m4/ax_create_stdint_h.m4 2008-08-24 13:36:57.000000000 -0400
[00520f6]177@@ -217,7 +217,7 @@
178 fi # shortcircut to system "stdint.h"
179 # ------------------ PREPARE VARIABLES ------------------------------
180 if test "$GCC" = "yes" ; then
181-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
182+ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
183 else
184 ac_cv_stdint_message="using $CC"
185 fi
[e1234d4]186diff -Naur gcc-4.3.1.orig/libjava/configure gcc-4.3.1/libjava/configure
187--- gcc-4.3.1.orig/libjava/configure 2008-06-06 10:49:11.000000000 -0400
188+++ gcc-4.3.1/libjava/configure 2008-08-24 13:37:03.000000000 -0400
189@@ -18673,8 +18673,8 @@
[00520f6]190 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
191 LD_PROG=`$CC --print-prog-name=ld`
192 LD_VERSION=`$LD_PROG --version`
193-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
194-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
195+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
196+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
197 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
198 LD_OK="ok"
199 else
[e1234d4]200diff -Naur gcc-4.3.1.orig/libjava/mingwld.m4 gcc-4.3.1/libjava/mingwld.m4
201--- gcc-4.3.1.orig/libjava/mingwld.m4 2005-08-22 18:36:35.000000000 -0400
202+++ gcc-4.3.1/libjava/mingwld.m4 2008-08-24 13:36:52.000000000 -0400
[00520f6]203@@ -3,8 +3,8 @@
204 AC_MSG_CHECKING(whether 'ld' is at least 2.13)
205 LD_PROG=`$CC --print-prog-name=ld`
206 LD_VERSION=`$LD_PROG --version`
207-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
208-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
209+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
210+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
211 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
212 LD_OK="ok"
213 else
[e1234d4]214diff -Naur gcc-4.3.1.orig/libstdc++-v3/acinclude.m4 gcc-4.3.1/libstdc++-v3/acinclude.m4
215--- gcc-4.3.1.orig/libstdc++-v3/acinclude.m4 2008-04-25 12:52:57.000000000 -0400
216+++ gcc-4.3.1/libstdc++-v3/acinclude.m4 2008-08-24 13:37:07.000000000 -0400
[00520f6]217@@ -234,7 +234,7 @@
218 if test x"$with_gnu_ld" = x"yes"; then
219 AC_MSG_CHECKING([for ld version])
220 changequote(,)
221- ldver=`$LD --version 2>/dev/null | head -1 | \
222+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
223 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
224 changequote([,])
225 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]226diff -Naur gcc-4.3.1.orig/libstdc++-v3/configure gcc-4.3.1/libstdc++-v3/configure
227--- gcc-4.3.1.orig/libstdc++-v3/configure 2008-04-25 12:52:57.000000000 -0400
228+++ gcc-4.3.1/libstdc++-v3/configure 2008-08-24 13:37:09.000000000 -0400
229@@ -17488,7 +17488,7 @@
[00520f6]230 echo "$as_me:$LINENO: checking for ld version" >&5
231 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
232
233- ldver=`$LD --version 2>/dev/null | head -1 | \
234+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
235 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
236
237 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]238@@ -42213,7 +42213,7 @@
[00520f6]239 echo "$as_me:$LINENO: checking for ld version" >&5
240 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
241
242- ldver=`$LD --version 2>/dev/null | head -1 | \
243+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
244 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
245
246 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]247@@ -84604,7 +84604,7 @@
[00520f6]248 echo "$as_me:$LINENO: checking for ld version" >&5
249 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
250
251- ldver=`$LD --version 2>/dev/null | head -1 | \
252+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
253 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
254
255 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]256@@ -85620,7 +85620,7 @@
[00520f6]257 echo "$as_me:$LINENO: checking for ld version" >&5
258 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
259
260- ldver=`$LD --version 2>/dev/null | head -1 | \
261+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
262 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
263
264 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]265@@ -86608,7 +86608,7 @@
[00520f6]266 echo "$as_me:$LINENO: checking for ld version" >&5
267 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
268
269- ldver=`$LD --version 2>/dev/null | head -1 | \
270+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
271 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
272
273 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]274@@ -109087,7 +109087,7 @@
[00520f6]275 echo "$as_me:$LINENO: checking for ld version" >&5
276 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
277
278- ldver=`$LD --version 2>/dev/null | head -1 | \
279+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
280 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
281
282 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]283@@ -109932,7 +109932,7 @@
[00520f6]284 echo "$as_me:$LINENO: checking for ld version" >&5
285 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
286
287- ldver=`$LD --version 2>/dev/null | head -1 | \
288+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
289 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
290
291 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]292@@ -110826,7 +110826,7 @@
[00520f6]293 echo "$as_me:$LINENO: checking for ld version" >&5
294 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
295
296- ldver=`$LD --version 2>/dev/null | head -1 | \
297+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
298 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
299
300 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]301@@ -112112,7 +112112,7 @@
[00520f6]302 echo "$as_me:$LINENO: checking for ld version" >&5
303 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
304
305- ldver=`$LD --version 2>/dev/null | head -1 | \
306+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
307 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
308
309 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]310@@ -112848,7 +112848,7 @@
[00520f6]311 echo "$as_me:$LINENO: checking for ld version" >&5
312 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
313
314- ldver=`$LD --version 2>/dev/null | head -1 | \
315+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
316 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
317
318 glibcxx_gnu_ld_version=`echo $ldver | \
[e1234d4]319@@ -113349,7 +113349,7 @@
[00520f6]320 echo "$as_me:$LINENO: checking for ld version" >&5
321 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
322
323- ldver=`$LD --version 2>/dev/null | head -1 | \
324+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
325 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
326
327 glibcxx_gnu_ld_version=`echo $ldver | \
Note: See TracBrowser for help on using the repository browser.