source: patches/gcc-4.0.3-posix-1.patch@ 7d61e92

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7d61e92 was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 8.5 KB
RevLine 
[69cde8d]1Submitted By: Jim Gifford (patches at jg555 dot com)
2Date: 2005-08-27
3Initial Package Version: 4.0.1
4Origin: Jim Gifford
5Upstream Status: On Hold
6Description: Makes GCC Posix Compliant
7
8diff -Naur gcc-4.0.1.orig/contrib/test_summary gcc-4.0.1/contrib/test_summary
9--- gcc-4.0.1.orig/contrib/test_summary 2004-08-26 05:51:22.000000000 +0000
10+++ gcc-4.0.1/contrib/test_summary 2005-08-27 21:06:51.000000000 +0000
11@@ -106,7 +106,7 @@
12 srcdir = configflags;
13 sub(/\/configure .*/, "", srcdir);
14 printf "LAST_UPDATED: ";
15- system("tail -1 " srcdir "/LAST_UPDATED");
16+ system("tail -n 1 " srcdir "/LAST_UPDATED");
17 print "";
18
19 sub(/^[^ ]*\/configure */, " ", configflags);
20diff -Naur gcc-4.0.1.orig/gcc/configure gcc-4.0.1/gcc/configure
21--- gcc-4.0.1.orig/gcc/configure 2005-07-07 20:44:40.000000000 +0000
22+++ gcc-4.0.1/gcc/configure 2005-08-27 21:06:51.000000000 +0000
23@@ -13511,7 +13511,7 @@
24 # and we got the correct data, then succeed.
25 if test x$gcc_cv_objdump != x \
26 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
27- | tail -3 > conftest.got \
28+ | tail -n 3 > conftest.got \
29 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
30 || cmp conftest.big conftest.got > /dev/null 2>&1; }
31 then
32diff -Naur gcc-4.0.1.orig/gcc/configure.ac gcc-4.0.1/gcc/configure.ac
33--- gcc-4.0.1.orig/gcc/configure.ac 2005-06-01 08:14:33.000000000 +0000
34+++ gcc-4.0.1/gcc/configure.ac 2005-08-27 21:06:51.000000000 +0000
35@@ -2214,7 +2214,7 @@
36 # and we got the correct data, then succeed.
37 if test x$gcc_cv_objdump != x \
38 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
39- | tail -3 > conftest.got \
40+ | tail -n 3 > conftest.got \
41 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
42 || cmp conftest.big conftest.got > /dev/null 2>&1; }
43 then
44diff -Naur gcc-4.0.1.orig/libjava/acinclude.m4 gcc-4.0.1/libjava/acinclude.m4
45--- gcc-4.0.1.orig/libjava/acinclude.m4 2004-09-23 01:14:00.000000000 +0000
46+++ gcc-4.0.1/libjava/acinclude.m4 2005-08-27 21:06:51.000000000 +0000
47@@ -17,8 +17,8 @@
48 AC_MSG_CHECKING(whether 'ld' is at least 2.13)
49 LD_PROG=`$CC --print-prog-name=ld`
50 LD_VERSION=`$LD_PROG --version`
51-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
52-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
53+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
54+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
55 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
56 LD_OK="ok"
57 else
58diff -Naur gcc-4.0.1.orig/libjava/configure gcc-4.0.1/libjava/configure
59--- gcc-4.0.1.orig/libjava/configure 2005-07-07 20:44:40.000000000 +0000
60+++ gcc-4.0.1/libjava/configure 2005-08-27 21:06:51.000000000 +0000
61@@ -5933,8 +5933,8 @@
62 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
63 LD_PROG=`$CC --print-prog-name=ld`
64 LD_VERSION=`$LD_PROG --version`
65-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
66-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
67+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
68+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
69 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
70 LD_OK="ok"
71 else
72diff -Naur gcc-4.0.1.orig/libstdc++-v3/acinclude.m4 gcc-4.0.1/libstdc++-v3/acinclude.m4
73--- gcc-4.0.1.orig/libstdc++-v3/acinclude.m4 2005-06-23 09:23:59.000000000 +0000
74+++ gcc-4.0.1/libstdc++-v3/acinclude.m4 2005-08-27 21:06:51.000000000 +0000
75@@ -241,7 +241,7 @@
76 # Start by getting the version number. I think the libtool test already
77 # does some of this, but throws away the result.
78 changequote(,)
79- ldver=`$LD --version 2>/dev/null | head -1 | \
80+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
81 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
82 changequote([,])
83 glibcxx_gnu_ld_version=`echo $ldver | \
84diff -Naur gcc-4.0.1.orig/libstdc++-v3/configure gcc-4.0.1/libstdc++-v3/configure
85--- gcc-4.0.1.orig/libstdc++-v3/configure 2005-06-23 09:24:00.000000000 +0000
86+++ gcc-4.0.1/libstdc++-v3/configure 2005-08-27 21:06:52.000000000 +0000
87@@ -9880,7 +9880,7 @@
88 # Start by getting the version number. I think the libtool test already
89 # does some of this, but throws away the result.
90
91- ldver=`$LD --version 2>/dev/null | head -1 | \
92+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
93 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
94
95 glibcxx_gnu_ld_version=`echo $ldver | \
96@@ -55252,7 +55252,7 @@
97 # Start by getting the version number. I think the libtool test already
98 # does some of this, but throws away the result.
99
100- ldver=`$LD --version 2>/dev/null | head -1 | \
101+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
102 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
103
104 glibcxx_gnu_ld_version=`echo $ldver | \
105@@ -76923,7 +76923,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
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-9.][0-9.]*\).*/\1/'`
112
113 glibcxx_gnu_ld_version=`echo $ldver | \
114@@ -79292,7 +79292,7 @@
115 # Start by getting the version number. I think the libtool test already
116 # does some of this, but throws away the result.
117
118- ldver=`$LD --version 2>/dev/null | head -1 | \
119+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
120 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
121
122 glibcxx_gnu_ld_version=`echo $ldver | \
123@@ -81537,7 +81537,7 @@
124 # Start by getting the version number. I think the libtool test already
125 # does some of this, but throws away the result.
126
127- ldver=`$LD --version 2>/dev/null | head -1 | \
128+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
129 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
130
131 glibcxx_gnu_ld_version=`echo $ldver | \
132@@ -84550,7 +84550,7 @@
133 # Start by getting the version number. I think the libtool test already
134 # does some of this, but throws away the result.
135
136- ldver=`$LD --version 2>/dev/null | head -1 | \
137+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
138 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
139
140 glibcxx_gnu_ld_version=`echo $ldver | \
141@@ -86748,7 +86748,7 @@
142 # Start by getting the version number. I think the libtool test already
143 # does some of this, but throws away the result.
144
145- ldver=`$LD --version 2>/dev/null | head -1 | \
146+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
147 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
148
149 glibcxx_gnu_ld_version=`echo $ldver | \
150@@ -88995,7 +88995,7 @@
151 # Start by getting the version number. I think the libtool test already
152 # does some of this, but throws away the result.
153
154- ldver=`$LD --version 2>/dev/null | head -1 | \
155+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
156 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
157
158 glibcxx_gnu_ld_version=`echo $ldver | \
159@@ -91603,7 +91603,7 @@
160 # Start by getting the version number. I think the libtool test already
161 # does some of this, but throws away the result.
162
163- ldver=`$LD --version 2>/dev/null | head -1 | \
164+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
165 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
166
167 glibcxx_gnu_ld_version=`echo $ldver | \
168diff -Naur gcc-4.0.1.orig/ltcf-c.sh gcc-4.0.1/ltcf-c.sh
169--- gcc-4.0.1.orig/ltcf-c.sh 2005-05-14 00:42:34.000000000 +0000
170+++ gcc-4.0.1/ltcf-c.sh 2005-08-27 21:07:08.000000000 +0000
171@@ -153,7 +153,7 @@
172 # If the export-symbols file already is a .def file (1st line
173 # is EXPORTS), use it as is.
174 # If DATA tags from a recent dlltool are present, honour them!
175- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
176+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
177 cp $export_symbols $output_objdir/$soname-def;
178 else
179 echo EXPORTS > $output_objdir/$soname-def;
180diff -Naur gcc-4.0.1.orig/ltcf-gcj.sh gcc-4.0.1/ltcf-gcj.sh
181--- gcc-4.0.1.orig/ltcf-gcj.sh 2005-05-14 00:42:34.000000000 +0000
182+++ gcc-4.0.1/ltcf-gcj.sh 2005-08-27 21:07:08.000000000 +0000
183@@ -156,7 +156,7 @@
184 # If the export-symbols file already is a .def file (1st line
185 # is EXPORTS), use it as is.
186 # If DATA tags from a recent dlltool are present, honour them!
187- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
188+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
189 cp $export_symbols $output_objdir/$soname-def;
190 else
191 echo EXPORTS > $output_objdir/$soname-def;
Note: See TracBrowser for help on using the repository browser.