GNU bug report logs - #10359
libtool changing basename(argv[0])

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: Lucas De Marchi <lucas.demarchi <at> profusion.mobi>; merged with #10358; dated Sat, 24 Dec 2011 15:55:02 UTC; Maintainer for libtool is bug-libtool <at> gnu.org.
Merged 10358 10359. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 24 Dec 2011 15:54:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 24 10:54:13 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 1ReTvJ-0004aJ-IA
	for submit <at> debbugs.gnu.org; Sat, 24 Dec 2011 10:54:13 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lucas.demarchi <at> profusion.mobi>) id 1RdwXI-0004Rd-PM
	for submit <at> debbugs.gnu.org; Thu, 22 Dec 2011 23:15:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lucas.demarchi <at> profusion.mobi>) id 1RdwV8-00049P-30
	for submit <at> debbugs.gnu.org; Thu, 22 Dec 2011 23:12:59 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([140.186.70.17]:33855)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lucas.demarchi <at> profusion.mobi>) id 1RdwV8-00049L-1e
	for submit <at> debbugs.gnu.org; Thu, 22 Dec 2011 23:12:58 -0500
Received: from eggs.gnu.org ([140.186.70.92]:57265)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lucas.demarchi <at> profusion.mobi>) id 1RdwV7-0006ip-0G
	for bug-libtool <at> gnu.org; Thu, 22 Dec 2011 23:12:57 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lucas.demarchi <at> profusion.mobi>) id 1RdwV6-00048z-2C
	for bug-libtool <at> gnu.org; Thu, 22 Dec 2011 23:12:56 -0500
Received: from mail-vx0-f169.google.com ([209.85.220.169]:54819)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lucas.demarchi <at> profusion.mobi>) id 1RdwV5-00048r-Up
	for bug-libtool <at> gnu.org; Thu, 22 Dec 2011 23:12:56 -0500
Received: by vcge1 with SMTP id e1so7400366vcg.0
	for <bug-libtool <at> gnu.org>; Thu, 22 Dec 2011 20:12:55 -0800 (PST)
Received: by 10.220.156.81 with SMTP id v17mr1149940vcw.68.1324613575230; Thu,
	22 Dec 2011 20:12:55 -0800 (PST)
MIME-Version: 1.0
Received: by 10.52.117.45 with HTTP; Thu, 22 Dec 2011 20:12:34 -0800 (PST)
In-Reply-To: <CAMOw1v5OVtcNx7hR=93Fz5O5Ru3ZuFyun7oTpoQVjOtg5pa9fg <at> mail.gmail.com>
References: <CAMOw1v5OVtcNx7hR=93Fz5O5Ru3ZuFyun7oTpoQVjOtg5pa9fg <at> mail.gmail.com>
From: Lucas De Marchi <lucas.demarchi <at> profusion.mobi>
Date: Fri, 23 Dec 2011 02:12:34 -0200
Message-ID: <CAMOw1v7+n-82mk-WH-G+WpiSbsPf3EwYfPQBcrBzNQj9UrQXkw <at> mail.gmail.com>
Subject: Re: libtool changing basename(argv[0])
To: bug-libtool <at> gnu.org
Content-Type: multipart/mixed; boundary=f46d043d66cf9dc2c804b4baa1ce
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
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: Sat, 24 Dec 2011 10:54:11 -0500
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/cgi-bin/mailman/private/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 (------)

--f46d043d66cf9dc2c804b4baa1ce
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Dec 23, 2011 at 1:51 AM, Lucas De Marchi
<lucas.demarchi <at> profusion.mobi> wrote:
> Hey all,
>
> In one of my projects I rely on basename(argv[0]) to know what to do
> in the application (because it can be called from compat symlinks).
> With libtool 2.4.2 I'm having an issue that basename(argv[0]) returns
> lt-progname instead of just progname. Another developer has libtool
> 2.4 and does not have this problem.
>
> Is this a regression from 2.4? Googling shows me some similar problem
> but with older versions (~ 2009)

Checking the source code.... the following change fixes the problem
for me, but I'm not sure if it's the right fix.

thanks
Lucas De Marchi

--f46d043d66cf9dc2c804b4baa1ce
Content-Type: text/x-patch; charset=US-ASCII; 
	name="0001-Do-not-change-argv-0-to-lt-progname.patch"
Content-Disposition: attachment; 
	filename="0001-Do-not-change-argv-0-to-lt-progname.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gwiorj7s0

RnJvb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1ce--




Acknowledgement sent to Lucas De Marchi <lucas.demarchi <at> profusion.mobi>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. Full text available.
Report forwarded to bug-libtool <at> gnu.org:
bug#10359; 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: Sun, 1 Jan 2012 02:30:02 UTC

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