source: clfs-sysroot/patches/binutils-2.19.1-posix-1.patch@ d000c53

Last change on this file since d000c53 was e711c4b, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Updated Binutils to 2.19.1.

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[e711c4b]1Submitted By: Jim Gifford (jim at cross-lfs dot org)
2Date: 2009-02-03
3Initial Package Version: 2.19.1
[8f3d581]4Origin: http://ttervo.vectorstar.net/nptl/posix-patches/binutils-2.14.90.0.7-posix-head-tail.patch
5Upstream Status: Accepted/but Suspended
6Description: Makes Posix Compliant
[e711c4b]7 Rediffed for 2.19.1
[8f3d581]8
[e711c4b]9diff -Naur binutils-2.19.1.orig/gas/Makefile.am binutils-2.19.1/gas/Makefile.am
10--- binutils-2.19.1.orig/gas/Makefile.am 2009-01-14 00:50:17.000000000 -0800
11+++ binutils-2.19.1/gas/Makefile.am 2009-02-03 08:38:25.477991618 -0800
12@@ -810,13 +810,13 @@
[8f3d581]13 against=stage2
14
15 # This rule is derived from corresponding code in the Makefile.in for gcc.
16-# The "tail +16c" is to bypass headers which may include timestamps or
17+# The "tail -c +16" is to bypass headers which may include timestamps or
18 # temporary assembly file names.
19 comparison:
20 x=0 ; \
21 for file in *.o ; do \
22- tail +16c ./$$file > tmp-foo1; \
23- if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
24+ tail -c +16 ./$$file > tmp-foo1; \
25+ if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
26 if cmp tmp-foo1 tmp-foo2 ; then \
27 true ; \
28 else \
[e711c4b]29diff -Naur binutils-2.19.1.orig/gas/Makefile.in binutils-2.19.1/gas/Makefile.in
30--- binutils-2.19.1.orig/gas/Makefile.in 2009-01-14 00:50:17.000000000 -0800
31+++ binutils-2.19.1/gas/Makefile.in 2009-02-03 08:38:25.477991618 -0800
32@@ -2774,13 +2774,13 @@
[8f3d581]33 if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi
34
35 # This rule is derived from corresponding code in the Makefile.in for gcc.
36-# The "tail +16c" is to bypass headers which may include timestamps or
37+# The "tail -c +16" is to bypass headers which may include timestamps or
38 # temporary assembly file names.
39 comparison:
40 x=0 ; \
41 for file in *.o ; do \
42- tail +16c ./$$file > tmp-foo1; \
43- if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
44+ tail -c +16 ./$$file > tmp-foo1; \
45+ if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \
46 if cmp tmp-foo1 tmp-foo2 ; then \
47 true ; \
48 else \
[e711c4b]49diff -Naur binutils-2.19.1.orig/ld/testsuite/ld-bootstrap/bootstrap.exp binutils-2.19.1/ld/testsuite/ld-bootstrap/bootstrap.exp
50--- binutils-2.19.1.orig/ld/testsuite/ld-bootstrap/bootstrap.exp 2007-07-06 07:09:42.000000000 -0700
51+++ binutils-2.19.1/ld/testsuite/ld-bootstrap/bootstrap.exp 2009-02-03 08:38:25.481991618 -0800
[6cde7ca]52@@ -152,8 +152,8 @@
[8f3d581]53 # Although this works, a way to set the date would be better.
54 # Removing or zeroing the date stamp in the binary produced by
55 # the linker is not possible as it is required by the target OS.
56- exec tail +140 tmpdir/ld2 >tmpdir/ld2tail
57- exec tail +140 tmpdir/ld3 >tmpdir/ld3tail
58+ exec tail -n +140 tmpdir/ld2 >tmpdir/ld2tail
59+ exec tail -n +140 tmpdir/ld3 >tmpdir/ld3tail
60 catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output
61 exec rm tmpdir/ld2tail tmpdir/ld3tail
62 } else {
[e711c4b]63diff -Naur binutils-2.19.1.orig/src-release binutils-2.19.1/src-release
64--- binutils-2.19.1.orig/src-release 2008-06-18 16:20:43.000000000 -0700
65+++ binutils-2.19.1/src-release 2009-02-03 08:38:25.481991618 -0800
66@@ -71,7 +71,7 @@
[8f3d581]67 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
68 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
69 elif test -f $(TOOL)/version.in; then \
70- head -1 $(TOOL)/version.in; \
71+ head -n 1 $(TOOL)/version.in; \
72 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
73 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
74 else \
Note: See TracBrowser for help on using the repository browser.