1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.3.6/250-csu-Makefile.patch Sat Aug 09 18:06:43 2008 +0000
1.3 @@ -0,0 +1,39 @@
1.4 +Use printf instead of echo for some shells.
1.5 +
1.6 +http://www.cygwin.com/ml/libc-alpha/2005-02/msg00123.html
1.7 +
1.8 +This patch does not generate invalid csu/version-info.h which has
1.9 +unterminating " line because some /bin/sh cannot parse correctly. The
1.10 +previous discussion was:
1.11 +
1.12 + http://sources.redhat.com/ml/libc-alpha/2004-08/msg00129.html
1.13 + http://sources.redhat.com/ml/libc-alpha/2004-08/msg00145.html
1.14 +
1.15 +This patch gets rid of all this issue because the conclusion of the
1.16 +discussion was to use printf instead of echo. Roland, could you look
1.17 +at it again?
1.18 +
1.19 +Regards,
1.20 +-- gotom
1.21 +
1.22 +2005-02-26 GOTO Masanori <gotom@debian.or.jp>
1.23 +
1.24 + * csu/Makefile: Use printf instead of echo for some shells.
1.25 +
1.26 +Index: csu/Makefile
1.27 +===================================================================
1.28 +RCS file: /cvs/glibc/libc/csu/Makefile,v
1.29 +retrieving revision 1.75
1.30 +diff -u -p -r1.75 Makefile
1.31 +--- glibc/csu/Makefile 3 Jan 2005 17:57:14 -0000 1.75
1.32 ++++ glibc.new/csu/Makefile 27 Feb 2005 01:17:49 -0000
1.33 +@@ -241,7 +241,7 @@ $(objpfx)version-info.h: $(common-objpfx
1.34 + esac; \
1.35 + files="$(all-Banner-files)"; \
1.36 + if test -n "$$files"; then \
1.37 +- echo "\"Available extensions:\\n\""; \
1.38 ++ printf '"Available extensions:\\n"\n'; \
1.39 + sed -e '/^#/d' -e 's/^[[:space:]]*/ /' \
1.40 + -e 's/^\(.*\)$$/\"\1\\n\"/' $$files; \
1.41 + fi) > $@T
1.42 +