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.

275 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/gcc41/head-tail.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 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. --- ./gcc/testsuite/ada/acats/run_all.sh.orig 2004-04-26 23:15:54.000000000 +0200
  20. +++ ./gcc/testsuite/ada/acats/run_all.sh 2005-03-25 19:24:49.000000000 +0100
  21. @@ -229,7 +229,7 @@
  22. ls ${i}?.adb > ${i}.lst 2> /dev/null
  23. ls ${i}*m.adb >> ${i}.lst 2> /dev/null
  24. ls ${i}.adb >> ${i}.lst 2> /dev/null
  25. - main=`tail -1 ${i}.lst`
  26. + main=`tail -n 1 ${i}.lst`
  27. binmain=`echo $main | sed -e 's/\(.*\)\..*/\1/g'`
  28. echo "BUILD $main" >> $dir/acats.log
  29. EXTERNAL_OBJECTS=""
  30. --- ./gcc/Makefile.in.orig 2005-02-17 09:47:19.000000000 +0100
  31. +++ ./gcc/Makefile.in 2005-03-25 19:24:31.000000000 +0100
  32. @@ -3898,8 +3898,8 @@
  33. for file in $$dir/*$(objext); do \
  34. case "$@" in \
  35. slowcompare* ) \
  36. - tail +16c ./$$file > tmp-foo1; \
  37. - tail +16c stage$$stage/$$file > tmp-foo2 \
  38. + tail -n +16c ./$$file > tmp-foo1; \
  39. + tail -n +16c stage$$stage/$$file > tmp-foo2 \
  40. && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \
  41. ;; \
  42. fastcompare* ) \
  43. --- ./gcc/configure.orig 2005-02-25 19:42:35.000000000 +0100
  44. +++ ./gcc/configure 2005-03-25 19:24:32.000000000 +0100
  45. @@ -13489,7 +13489,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 -n 3 > 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. --- ./gcc/configure.ac.orig 2005-02-25 19:42:35.000000000 +0100
  55. +++ ./gcc/configure.ac 2005-03-25 19:24:33.000000000 +0100
  56. @@ -2211,7 +2211,7 @@
  57. # and we got the correct data, then succeed.
  58. if test x$gcc_cv_objdump != x \
  59. && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
  60. - | tail -3 > conftest.got \
  61. + | tail -n 3 > conftest.got \
  62. && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
  63. || cmp conftest.big conftest.got > /dev/null 2>&1; }
  64. then
  65. --- ./config/acx.m4.orig 2004-08-14 00:31:45.000000000 +0200
  66. +++ ./config/acx.m4 2005-03-25 19:25:10.000000000 +0100
  67. @@ -228,7 +228,7 @@
  68. [AC_CACHE_CHECK([how to compare bootstrapped objects], gcc_cv_prog_cmp_skip,
  69. [ echo abfoo >t1
  70. echo cdfoo >t2
  71. - gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  72. + gcc_cv_prog_cmp_skip='tail -n +16c $$f1 > tmp-foo1; tail -n +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  73. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  74. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  75. :
  76. --- ./contrib/test_summary.orig 2004-08-26 07:51:22.000000000 +0200
  77. +++ ./contrib/test_summary 2005-03-25 19:25:10.628454344 +0100
  78. @@ -106,7 +106,7 @@
  79. srcdir = configflags;
  80. sub(/\/configure .*/, "", srcdir);
  81. printf "LAST_UPDATED: ";
  82. - system("tail -1 " srcdir "/LAST_UPDATED");
  83. + system("tail -n 1 " srcdir "/LAST_UPDATED");
  84. print "";
  85. sub(/^[^ ]*\/configure */, " ", configflags);
  86. --- ./libjava/acinclude.m4.orig 2004-09-23 03:14:00.000000000 +0200
  87. +++ ./libjava/acinclude.m4 2005-03-25 19:25:17.422421504 +0100
  88. @@ -17,8 +17,8 @@
  89. AC_MSG_CHECKING(whether 'ld' is at least 2.13)
  90. LD_PROG=`$CC --print-prog-name=ld`
  91. LD_VERSION=`$LD_PROG --version`
  92. -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  93. -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  94. +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  95. +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
  96. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  97. LD_OK="ok"
  98. else
  99. --- ./libjava/configure.orig 2005-03-20 00:15:42.000000000 +0100
  100. +++ ./libjava/configure 2005-03-25 19:25:17.592395664 +0100
  101. @@ -5918,8 +5918,8 @@
  102. echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
  103. LD_PROG=`$CC --print-prog-name=ld`
  104. LD_VERSION=`$LD_PROG --version`
  105. -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  106. -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  107. +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  108. +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
  109. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  110. LD_OK="ok"
  111. else
  112. --- ./libstdc++-v3/scripts/check_survey.in.orig 2003-07-05 08:00:05.000000000 +0200
  113. +++ ./libstdc++-v3/scripts/check_survey.in 2005-03-25 19:25:38.663192416 +0100
  114. @@ -182,9 +182,9 @@
  115. function size_command()
  116. {
  117. case $1 in
  118. - TEXT) TEXT=$(size -B $EXENAME | tail -1 | awk '{print $1}') ;;
  119. - DATA) DATA=$(size -B $EXENAME | tail -1 | awk '{print $2}') ;;
  120. - SIZE) SIZE=$(size -B $EXENAME | tail -1 | awk '{print $4}') ;;
  121. + TEXT) TEXT=$(size -B $EXENAME | tail -n 1 | awk '{print $1}') ;;
  122. + DATA) DATA=$(size -B $EXENAME | tail -n 1 | awk '{print $2}') ;;
  123. + SIZE) SIZE=$(size -B $EXENAME | tail -n 1 | awk '{print $4}') ;;
  124. esac
  125. }
  126. else
  127. --- ./libstdc++-v3/acinclude.m4.orig 2005-02-24 19:55:16.000000000 +0100
  128. +++ ./libstdc++-v3/acinclude.m4 2005-03-25 19:25:34.534820024 +0100
  129. @@ -241,7 +241,7 @@
  130. # Start by getting the version number. I think the libtool test already
  131. # does some of this, but throws away the result.
  132. changequote(,)
  133. - ldver=`$LD --version 2>/dev/null | head -1 | \
  134. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  135. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  136. changequote([,])
  137. glibcxx_gnu_ld_version=`echo $ldver | \
  138. --- ./libstdc++-v3/configure.orig 2005-02-24 19:55:17.000000000 +0100
  139. +++ ./libstdc++-v3/configure 2005-03-25 19:25:35.386690520 +0100
  140. @@ -9880,7 +9880,7 @@
  141. # Start by getting the version number. I think the libtool test already
  142. # does some of this, but throws away the result.
  143. - ldver=`$LD --version 2>/dev/null | head -1 | \
  144. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  145. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  146. glibcxx_gnu_ld_version=`echo $ldver | \
  147. @@ -55252,7 +55252,7 @@
  148. # Start by getting the version number. I think the libtool test already
  149. # does some of this, but throws away the result.
  150. - ldver=`$LD --version 2>/dev/null | head -1 | \
  151. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  152. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  153. glibcxx_gnu_ld_version=`echo $ldver | \
  154. @@ -76923,7 +76923,7 @@
  155. # Start by getting the version number. I think the libtool test already
  156. # does some of this, but throws away the result.
  157. - ldver=`$LD --version 2>/dev/null | head -1 | \
  158. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  159. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  160. glibcxx_gnu_ld_version=`echo $ldver | \
  161. @@ -79292,7 +79292,7 @@
  162. # Start by getting the version number. I think the libtool test already
  163. # does some of this, but throws away the result.
  164. - ldver=`$LD --version 2>/dev/null | head -1 | \
  165. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  166. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  167. glibcxx_gnu_ld_version=`echo $ldver | \
  168. @@ -81537,7 +81537,7 @@
  169. # Start by getting the version number. I think the libtool test already
  170. # does some of this, but throws away the result.
  171. - ldver=`$LD --version 2>/dev/null | head -1 | \
  172. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  173. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  174. glibcxx_gnu_ld_version=`echo $ldver | \
  175. @@ -84550,7 +84550,7 @@
  176. # Start by getting the version number. I think the libtool test already
  177. # does some of this, but throws away the result.
  178. - ldver=`$LD --version 2>/dev/null | head -1 | \
  179. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  180. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  181. glibcxx_gnu_ld_version=`echo $ldver | \
  182. @@ -86748,7 +86748,7 @@
  183. # Start by getting the version number. I think the libtool test already
  184. # does some of this, but throws away the result.
  185. - ldver=`$LD --version 2>/dev/null | head -1 | \
  186. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  187. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  188. glibcxx_gnu_ld_version=`echo $ldver | \
  189. @@ -88995,7 +88995,7 @@
  190. # Start by getting the version number. I think the libtool test already
  191. # does some of this, but throws away the result.
  192. - ldver=`$LD --version 2>/dev/null | head -1 | \
  193. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  194. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  195. glibcxx_gnu_ld_version=`echo $ldver | \
  196. @@ -91603,7 +91603,7 @@
  197. # Start by getting the version number. I think the libtool test already
  198. # does some of this, but throws away the result.
  199. - ldver=`$LD --version 2>/dev/null | head -1 | \
  200. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  201. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  202. glibcxx_gnu_ld_version=`echo $ldver | \
  203. @@ -95660,7 +95660,7 @@
  204. # Start by getting the version number. I think the libtool test already
  205. # does some of this, but throws away the result.
  206. - ldver=`$LD --version 2>/dev/null | head -1 | \
  207. + ldver=`$LD --version 2>/dev/null | head -n 1 | \
  208. sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
  209. glibcxx_gnu_ld_version=`echo $ldver | \
  210. --- ./ChangeLog.orig 2005-03-14 02:37:04.000000000 +0100
  211. +++ ./ChangeLog 2005-03-25 19:25:09.070691160 +0100
  212. @@ -10853,7 +10853,7 @@
  213. to i386-sco3.2v4. Set TARGETS and CFLAGS for i386-sco3.2v4.
  214. (all-cygnus, native, build-cygnus): Make
  215. $(canonhost)-stamp-3stage-done, not $(host)....
  216. - * test-build.mk (stamp-3stage-compared): Use tail +10c for
  217. + * test-build.mk (stamp-3stage-compared): Use tail -n +10c for
  218. i386-sco3.2v4. Added else true to if command.
  219. Mon Dec 28 12:08:56 1992 Ken Raeburn (raeburn@cygnus.com)
  220. --- ./configure.orig 2005-02-23 11:12:44.000000000 +0100
  221. +++ ./configure 2005-03-25 19:25:09.490627320 +0100
  222. @@ -2158,7 +2158,7 @@
  223. else
  224. echo abfoo >t1
  225. echo cdfoo >t2
  226. - gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  227. + gcc_cv_prog_cmp_skip='tail -n +16c $$f1 > tmp-foo1; tail -n +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  228. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  229. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  230. :
  231. --- ./ltcf-c.sh.orig 2004-10-02 18:33:06.000000000 +0200
  232. +++ ./ltcf-c.sh 2005-03-25 19:25:09.537620176 +0100
  233. @@ -153,7 +153,7 @@
  234. # If the export-symbols file already is a .def file (1st line
  235. # is EXPORTS), use it as is.
  236. # If DATA tags from a recent dlltool are present, honour them!
  237. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  238. + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
  239. cp $export_symbols $output_objdir/$soname-def;
  240. else
  241. echo EXPORTS > $output_objdir/$soname-def;
  242. --- ./ltcf-gcj.sh.orig 2004-04-27 08:14:30.000000000 +0200
  243. +++ ./ltcf-gcj.sh 2005-03-25 19:25:09.554617592 +0100
  244. @@ -156,7 +156,7 @@
  245. # If the export-symbols file already is a .def file (1st line
  246. # is EXPORTS), use it as is.
  247. # If DATA tags from a recent dlltool are present, honour them!
  248. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  249. + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
  250. cp $export_symbols $output_objdir/$soname-def;
  251. else
  252. echo EXPORTS > $output_objdir/$soname-def;