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.

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