GNU bug report logs - #8746
/usr/bin/sed on HP-UX truncates, but not always

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Reported by: "Daniel Richard G." <skunk@HIDDEN>; dated Fri, 27 May 2011 19:34:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 May 2011 19:33:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 27 15:33:07 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QQ2mR-0008C3-2a
	for submit <at> debbugs.gnu.org; Fri, 27 May 2011 15:33:07 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <skunk@HIDDEN>) id 1QQ2ho-00084x-OF
	for submit <at> debbugs.gnu.org; Fri, 27 May 2011 15:28:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <skunk@HIDDEN>) id 1QQ2hi-0001IU-O3
	for submit <at> debbugs.gnu.org; Fri, 27 May 2011 15:28:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,
	T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:37192)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <skunk@HIDDEN>) id 1QQ2hi-0001IQ-MS
	for submit <at> debbugs.gnu.org; Fri, 27 May 2011 15:28:14 -0400
Received: from eggs.gnu.org ([140.186.70.92]:38718)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <skunk@HIDDEN>) id 1QQ2hh-0003iH-SG
	for bug-libtool@HIDDEN; Fri, 27 May 2011 15:28:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <skunk@HIDDEN>) id 1QQ2hh-0001FW-3A
	for bug-libtool@HIDDEN; Fri, 27 May 2011 15:28:13 -0400
Received: from out3.smtp.messagingengine.com ([66.111.4.27]:43874)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <skunk@HIDDEN>) id 1QQ2hh-0001FD-10
	for bug-libtool@HIDDEN; Fri, 27 May 2011 15:28:13 -0400
Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43])
	by gateway1.messagingengine.com (Postfix) with ESMTP id 038C120AF6
	for <bug-libtool@HIDDEN>; Fri, 27 May 2011 15:28:11 -0400 (EDT)
Received: from web2.messagingengine.com ([10.202.2.212])
	by compute3.internal (MEProxy); Fri, 27 May 2011 15:28:11 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com;
	h=message-id:from:to:mime-version:content-transfer-encoding:content-type:subject:date;
	s=smtpout; bh=8F80hyE9QL5ut1v2/SGgDeo5xWs=;
	b=N88D6VXw4mwH1W/Az2gO109CEtL5mQMnVGdL+wwvm3Sc+Gb8b1fja6br56I64Agb9nP9Ib6h7+NFt16PjYLzry8nvN0fxqmC6ON6QdHfadOQtlJHX25fnAjl5jiK6yTqTtydPU2Pn9gU29Vt+wrLwhynRrz+YidDbPGtaIocArs=
Received: by web2.messagingengine.com (Postfix, from userid 99)
	id D4223348077; Fri, 27 May 2011 15:28:10 -0400 (EDT)
Message-Id: <1306524490.20679.1456811629@HIDDEN>
X-Sasl-Enc: JJ0xhO6kyumaNQAKkiPDUpj7zX2A2aViMqAb9JLw9zPi 1306524490
From: "Daniel Richard G." <skunk@HIDDEN>
To: bug-libtool@HIDDEN
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"
X-Mailer: MessagingEngine.com Webmail Interface
Subject: /usr/bin/sed on HP-UX truncates, but not always
Date: Fri, 27 May 2011 15:28:10 -0400
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 27 May 2011 15:33:06 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

I am using Libtool 2.4. Recently, I had a build fail on an HP-UX/Itanium
11.23 system, with the error

    libtool: eval: line 1088: syntax error: unexpected end of file

I traced this down to $SED truncating $relink_command. But I see that
Libtool has a configure-time check for this, and /usr/bin/sed passed, so
I dug a little deeper.

Sample test file:

    aaaaaaaaaaaaaa...(6000 a's in all)...aaaaaaaaaaaaaaa@foo@

% cat testfile | /usr/bin/sed s/a/b/ | wc -c
6006
% cat testfile | /usr/bin/sed 's/@foo@/bar/' | wc -c
4109

$SED acts on an @inst_prefix_dir@ placeholder at the end of
$relink_command, so this appears to be what was going on.


--Daniel


-- 
NAME = Daniel Richard G.     _\|/_    Remember, skunks
MAIL = skunk@HIDDEN     (/o|o\) _- don't smell bad---
MAIL+= skunk@HIDDEN   < (^),>     it's the people who
WWW  = (not there yet!)      /   \      annoy us that do!




Acknowledgement sent to "Daniel Richard G." <skunk@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:
bug#8746; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.