Package: glibc
Version: 2.3.7-2; reported 2003-09-15
Followup-For: Bug #207391

I've gotten this newline issue in version-info.h both while building from
non-modified sources for i386 and my own modified sources for i686. 

I'm not sure if it's a bug in make in the way it passes the argument, a bug in
echo in coreutils or a shell bug.

The \\n\" sequence used in this section of the Makefile causes the newline
character to be interpreted, instead of the double backslash being interpreted
as a one.  The below patch works around the problem.  I'm using the latest
versions of all the build-dependencies from unstable.

Below is a patch that works around the buggy \\n\" handling.  Should be a
harmless fix even on systems that don't have the bug.

--- glibc-2.3.2.o/glibc-2.3.2/csu/Makefile      2003-09-15 13:35:41.000000000 -0700
+++ glibc-2.3.2/glibc-2.3.2/csu/Makefile        2003-09-15 13:34:21.000000000 -0700
@@ -231,13 +231,15 @@
                   if [ -z "$$os" ]; then \
                     os=Linux; \
                   fi; \
-                  echo "\"Compiled on a $$os $$version system" \
-                       "on `date +%Y-%m-%d`.\\n\"" ;; \
+                  echo -n "\"Compiled on a $$os $$version system" \
+                       "on `date +%Y-%m-%d`.\\" ; \
+                  echo "n\"";; \
           *) ;; \
         esac; \
         files="$(all-Banner-files)";                           \
         if test -n "$$files"; then                             \
-          echo "\"Available extensions:\\n\"";                 \
+          echo -n "\"Available extensions:\\";                 \
+          echo "n\"";                                          \
           sed -e '/^#/d' -e 's/^[[:space:]]*/  /'              \
               -e 's/\(^.*$$\)/\"\1\\n\"/' $$files;             \
         fi) > [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to