patches/glibc/2.3.6/260-csu-Makefile.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 14 21:30:27 2008 +0000 (2008-10-14)
changeset 935 e175e3538310
parent 495 276501e872e5
permissions -rw-r--r--
Introduce the notion of a 'sample comment'.

- presence of the sample's reported.by file is now mandatory.
- when saving a sample, reporter name & URL are queried, to avoid operator forget about creating the reported.by file.
- when saving a sample, one can store a few-liner comment.
- when recalling a sample, the reporter name, URL and comment (if present) are printed.
- update the powerpc-e500v2-linux-gnuspe sample to include Nate's comment (from his original mail).
- update all samples that were missing the reported.by file.

/trunk/scripts/saveSample.sh | 46 35 11 0 ++++++++++++++++++------
/trunk/scripts/showSamples.sh | 12 6 6 0 +++---
/trunk/samples/powerpc-e500v2-linux-gnuspe/reported.by | 15 15 0 0 ++++++++
/trunk/samples/samples.mk | 22 17 5 0 +++++++++--
4 files changed, 73 insertions(+), 22 deletions(-)
     1 Use printf instead of echo for some shells.
     2 
     3 http://www.cygwin.com/ml/libc-alpha/2005-02/msg00123.html
     4 
     5 This patch does not generate invalid csu/version-info.h which has
     6 unterminating " line because some /bin/sh cannot parse correctly.  The
     7 previous discussion was:
     8 
     9 	http://sources.redhat.com/ml/libc-alpha/2004-08/msg00129.html
    10 	http://sources.redhat.com/ml/libc-alpha/2004-08/msg00145.html
    11 
    12 This patch gets rid of all this issue because the conclusion of the
    13 discussion was to use printf instead of echo.  Roland, could you look
    14 at it again?
    15 
    16 Regards,
    17 -- gotom
    18 
    19 2005-02-26  GOTO Masanori  <gotom@debian.or.jp>
    20 
    21 	* csu/Makefile: Use printf instead of echo for some shells.
    22 
    23 Index: csu/Makefile
    24 ===================================================================
    25 RCS file: /cvs/glibc/libc/csu/Makefile,v
    26 retrieving revision 1.75
    27 diff -u -p -r1.75 Makefile
    28 --- glibc/csu/Makefile	3 Jan 2005 17:57:14 -0000	1.75
    29 +++ glibc.new/csu/Makefile	27 Feb 2005 01:17:49 -0000
    30 @@ -241,7 +241,7 @@ $(objpfx)version-info.h: $(common-objpfx
    31  	 esac; \
    32  	 files="$(all-Banner-files)";				\
    33  	 if test -n "$$files"; then				\
    34 -	   echo "\"Available extensions:\\n\"";			\
    35 +	   printf '"Available extensions:\\n"\n';		\
    36  	   sed -e '/^#/d' -e 's/^[[:space:]]*/	/'		\
    37  	       -e 's/^\(.*\)$$/\"\1\\n\"/' $$files;		\
    38  	 fi) > $@T
    39