mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

273 lines
12 KiB

  1. --- gcc-3.2.3/boehm-gc/config.guess 2002-02-12 05:37:53.000000000 +0100
  2. +++ gcc-3.2.3/boehm-gc/config.guess.patch 2004-08-29 04:06:00.000000000 +0200
  3. @@ -340,7 +340,7 @@
  4. echo m68k-sun-sunos${UNAME_RELEASE}
  5. exit 0 ;;
  6. sun*:*:4.2BSD:*)
  7. - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  8. + UNAME_RELEASE=`(head -n1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  9. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  10. case "`/bin/arch`" in
  11. sun3)
  12. @@ -509,7 +509,7 @@
  13. fi
  14. exit 0 ;;
  15. *:AIX:*:[45])
  16. - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
  17. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -n1 | awk '{ print $1 }'`
  18. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  19. IBM_ARCH=rs6000
  20. else
  21. --- gcc-3.2.3/contrib/test_summary 2002-02-24 21:45:15.000000000 +0100
  22. +++ gcc-3.2.3/contrib/test_summary.patch 2004-08-29 04:09:19.000000000 +0200
  23. @@ -98,7 +98,7 @@
  24. srcdir = $1;
  25. gsub(/\/configure$/, "", srcdir);
  26. printf "LAST_UPDATED: ";
  27. - system("tail -1 " srcdir "/LAST_UPDATED");
  28. + system("tail -n1 " srcdir "/LAST_UPDATED");
  29. print "";
  30. $1 = "configure flags:"; configflags = $0;
  31. --- gcc-3.2.3/gcc/configure 2003-02-04 01:17:46.000000000 +0100
  32. +++ gcc-3.2.3/gcc/configure.patch 2004-08-29 04:06:14.000000000 +0200
  33. @@ -7214,7 +7214,7 @@
  34. # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
  35. # This is irritatingly difficult to feature test for. Look for
  36. # the date string after the version number.
  37. - ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
  38. + ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -n1`
  39. if echo "$ld_ver" | grep GNU > /dev/null; then
  40. ld_vers=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\)\([ ].*\|\)$,\1,p'`
  41. ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
  42. @@ -7278,7 +7278,7 @@
  43. # ??? There exists an elf-specific test that will crash
  44. # the assembler. Perhaps it's better to figure out whether
  45. # arbitrary sections are supported and try the test.
  46. - as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
  47. + as_ver=`$gcc_cv_as --version 2>/dev/null | head -n1`
  48. if echo "$as_ver" | grep GNU > /dev/null; then
  49. as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
  50. as_major=`echo $as_ver | sed 's/\..*//'`
  51. @@ -7307,7 +7307,7 @@
  52. fi
  53. elif test x$gcc_cv_as != x; then
  54. # Check if this is GAS.
  55. - as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
  56. + as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -n1`
  57. rm -f a.out 2> /dev/null
  58. if echo "$as_ver" | grep GNU > /dev/null; then
  59. # Versions up to and including 2.11.0 may mis-optimize
  60. --- gcc-3.2.3/gcc/configure.in 2003-02-04 01:17:41.000000000 +0100
  61. +++ gcc-3.2.3/gcc/configure.in.patch 2004-08-29 04:06:31.000000000 +0200
  62. @@ -1534,7 +1534,7 @@
  63. # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
  64. # This is irritatingly difficult to feature test for. Look for
  65. # the date string after the version number.
  66. - ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
  67. + ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -n1`
  68. if echo "$ld_ver" | grep GNU > /dev/null; then
  69. changequote(,)dnl
  70. ld_vers=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\)\([ ].*\|\)$,\1,p'`
  71. @@ -1597,7 +1597,7 @@
  72. # ??? There exists an elf-specific test that will crash
  73. # the assembler. Perhaps it's better to figure out whether
  74. # arbitrary sections are supported and try the test.
  75. - as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
  76. + as_ver=`$gcc_cv_as --version 2>/dev/null | head -n1`
  77. if echo "$as_ver" | grep GNU > /dev/null; then
  78. changequote(,)dnl
  79. as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
  80. @@ -1625,7 +1625,7 @@
  81. fi
  82. elif test x$gcc_cv_as != x; then
  83. # Check if this is GAS.
  84. - as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
  85. + as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -n1`
  86. rm -f a.out 2> /dev/null
  87. if echo "$as_ver" | grep GNU > /dev/null; then
  88. # Versions up to and including 2.11.0 may mis-optimize
  89. --- gcc-3.2.3/libstdc++-v3/aclocal.m4 2003-02-05 17:36:40.000000000 +0100
  90. +++ gcc-3.2.3/libstdc++-v3/aclocal.m4.patch 2004-08-29 04:06:52.000000000 +0200
  91. @@ -331,7 +331,7 @@
  92. # Start by getting the version number. I think the libtool test already
  93. # does some of this, but throws away the result.
  94. changequote(,)
  95. - ldver=`$LD --version 2>/dev/null | head -1 | \
  96. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  97. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  98. changequote([,])
  99. glibcpp_gnu_ld_version=`echo $ldver | \
  100. --- gcc-3.2.3/libstdc++-v3/acinclude.m4 2003-01-27 18:30:41.000000000 +0100
  101. +++ gcc-3.2.3/libstdc++-v3/acinclude.m4.patch 2004-08-29 04:06:43.000000000 +0200
  102. @@ -319,7 +319,7 @@
  103. # Start by getting the version number. I think the libtool test already
  104. # does some of this, but throws away the result.
  105. changequote(,)
  106. - ldver=`$LD --version 2>/dev/null | head -1 | \
  107. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  108. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  109. changequote([,])
  110. glibcpp_gnu_ld_version=`echo $ldver | \
  111. --- gcc-3.2.3/libstdc++-v3/configure 2003-02-05 17:36:41.000000000 +0100
  112. +++ gcc-3.2.3/libstdc++-v3/configure.patch 2004-08-29 04:07:23.000000000 +0200
  113. @@ -4157,7 +4157,7 @@
  114. # Start by getting the version number. I think the libtool test already
  115. # does some of this, but throws away the result.
  116. - ldver=`$LD --version 2>/dev/null | head -1 | \
  117. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  118. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  119. glibcpp_gnu_ld_version=`echo $ldver | \
  120. @@ -5107,7 +5107,7 @@
  121. # Start by getting the version number. I think the libtool test already
  122. # does some of this, but throws away the result.
  123. - ldver=`$LD --version 2>/dev/null | head -1 | \
  124. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  125. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  126. glibcpp_gnu_ld_version=`echo $ldver | \
  127. @@ -6051,7 +6051,7 @@
  128. # Start by getting the version number. I think the libtool test already
  129. # does some of this, but throws away the result.
  130. - ldver=`$LD --version 2>/dev/null | head -1 | \
  131. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  132. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  133. glibcpp_gnu_ld_version=`echo $ldver | \
  134. @@ -6982,7 +6982,7 @@
  135. # Start by getting the version number. I think the libtool test already
  136. # does some of this, but throws away the result.
  137. - ldver=`$LD --version 2>/dev/null | head -1 | \
  138. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  139. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  140. glibcpp_gnu_ld_version=`echo $ldver | \
  141. @@ -7855,7 +7855,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. - ldver=`$LD --version 2>/dev/null | head -1 | \
  145. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  146. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  147. glibcpp_gnu_ld_version=`echo $ldver | \
  148. @@ -9155,7 +9155,7 @@
  149. # Start by getting the version number. I think the libtool test already
  150. # does some of this, but throws away the result.
  151. - ldver=`$LD --version 2>/dev/null | head -1 | \
  152. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  153. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  154. glibcpp_gnu_ld_version=`echo $ldver | \
  155. --- gcc-3.2.3/libstdc++-v3/mkcheck.in 2002-03-08 23:25:40.000000000 +0100
  156. +++ gcc-3.2.3/libstdc++-v3/mkcheck.in.patch 2004-08-29 04:09:32.000000000 +0200
  157. @@ -181,9 +181,9 @@
  158. function size_command()
  159. {
  160. case $1 in
  161. - TEXT) TEXT=$(size -B $EXENAME | tail -1 | awk '{print $1}') ;;
  162. - DATA) DATA=$(size -B $EXENAME | tail -1 | awk '{print $2}') ;;
  163. - SIZE) SIZE=$(size -B $EXENAME | tail -1 | awk '{print $4}') ;;
  164. + TEXT) TEXT=$(size -B $EXENAME | tail -n1 | awk '{print $1}') ;;
  165. + DATA) DATA=$(size -B $EXENAME | tail -n1 | awk '{print $2}') ;;
  166. + SIZE) SIZE=$(size -B $EXENAME | tail -n1 | awk '{print $4}') ;;
  167. esac
  168. }
  169. else
  170. --- gcc-3.2.3/ltcf-c.sh 2001-09-01 02:47:19.000000000 +0200
  171. +++ gcc-3.2.3/ltcf-c.sh.patch 2004-08-29 04:07:32.000000000 +0200
  172. @@ -153,7 +153,7 @@
  173. # If the export-symbols file already is a .def file (1st line
  174. # is EXPORTS), use it as is.
  175. # If DATA tags from a recent dlltool are present, honour them!
  176. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  177. + archive_expsym_cmds='if test "x`head -n1 $export_symbols`" = xEXPORTS; then
  178. cp $export_symbols $output_objdir/$soname-def;
  179. else
  180. echo EXPORTS > $output_objdir/$soname-def;
  181. --- gcc-3.2.3/ltcf-gcj.sh 2001-09-01 02:47:19.000000000 +0200
  182. +++ gcc-3.2.3/ltcf-gcj.sh.patch 2004-08-29 04:07:41.000000000 +0200
  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 -n1 $export_symbols`" = xEXPORTS; then
  189. cp $export_symbols $output_objdir/$soname-def;
  190. else
  191. echo EXPORTS > $output_objdir/$soname-def;
  192. --- ./configure 2004-08-29 04:52:05.000000000 +0200
  193. +++ ./configure.patch 2004-08-29 05:01:09.000000000 +0200
  194. @@ -820,7 +820,7 @@
  195. s/\\\n//g
  196. t loop
  197. /^CC[ ]*=/ s/CC[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc
  198. - CC=`tail -1 Makefile.cc`
  199. + CC=`tail -n1 Makefile.cc`
  200. rm -f Makefile.cc
  201. fi
  202. @@ -830,7 +830,7 @@
  203. s/\\\n//g
  204. t loop
  205. /^CFLAGS[ ]*=/ s/CFLAGS[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc
  206. - CFLAGS=`tail -1 Makefile.cc`
  207. + CFLAGS=`tail -n1 Makefile.cc`
  208. rm -f Makefile.cc
  209. fi
  210. @@ -840,7 +840,7 @@
  211. s/\\\n//g
  212. t loop
  213. /^CXX[ ]*=/ s/CXX[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc
  214. - CXX=`tail -1 Makefile.cc`
  215. + CXX=`tail -n1 Makefile.cc`
  216. rm -f Makefile.cc
  217. fi
  218. @@ -850,7 +850,7 @@
  219. s/\\\n//g
  220. t loop
  221. /^CXXFLAGS[ ]*=/ s/CXXFLAGS[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc
  222. - CXXFLAGS=`tail -1 Makefile.cc`
  223. + CXXFLAGS=`tail -n1 Makefile.cc`
  224. rm -f Makefile.cc
  225. fi
  226. @@ -931,7 +931,7 @@
  227. t loop
  228. /^'"${var}"'[ ]*=/ s/'"${var}"'[ ]*=[ ]*\(.*\)/\1/p' \
  229. < Makefile > Makefile.v
  230. - t=`tail -1 Makefile.v`
  231. + t=`tail -n1 Makefile.v`
  232. if [ -n "${t}" ]; then
  233. eval "${var}=\${t}"
  234. fi
  235. --- gcc-3.2.3/gcc/configure 2004-08-29 05:06:22.000000000 +0200
  236. +++ gcc-3.2.3/gcc/configure.patch 2004-08-29 16:00:28.000000000 +0200
  237. @@ -7360,7 +7360,7 @@
  238. # and we got the correct data, then succeed.
  239. if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
  240. && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
  241. - | tail -3 > conftest.got \
  242. + | tail -n3 > conftest.got \
  243. && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
  244. || cmp conftest.big conftest.got > /dev/null 2>&1; }
  245. then
  246. --- gcc-3.2.3/gcc/configure.in 2004-08-29 05:06:22.000000000 +0200
  247. +++ gcc-3.2.3/gcc/configure.in.patch 2004-08-29 16:00:36.000000000 +0200
  248. @@ -1678,7 +1678,7 @@
  249. # and we got the correct data, then succeed.
  250. if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
  251. && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
  252. - | tail -3 > conftest.got \
  253. + | tail -n3 > conftest.got \
  254. && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
  255. || cmp conftest.big conftest.got > /dev/null 2>&1; }
  256. then