* Me
> I discovered an unpleasant problem in the depcomp "sgi" dependency
> generation code: the first line of the .Plo file will get truncated
> on IRIX systems with SGI sed where the line is > 8192 characters
> (i.e. a sourcefile with a large set of dependencies).
[...]

This seems to be the same as PR21, BTW.

Here's a suggestion for a fix:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

2000-06-02  Morten Eriksen  <[EMAIL PROTECTED]>

        * depcomp: workaround for problem with SGI IRIX sed (it can only
        handle lines of up to 8192 characters, the rest of the line will
        be mangled).

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Index: depcomp
===================================================================
RCS file: /cvs/automake/automake/depcomp,v
retrieving revision 1.5
diff -u -r1.5 depcomp
--- depcomp     1999/12/14 04:36:10     1.5
+++ depcomp     2000/06/02 07:48:14
@@ -123,7 +123,14 @@
   fi
   rm -f "$depfile" 
   echo "$object : \\" > "$depfile"
-  sed 's/^[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+
+  # Clip off the initial element (the dependent). Don't try to be
+  # clever and remove the tr invocations, as IRIX sed won't handle
+  # lines with more than 8192 characters.
+  tr ' ' '
+' < "$tmpdepfile" | sed 's/^[^\.]*\.o://' | tr '
+' ' ' >> $depfile
+
   tr ' ' '
 ' < "$tmpdepfile" | \
 ## Some versions of the HPUX 10.20 sed can't process this invocation


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Regards,
Morten

Reply via email to