Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 May 2009 16:09:32 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de>
Cc:        freebsd-current@freebsd.org, openoffice@freebsd.org
Subject:   Re: gunzip | tar reports broken pipe during OOO build  on amd64.
Message-ID:  <4A036A2C.1070606@freebsd.org>
In-Reply-To: <20090505174831.GA40305@wep4035.physik.uni-wuerzburg.de>
References:  <20090505174831.GA40305@wep4035.physik.uni-wuerzburg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexey Shuvaev wrote:
> Hello all!
> 
> I was trying to upgrade editors/openoffice.org-2 recently and
> build failed for me at:
...
> The reason appeared to be the first part of the command
> "gunzip -c ... | ( tar -xf - ) &&  touch ..."
> which exited with non-zero exit status (141) and "touch ..." was not called.
> Running the command manually has showed that gunzip was complaining about
> broken pipe (however the archive was extracted successfully).

I just committed r191904, which should fix the tar problem
(actually, a libarchive problem) that caused this.

This problem was introduced in r191171 on 2009-04-16
when I went a little too far trying to eliminate some
duplicated code.  As a result, tar was no longer flushing
the pipe after it hit end-of-archive, which caused
gunzip to receive SIGPIPE for the final writes.
This only causes problems with /bin/csh, which reports
the exit status of the first command in a pipeline
(unlike /bin/sh, which reports the exit status of
the last command).

Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A036A2C.1070606>