From 4b3d8992c5ed00dda1f7c3e3cd8d8d1204605b70 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 2 Jun 2000 23:27:02 +0000 Subject: [PATCH] 2000-06-02 Morten Eriksen * 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). --- ChangeLog | 6 ++++++ depcomp | 9 ++++++++- lib/depcomp | 9 ++++++++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 38d0f857..bf6032e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-06-02 Morten Eriksen + + * 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). + 2000-05-31 Morten Eriksen * depcomp: tell SGI MIPSpro compilers to generate dependencies diff --git a/depcomp b/depcomp index 757ee998..2e77741e 100755 --- a/depcomp +++ b/depcomp @@ -123,7 +123,14 @@ sgi) 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 diff --git a/lib/depcomp b/lib/depcomp index 757ee998..2e77741e 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -123,7 +123,14 @@ sgi) 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 -- 2.43.5