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.

259 lines
12 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/gcc/gcc34/head-tail.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -dur gcc-3.4.2/contrib/test_summary gcc-3.4.2-p/contrib/test_summary
  20. --- gcc-3.4.2/contrib/test_summary 2004-08-26 07:49:13.000000000 +0200
  21. +++ gcc-3.4.2-p/contrib/test_summary 2004-11-05 02:27:04.000000000 +0100
  22. @@ -106,7 +106,7 @@
  23. srcdir = configflags;
  24. sub(/\/configure .*/, "", srcdir);
  25. printf "LAST_UPDATED: ";
  26. - system("tail -1 " srcdir "/LAST_UPDATED");
  27. + system("tail -n1 " srcdir "/LAST_UPDATED");
  28. print "";
  29. sub(/^[^ ]*\/configure */, " ", configflags);
  30. diff -dur gcc-3.4.2/gcc/configure gcc-3.4.2-p/gcc/configure
  31. --- gcc-3.4.2/gcc/configure 2004-07-13 08:58:29.000000000 +0200
  32. +++ gcc-3.4.2-p/gcc/configure 2004-11-05 02:27:05.000000000 +0100
  33. @@ -10127,7 +10127,7 @@
  34. # and we got the correct data, then succeed.
  35. if test x$gcc_cv_objdump != x \
  36. && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
  37. - | tail -3 > conftest.got \
  38. + | tail -n3 > conftest.got \
  39. && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
  40. || cmp conftest.big conftest.got > /dev/null 2>&1; }
  41. then
  42. diff -dur gcc-3.4.2/gcc/configure.ac gcc-3.4.2-p/gcc/configure.ac
  43. --- gcc-3.4.2/gcc/configure.ac 2004-07-13 08:58:29.000000000 +0200
  44. +++ gcc-3.4.2-p/gcc/configure.ac 2004-11-05 02:27:05.000000000 +0100
  45. @@ -2018,7 +2018,7 @@
  46. # and we got the correct data, then succeed.
  47. if test x$gcc_cv_objdump != x \
  48. && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
  49. - | tail -3 > conftest.got \
  50. + | tail -n3 > conftest.got \
  51. && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
  52. || cmp conftest.big conftest.got > /dev/null 2>&1; }
  53. then
  54. diff -dur gcc-3.4.2/gcc/testsuite/ada/acats/run_all.sh gcc-3.4.2-p/gcc/testsuite/ada/acats/run_all.sh
  55. --- gcc-3.4.2/gcc/testsuite/ada/acats/run_all.sh 2004-01-13 12:48:46.000000000 +0100
  56. +++ gcc-3.4.2-p/gcc/testsuite/ada/acats/run_all.sh 2004-11-05 02:27:05.000000000 +0100
  57. @@ -204,7 +204,7 @@
  58. ls ${i}?.adb > ${i}.lst 2> /dev/null
  59. ls ${i}*m.adb >> ${i}.lst 2> /dev/null
  60. ls ${i}.adb >> ${i}.lst 2> /dev/null
  61. - main=`tail -1 ${i}.lst`
  62. + main=`tail -n1 ${i}.lst`
  63. binmain=`echo $main | sed -e 's/\(.*\)\..*/\1/g'`
  64. echo "BUILD $main" >> $dir/acats.log
  65. EXTERNAL_OBJECTS=""
  66. diff -dur gcc-3.4.2/libjava/acinclude.m4 gcc-3.4.2-p/libjava/acinclude.m4
  67. --- gcc-3.4.2/libjava/acinclude.m4 2003-12-31 09:58:29.000000000 +0100
  68. +++ gcc-3.4.2-p/libjava/acinclude.m4 2004-11-05 02:27:05.000000000 +0100
  69. @@ -250,8 +250,8 @@
  70. AC_MSG_CHECKING(whether 'ld' is at least 2.13)
  71. LD_PROG=`$CC --print-prog-name=ld`
  72. LD_VERSION=`$LD_PROG --version`
  73. -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  74. -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  75. +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  76. +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 2`
  77. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  78. LD_OK="ok"
  79. else
  80. diff -dur gcc-3.4.2/libjava/aclocal.m4 gcc-3.4.2-p/libjava/aclocal.m4
  81. --- gcc-3.4.2/libjava/aclocal.m4 2004-09-07 01:31:35.000000000 +0200
  82. +++ gcc-3.4.2-p/libjava/aclocal.m4 2004-11-05 02:27:05.000000000 +0100
  83. @@ -262,8 +262,8 @@
  84. AC_MSG_CHECKING(whether 'ld' is at least 2.13)
  85. LD_PROG=`$CC --print-prog-name=ld`
  86. LD_VERSION=`$LD_PROG --version`
  87. -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  88. -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  89. +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  90. +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 2`
  91. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  92. LD_OK="ok"
  93. else
  94. diff -dur gcc-3.4.2/libjava/configure gcc-3.4.2-p/libjava/configure
  95. --- gcc-3.4.2/libjava/configure 2004-09-07 01:31:35.000000000 +0200
  96. +++ gcc-3.4.2-p/libjava/configure 2004-11-05 02:27:05.000000000 +0100
  97. @@ -3015,8 +3015,8 @@
  98. echo "configure:3016: checking whether 'ld' is at least 2.13" >&5
  99. LD_PROG=`$CC --print-prog-name=ld`
  100. LD_VERSION=`$LD_PROG --version`
  101. -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  102. -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  103. +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  104. +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n1 | cut -d '.' -f 2`
  105. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  106. LD_OK="ok"
  107. else
  108. diff -dur gcc-3.4.2/libstdc++-v3/acinclude.m4 gcc-3.4.2-p/libstdc++-v3/acinclude.m4
  109. --- gcc-3.4.2/libstdc++-v3/acinclude.m4 2004-07-15 19:42:45.000000000 +0200
  110. +++ gcc-3.4.2-p/libstdc++-v3/acinclude.m4 2004-11-05 02:27:05.000000000 +0100
  111. @@ -273,7 +273,7 @@
  112. # Start by getting the version number. I think the libtool test already
  113. # does some of this, but throws away the result.
  114. changequote(,)
  115. - ldver=`$LD --version 2>/dev/null | head -1 | \
  116. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  117. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  118. changequote([,])
  119. glibcxx_gnu_ld_version=`echo $ldver | \
  120. diff -dur gcc-3.4.2/libstdc++-v3/aclocal.m4 gcc-3.4.2-p/libstdc++-v3/aclocal.m4
  121. --- gcc-3.4.2/libstdc++-v3/aclocal.m4 2004-08-13 22:44:03.000000000 +0200
  122. +++ gcc-3.4.2-p/libstdc++-v3/aclocal.m4 2004-11-05 02:27:05.000000000 +0100
  123. @@ -286,7 +286,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. changequote(,)
  127. - ldver=`$LD --version 2>/dev/null | head -1 | \
  128. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  129. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  130. changequote([,])
  131. glibcxx_gnu_ld_version=`echo $ldver | \
  132. diff -dur gcc-3.4.2/libstdc++-v3/configure gcc-3.4.2-p/libstdc++-v3/configure
  133. --- gcc-3.4.2/libstdc++-v3/configure 2004-08-13 22:44:04.000000000 +0200
  134. +++ gcc-3.4.2-p/libstdc++-v3/configure 2004-11-05 02:34:23.000000000 +0100
  135. @@ -8168,7 +8168,7 @@
  136. # Start by getting the version number. I think the libtool test already
  137. # does some of this, but throws away the result.
  138. - ldver=`$LD --version 2>/dev/null | head -1 | \
  139. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  140. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  141. glibcxx_gnu_ld_version=`echo $ldver | \
  142. @@ -53531,7 +53531,7 @@
  143. # Start by getting the version number. I think the libtool test already
  144. # does some of this, but throws away the result.
  145. - ldver=`$LD --version 2>/dev/null | head -1 | \
  146. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  147. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  148. glibcxx_gnu_ld_version=`echo $ldver | \
  149. @@ -75201,7 +75201,7 @@
  150. # Start by getting the version number. I think the libtool test already
  151. # does some of this, but throws away the result.
  152. - ldver=`$LD --version 2>/dev/null | head -1 | \
  153. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  154. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  155. glibcxx_gnu_ld_version=`echo $ldver | \
  156. @@ -77569,7 +77569,7 @@
  157. # Start by getting the version number. I think the libtool test already
  158. # does some of this, but throws away the result.
  159. - ldver=`$LD --version 2>/dev/null | head -1 | \
  160. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  161. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  162. glibcxx_gnu_ld_version=`echo $ldver | \
  163. @@ -79813,7 +79813,7 @@
  164. # Start by getting the version number. I think the libtool test already
  165. # does some of this, but throws away the result.
  166. - ldver=`$LD --version 2>/dev/null | head -1 | \
  167. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  168. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  169. glibcxx_gnu_ld_version=`echo $ldver | \
  170. @@ -82825,7 +82825,7 @@
  171. # Start by getting the version number. I think the libtool test already
  172. # does some of this, but throws away the result.
  173. - ldver=`$LD --version 2>/dev/null | head -1 | \
  174. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  175. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  176. glibcxx_gnu_ld_version=`echo $ldver | \
  177. @@ -85022,7 +85022,7 @@
  178. # Start by getting the version number. I think the libtool test already
  179. # does some of this, but throws away the result.
  180. - ldver=`$LD --version 2>/dev/null | head -1 | \
  181. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  182. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  183. glibcxx_gnu_ld_version=`echo $ldver | \
  184. @@ -87110,7 +87110,7 @@
  185. # Start by getting the version number. I think the libtool test already
  186. # does some of this, but throws away the result.
  187. - ldver=`$LD --version 2>/dev/null | head -1 | \
  188. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  189. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  190. glibcxx_gnu_ld_version=`echo $ldver | \
  191. @@ -91165,7 +91165,7 @@
  192. # Start by getting the version number. I think the libtool test already
  193. # does some of this, but throws away the result.
  194. - ldver=`$LD --version 2>/dev/null | head -1 | \
  195. + ldver=`$LD --version 2>/dev/null | head -n1 | \
  196. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  197. glibcxx_gnu_ld_version=`echo $ldver | \
  198. Nur in gcc-3.4.2-p/libstdc++-v3: configure~.
  199. Nur in gcc-3.4.2-p/libstdc++-v3: configure.rej.
  200. diff -dur gcc-3.4.2/libstdc++-v3/scripts/check_survey.in gcc-3.4.2-p/libstdc++-v3/scripts/check_survey.in
  201. --- gcc-3.4.2/libstdc++-v3/scripts/check_survey.in 2003-07-05 08:00:05.000000000 +0200
  202. +++ gcc-3.4.2-p/libstdc++-v3/scripts/check_survey.in 2004-11-05 02:27:05.000000000 +0100
  203. @@ -182,9 +182,9 @@
  204. function size_command()
  205. {
  206. case $1 in
  207. - TEXT) TEXT=$(size -B $EXENAME | tail -1 | awk '{print $1}') ;;
  208. - DATA) DATA=$(size -B $EXENAME | tail -1 | awk '{print $2}') ;;
  209. - SIZE) SIZE=$(size -B $EXENAME | tail -1 | awk '{print $4}') ;;
  210. + TEXT) TEXT=$(size -B $EXENAME | tail -n1 | awk '{print $1}') ;;
  211. + DATA) DATA=$(size -B $EXENAME | tail -n1 | awk '{print $2}') ;;
  212. + SIZE) SIZE=$(size -B $EXENAME | tail -n1 | awk '{print $4}') ;;
  213. esac
  214. }
  215. else
  216. diff -dur gcc-3.4.2/ltcf-c.sh gcc-3.4.2-p/ltcf-c.sh
  217. --- gcc-3.4.2/ltcf-c.sh 2003-11-19 06:29:32.000000000 +0100
  218. +++ gcc-3.4.2-p/ltcf-c.sh 2004-11-05 02:27:05.000000000 +0100
  219. @@ -153,7 +153,7 @@
  220. # If the export-symbols file already is a .def file (1st line
  221. # is EXPORTS), use it as is.
  222. # If DATA tags from a recent dlltool are present, honour them!
  223. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  224. + archive_expsym_cmds='if test "x`head -n1 $export_symbols`" = xEXPORTS; then
  225. cp $export_symbols $output_objdir/$soname-def;
  226. else
  227. echo EXPORTS > $output_objdir/$soname-def;
  228. diff -dur gcc-3.4.2/ltcf-gcj.sh gcc-3.4.2-p/ltcf-gcj.sh
  229. --- gcc-3.4.2/ltcf-gcj.sh 2003-11-19 06:29:32.000000000 +0100
  230. +++ gcc-3.4.2-p/ltcf-gcj.sh 2004-11-05 02:27:05.000000000 +0100
  231. @@ -156,7 +156,7 @@
  232. # If the export-symbols file already is a .def file (1st line
  233. # is EXPORTS), use it as is.
  234. # If DATA tags from a recent dlltool are present, honour them!
  235. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  236. + archive_expsym_cmds='if test "x`head -n1 $export_symbols`" = xEXPORTS; then
  237. cp $export_symbols $output_objdir/$soname-def;
  238. else
  239. echo EXPORTS > $output_objdir/$soname-def;