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.

331 lines
15 KiB

  1. diff -dur gcc-3.3.3/boehm-gc/config.guess gcc-3.3.3-p/boehm-gc/config.guess
  2. --- gcc-3.3.3/boehm-gc/config.guess 2002-02-12 05:37:53.000000000 +0100
  3. +++ gcc-3.3.3-p/boehm-gc/config.guess 2004-11-04 02:32:41.000000000 +0100
  4. @@ -340,7 +340,7 @@
  5. echo m68k-sun-sunos${UNAME_RELEASE}
  6. exit 0 ;;
  7. sun*:*:4.2BSD:*)
  8. - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  9. + UNAME_RELEASE=`(head -n1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  10. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  11. case "`/bin/arch`" in
  12. sun3)
  13. @@ -509,7 +509,7 @@
  14. fi
  15. exit 0 ;;
  16. *:AIX:*:[45])
  17. - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
  18. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -n1 | awk '{ print $1 }'`
  19. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  20. IBM_ARCH=rs6000
  21. else
  22. diff -dur gcc-3.3.3/configure gcc-3.3.3-p/configure
  23. --- gcc-3.3.3/configure 2002-09-29 18:11:24.000000000 +0200
  24. +++ gcc-3.3.3-p/configure 2004-11-04 02:35:30.000000000 +0100
  25. @@ -820,7 +820,7 @@
  26. s/\\\n//g
  27. t loop
  28. /^CC[ ]*=/ s/CC[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc
  29. - CC=`tail -1 Makefile.cc`
  30. + CC=`tail -n1 Makefile.cc`
  31. rm -f Makefile.cc
  32. fi
  33. @@ -830,7 +830,7 @@
  34. s/\\\n//g
  35. t loop
  36. /^CFLAGS[ ]*=/ s/CFLAGS[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc
  37. - CFLAGS=`tail -1 Makefile.cc`
  38. + CFLAGS=`tail -n1 Makefile.cc`
  39. rm -f Makefile.cc
  40. fi
  41. @@ -840,7 +840,7 @@
  42. s/\\\n//g
  43. t loop
  44. /^CXX[ ]*=/ s/CXX[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc
  45. - CXX=`tail -1 Makefile.cc`
  46. + CXX=`tail -n1 Makefile.cc`
  47. rm -f Makefile.cc
  48. fi
  49. @@ -850,7 +850,7 @@
  50. s/\\\n//g
  51. t loop
  52. /^CXXFLAGS[ ]*=/ s/CXXFLAGS[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc
  53. - CXXFLAGS=`tail -1 Makefile.cc`
  54. + CXXFLAGS=`tail -n1 Makefile.cc`
  55. rm -f Makefile.cc
  56. fi
  57. @@ -931,7 +931,7 @@
  58. t loop
  59. /^'"${var}"'[ ]*=/ s/'"${var}"'[ ]*=[ ]*\(.*\)/\1/p' \
  60. < Makefile > Makefile.v
  61. - t=`tail -1 Makefile.v`
  62. + t=`tail -n1 Makefile.v`
  63. if [ -n "${t}" ]; then
  64. eval "${var}=\${t}"
  65. fi
  66. diff -dur gcc-3.3.3/contrib/test_summary gcc-3.3.3-p/contrib/test_summary
  67. --- gcc-3.3.3/contrib/test_summary 2002-05-16 19:41:58.000000000 +0200
  68. +++ gcc-3.3.3-p/contrib/test_summary 2004-11-04 02:35:15.000000000 +0100
  69. @@ -98,7 +98,7 @@
  70. srcdir = $1;
  71. gsub(/\/configure$/, "", srcdir);
  72. printf "LAST_UPDATED: ";
  73. - system("tail -1 " srcdir "/LAST_UPDATED");
  74. + system("tail -n1 " srcdir "/LAST_UPDATED");
  75. print "";
  76. $1 = "configure flags:"; configflags = $0;
  77. diff -dur gcc-3.3.3/gcc/configure gcc-3.3.3-p/gcc/configure
  78. --- gcc-3.3.3/gcc/configure 2003-12-02 02:56:14.000000000 +0100
  79. +++ gcc-3.3.3-p/gcc/configure 2004-11-04 02:34:58.000000000 +0100
  80. @@ -7277,7 +7277,7 @@
  81. # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
  82. # This is irritatingly difficult to feature test for. Look for
  83. # the date string after the version number.
  84. - ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
  85. + ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -n1`
  86. if echo "$ld_ver" | grep GNU > /dev/null; then
  87. 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'`
  88. 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'`
  89. @@ -7343,7 +7343,7 @@
  90. # ??? There exists an elf-specific test that will crash
  91. # the assembler. Perhaps it's better to figure out whether
  92. # arbitrary sections are supported and try the test.
  93. - as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
  94. + as_ver=`$gcc_cv_as --version 2>/dev/null | head -n1`
  95. if echo "$as_ver" | grep GNU > /dev/null; then
  96. as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
  97. as_major=`echo $as_ver | sed 's/\..*//'`
  98. @@ -7372,7 +7372,7 @@
  99. fi
  100. elif test x$gcc_cv_as != x; then
  101. # Check if this is GAS.
  102. - as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
  103. + as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -n1`
  104. rm -f a.out 2> /dev/null
  105. if echo "$as_ver" | grep GNU > /dev/null; then
  106. # Versions up to and including 2.11.0 may mis-optimize
  107. @@ -7425,7 +7425,7 @@
  108. # and we got the correct data, then succeed.
  109. if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
  110. && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
  111. - | tail -3 > conftest.got \
  112. + | tail -n3 > conftest.got \
  113. && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
  114. || cmp conftest.big conftest.got > /dev/null 2>&1; }
  115. then
  116. diff -dur gcc-3.3.3/gcc/configure.in gcc-3.3.3-p/gcc/configure.in
  117. --- gcc-3.3.3/gcc/configure.in 2003-12-02 02:56:12.000000000 +0100
  118. +++ gcc-3.3.3-p/gcc/configure.in 2004-11-04 02:34:28.000000000 +0100
  119. @@ -1683,7 +1683,7 @@
  120. # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
  121. # This is irritatingly difficult to feature test for. Look for
  122. # the date string after the version number.
  123. - ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
  124. + ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -n1`
  125. if echo "$ld_ver" | grep GNU > /dev/null; then
  126. changequote(,)dnl
  127. 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'`
  128. @@ -1748,7 +1748,7 @@
  129. # ??? There exists an elf-specific test that will crash
  130. # the assembler. Perhaps it's better to figure out whether
  131. # arbitrary sections are supported and try the test.
  132. - as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
  133. + as_ver=`$gcc_cv_as --version 2>/dev/null | head -n1`
  134. if echo "$as_ver" | grep GNU > /dev/null; then
  135. changequote(,)dnl
  136. as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
  137. @@ -1776,7 +1776,7 @@
  138. fi
  139. elif test x$gcc_cv_as != x; then
  140. # Check if this is GAS.
  141. - as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
  142. + as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -n1`
  143. rm -f a.out 2> /dev/null
  144. if echo "$as_ver" | grep GNU > /dev/null; then
  145. # Versions up to and including 2.11.0 may mis-optimize
  146. @@ -1829,7 +1829,7 @@
  147. # and we got the correct data, then succeed.
  148. if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
  149. && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
  150. - | tail -3 > conftest.got \
  151. + | tail -n3 > conftest.got \
  152. && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
  153. || cmp conftest.big conftest.got > /dev/null 2>&1; }
  154. then
  155. diff -dur gcc-3.3.3/libjava/acinclude.m4 gcc-3.3.3-p/libjava/acinclude.m4
  156. --- gcc-3.3.3/libjava/acinclude.m4 2003-01-31 19:01:17.000000000 +0100
  157. +++ gcc-3.3.3-p/libjava/acinclude.m4 2004-11-04 02:31:42.000000000 +0100
  158. @@ -279,8 +279,8 @@
  159. AC_MSG_CHECKING(whether 'ld' is at least 2.13)
  160. LD_PROG=`$CC --print-prog-name=ld`
  161. LD_VERSION=`$LD_PROG --version`
  162. -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  163. -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  164. +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  165. +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 2`
  166. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  167. LD_OK="ok"
  168. else
  169. diff -dur gcc-3.3.3/libjava/aclocal.m4 gcc-3.3.3-p/libjava/aclocal.m4
  170. --- gcc-3.3.3/libjava/aclocal.m4 2004-02-14 21:34:20.000000000 +0100
  171. +++ gcc-3.3.3-p/libjava/aclocal.m4 2004-11-04 02:31:31.000000000 +0100
  172. @@ -291,8 +291,8 @@
  173. AC_MSG_CHECKING(whether 'ld' is at least 2.13)
  174. LD_PROG=`$CC --print-prog-name=ld`
  175. LD_VERSION=`$LD_PROG --version`
  176. -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  177. -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  178. +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  179. +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 2`
  180. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  181. LD_OK="ok"
  182. else
  183. diff -dur gcc-3.3.3/libjava/configure gcc-3.3.3-p/libjava/configure
  184. --- gcc-3.3.3/libjava/configure 2004-02-14 21:34:20.000000000 +0100
  185. +++ gcc-3.3.3-p/libjava/configure 2004-11-04 02:31:20.000000000 +0100
  186. @@ -2965,8 +2965,8 @@
  187. echo "configure:2966: checking whether 'ld' is at least 2.13" >&5
  188. LD_PROG=`$CC --print-prog-name=ld`
  189. LD_VERSION=`$LD_PROG --version`
  190. -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  191. -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  192. +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  193. +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 2`
  194. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  195. LD_OK="ok"
  196. else
  197. diff -dur gcc-3.3.3/libstdc++-v3/acinclude.m4 gcc-3.3.3-p/libstdc++-v3/acinclude.m4
  198. --- gcc-3.3.3/libstdc++-v3/acinclude.m4 2003-09-11 05:08:35.000000000 +0200
  199. +++ gcc-3.3.3-p/libstdc++-v3/acinclude.m4 2004-11-04 02:30:52.000000000 +0100
  200. @@ -315,7 +315,7 @@
  201. # Start by getting the version number. I think the libtool test already
  202. # does some of this, but throws away the result.
  203. changequote(,)
  204. - ldver=`$LD --version 2>/dev/null | head -1 | \
  205. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  206. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  207. changequote([,])
  208. glibcpp_gnu_ld_version=`echo $ldver | \
  209. diff -dur gcc-3.3.3/libstdc++-v3/aclocal.m4 gcc-3.3.3-p/libstdc++-v3/aclocal.m4
  210. --- gcc-3.3.3/libstdc++-v3/aclocal.m4 2004-01-12 17:18:44.000000000 +0100
  211. +++ gcc-3.3.3-p/libstdc++-v3/aclocal.m4 2004-11-04 02:30:43.000000000 +0100
  212. @@ -327,7 +327,7 @@
  213. # Start by getting the version number. I think the libtool test already
  214. # does some of this, but throws away the result.
  215. changequote(,)
  216. - ldver=`$LD --version 2>/dev/null | head -1 | \
  217. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  218. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  219. changequote([,])
  220. glibcpp_gnu_ld_version=`echo $ldver | \
  221. diff -dur gcc-3.3.3/libstdc++-v3/configure gcc-3.3.3-p/libstdc++-v3/configure
  222. --- gcc-3.3.3/libstdc++-v3/configure 2004-01-12 17:18:45.000000000 +0100
  223. +++ gcc-3.3.3-p/libstdc++-v3/configure 2004-11-04 02:30:30.000000000 +0100
  224. @@ -4284,7 +4284,7 @@
  225. # Start by getting the version number. I think the libtool test already
  226. # does some of this, but throws away the result.
  227. - ldver=`$LD --version 2>/dev/null | head -1 | \
  228. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  229. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  230. glibcpp_gnu_ld_version=`echo $ldver | \
  231. @@ -5423,7 +5423,7 @@
  232. # Start by getting the version number. I think the libtool test already
  233. # does some of this, but throws away the result.
  234. - ldver=`$LD --version 2>/dev/null | head -1 | \
  235. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  236. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  237. glibcpp_gnu_ld_version=`echo $ldver | \
  238. @@ -6403,7 +6403,7 @@
  239. # Start by getting the version number. I think the libtool test already
  240. # does some of this, but throws away the result.
  241. - ldver=`$LD --version 2>/dev/null | head -1 | \
  242. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  243. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  244. glibcpp_gnu_ld_version=`echo $ldver | \
  245. @@ -7393,7 +7393,7 @@
  246. # Start by getting the version number. I think the libtool test already
  247. # does some of this, but throws away the result.
  248. - ldver=`$LD --version 2>/dev/null | head -1 | \
  249. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  250. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  251. glibcpp_gnu_ld_version=`echo $ldver | \
  252. @@ -8397,7 +8397,7 @@
  253. # Start by getting the version number. I think the libtool test already
  254. # does some of this, but throws away the result.
  255. - ldver=`$LD --version 2>/dev/null | head -1 | \
  256. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  257. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  258. glibcpp_gnu_ld_version=`echo $ldver | \
  259. @@ -9292,7 +9292,7 @@
  260. # Start by getting the version number. I think the libtool test already
  261. # does some of this, but throws away the result.
  262. - ldver=`$LD --version 2>/dev/null | head -1 | \
  263. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  264. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  265. glibcpp_gnu_ld_version=`echo $ldver | \
  266. @@ -10776,7 +10776,7 @@
  267. # Start by getting the version number. I think the libtool test already
  268. # does some of this, but throws away the result.
  269. - ldver=`$LD --version 2>/dev/null | head -1 | \
  270. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  271. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  272. glibcpp_gnu_ld_version=`echo $ldver | \
  273. diff -dur gcc-3.3.3/libstdc++-v3/mkcheck.in gcc-3.3.3-p/libstdc++-v3/mkcheck.in
  274. --- gcc-3.3.3/libstdc++-v3/mkcheck.in 2002-06-07 22:25:04.000000000 +0200
  275. +++ gcc-3.3.3-p/libstdc++-v3/mkcheck.in 2004-11-04 02:34:13.000000000 +0100
  276. @@ -181,9 +181,9 @@
  277. function size_command()
  278. {
  279. case $1 in
  280. - TEXT) TEXT=$(size -B $EXENAME | tail -1 | awk '{print $1}') ;;
  281. - DATA) DATA=$(size -B $EXENAME | tail -1 | awk '{print $2}') ;;
  282. - SIZE) SIZE=$(size -B $EXENAME | tail -1 | awk '{print $4}') ;;
  283. + TEXT) TEXT=$(size -B $EXENAME | tail -n1 | awk '{print $1}') ;;
  284. + DATA) DATA=$(size -B $EXENAME | tail -n1 | awk '{print $2}') ;;
  285. + SIZE) SIZE=$(size -B $EXENAME | tail -n1 | awk '{print $4}') ;;
  286. esac
  287. }
  288. else
  289. diff -dur gcc-3.3.3/ltcf-c.sh gcc-3.3.3-p/ltcf-c.sh
  290. --- gcc-3.3.3/ltcf-c.sh 2002-08-14 04:39:52.000000000 +0200
  291. +++ gcc-3.3.3-p/ltcf-c.sh 2004-11-04 02:30:01.000000000 +0100
  292. @@ -153,7 +153,7 @@
  293. # If the export-symbols file already is a .def file (1st line
  294. # is EXPORTS), use it as is.
  295. # If DATA tags from a recent dlltool are present, honour them!
  296. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  297. + archive_expsym_cmds='if test "x`head -n1 $export_symbols`" = xEXPORTS; then
  298. cp $export_symbols $output_objdir/$soname-def;
  299. else
  300. echo EXPORTS > $output_objdir/$soname-def;
  301. diff -dur gcc-3.3.3/ltcf-gcj.sh gcc-3.3.3-p/ltcf-gcj.sh
  302. --- gcc-3.3.3/ltcf-gcj.sh 2003-02-20 01:36:49.000000000 +0100
  303. +++ gcc-3.3.3-p/ltcf-gcj.sh 2004-11-04 02:29:46.000000000 +0100
  304. @@ -156,7 +156,7 @@
  305. # If the export-symbols file already is a .def file (1st line
  306. # is EXPORTS), use it as is.
  307. # If DATA tags from a recent dlltool are present, honour them!
  308. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  309. + archive_expsym_cmds='if test "x`head -n1 $export_symbols`" = xEXPORTS; then
  310. cp $export_symbols $output_objdir/$soname-def;
  311. else
  312. echo EXPORTS > $output_objdir/$soname-def;