Backport #627 from trunk: 1.1
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu May 15 20:54:06 2008 +0000 (2008-05-15)
branch1.1
changeset 51059d231e1c220
parent 509 7a5605439e92
child 511 1b0c1de0bcc9
Backport #627 from trunk:
Add a patch to the ageing glibc-2.3.6 to make it compile on stupid shells that have a defective implementation of echo.
Thanks to Willy Tarreau for pointing to the patch.

/branches/1.1/docs/CREDITS | 4 4 0 0 ++++
1 file changed, 4 insertions(+)
docs/CREDITS
patches/glibc/2.3.6/250-csu-Makefile.patch
     1.1 --- a/docs/CREDITS	Thu May 15 20:52:02 2008 +0000
     1.2 +++ b/docs/CREDITS	Thu May 15 20:54:06 2008 +0000
     1.3 @@ -39,6 +39,10 @@
     1.4    Michael Abbott:
     1.5      - make it build with ancient findutils
     1.6  
     1.7 +  Willy Tarreau:
     1.8 +    - a patch to glibc to build on 'ancient' shells
     1.9 +    - reported mis-use of $CT_CC_NATIVE
    1.10 +
    1.11    Many others have contributed, either in form of patches, suggestions,
    1.12    comments, or testing... Thank you to all of you!
    1.13  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/patches/glibc/2.3.6/250-csu-Makefile.patch	Thu May 15 20:54:06 2008 +0000
     2.3 @@ -0,0 +1,39 @@
     2.4 +Use printf instead of echo for some shells.
     2.5 +
     2.6 +http://www.cygwin.com/ml/libc-alpha/2005-02/msg00123.html
     2.7 +
     2.8 +This patch does not generate invalid csu/version-info.h which has
     2.9 +unterminating " line because some /bin/sh cannot parse correctly.  The
    2.10 +previous discussion was:
    2.11 +
    2.12 +	http://sources.redhat.com/ml/libc-alpha/2004-08/msg00129.html
    2.13 +	http://sources.redhat.com/ml/libc-alpha/2004-08/msg00145.html
    2.14 +
    2.15 +This patch gets rid of all this issue because the conclusion of the
    2.16 +discussion was to use printf instead of echo.  Roland, could you look
    2.17 +at it again?
    2.18 +
    2.19 +Regards,
    2.20 +-- gotom
    2.21 +
    2.22 +2005-02-26  GOTO Masanori  <gotom@debian.or.jp>
    2.23 +
    2.24 +	* csu/Makefile: Use printf instead of echo for some shells.
    2.25 +
    2.26 +Index: csu/Makefile
    2.27 +===================================================================
    2.28 +RCS file: /cvs/glibc/libc/csu/Makefile,v
    2.29 +retrieving revision 1.75
    2.30 +diff -u -p -r1.75 Makefile
    2.31 +--- glibc/csu/Makefile	3 Jan 2005 17:57:14 -0000	1.75
    2.32 ++++ glibc.new/csu/Makefile	27 Feb 2005 01:17:49 -0000
    2.33 +@@ -241,7 +241,7 @@ $(objpfx)version-info.h: $(common-objpfx
    2.34 + 	 esac; \
    2.35 + 	 files="$(all-Banner-files)";				\
    2.36 + 	 if test -n "$$files"; then				\
    2.37 +-	   echo "\"Available extensions:\\n\"";			\
    2.38 ++	   printf '"Available extensions:\\n"\n';		\
    2.39 + 	   sed -e '/^#/d' -e 's/^[[:space:]]*/	/'		\
    2.40 + 	       -e 's/^\(.*\)$$/\"\1\\n\"/' $$files;		\
    2.41 + 	 fi) > $@T
    2.42 +