From owner-freebsd-openoffice@FreeBSD.ORG Thu May 7 23:09:38 2009 Return-Path: Delivered-To: openoffice@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23A96106566C; Thu, 7 May 2009 23:09:38 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id CA3888FC0A; Thu, 7 May 2009 23:09:37 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: (from root@localhost) by kientzle.com (8.14.3/8.14.3) id n47N9X2V007876; Thu, 7 May 2009 16:09:33 -0700 (PDT) (envelope-from kientzle@freebsd.org) Received: from dark.x.kientzle.com (fw2.kientzle.com [10.123.1.2]) by kientzle.com with SMTP id ka7wnkncppkxrk8cs93xki9pra; Thu, 07 May 2009 16:09:32 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <4A036A2C.1070606@freebsd.org> Date: Thu, 07 May 2009 16:09:32 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.21) Gecko/20090409 SeaMonkey/1.1.15 MIME-Version: 1.0 To: Alexey Shuvaev References: <20090505174831.GA40305@wep4035.physik.uni-wuerzburg.de> In-Reply-To: <20090505174831.GA40305@wep4035.physik.uni-wuerzburg.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, openoffice@freebsd.org Subject: Re: gunzip | tar reports broken pipe during OOO build on amd64. X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2009 23:09:38 -0000 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