#1962: Glibc fails to build using dash
------------------------------------------+---------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  [email protected]
     Type:  defect                        |       Status:  new                  
        
 Priority:  normal                        |    Milestone:  6.3                  
        
Component:  Book                          |      Version:  SVN                  
        
 Severity:  normal                        |   Resolution:                       
        
 Keywords:                                |  
------------------------------------------+---------------------------------
Comment (by [EMAIL PROTECTED]):

 Re option 3 - The problem was that version-info.h contained
 {{{
 "Compiled on a Linux 2.6.12 system on 2007-02-14.\n"
 "Available extensions:
 "
 }}}
  (note these lines are missing their ending '\n"')

  which comes from (line wrapped when I originally posted it from my own
 log)

 {{{
  files="../libio/Banner ../crypt/Banner ../libidn/Banner
 ../nptl/Banner ../resolv/Banner ../nis/Banner";
 \
  if test -n "$files"; then                              \
    echo "\"Available extensions:\\n\"";                 \
                             ^^^^^^^^^

    sed -e '/^#/d' -e 's/^[[:space:]]*/  /'              \
        -e 's/^\(.*\)$/\"\1\\n\ fi) > /usr/src/glibc-build/csu/version-
 info.hT
 mv -f /usr/src/glibc-build/csu/version-info.hT
 /usr/src/glibc-build/csu/version-info.h
 "/' $files;               \
 }}}
  So, it seems to be dash's 'echo' command which is the problem.  I think
 I've seen something similar from an unpatched bash-3.1 on my own builds.

 Personally, I prefer option 1.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/1962#comment:1>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to