GNU bug report logs - #10231
libtool.m4 makes the wrong shell (dash) run libtool

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: Hallvard B Furuseth <h.b.furuseth@HIDDEN>; dated Tue, 6 Dec 2011 12:01:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at 10231) by debbugs.gnu.org; 10 Dec 2011 15:46:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 10 10:46:44 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 1RZP8N-0005Nr-Hc
	for submit <at> debbugs.gnu.org; Sat, 10 Dec 2011 10:46:44 -0500
Received: from mail-out2.uio.no ([129.240.10.58])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <hbf@HIDDEN>) id 1RZP8K-0005Nd-Rt
	for 10231 <at> debbugs.gnu.org; Sat, 10 Dec 2011 10:46:42 -0500
Received: from mail-mx3.uio.no ([129.240.10.44])
	by mail-out2.uio.no with esmtp (Exim 4.75)
	(envelope-from <hbf@HIDDEN>)
	id 1RZP7K-0003wx-Nv; Sat, 10 Dec 2011 16:45:38 +0100
Received: from bombur.uio.no ([129.240.6.233])
	by mail-mx3.uio.no with esmtp  (Exim 4.76)
	(envelope-from <hbf@HIDDEN>)
	id 1RZP7K-0006R4-Cm; Sat, 10 Dec 2011 16:45:38 +0100
Received: from hbf by bombur.uio.no with local (Exim 4.72)
	(envelope-from <hbf@HIDDEN>)
	id 1RZP7J-0005w2-Uy; Sat, 10 Dec 2011 16:45:37 +0100
From: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <hbf.20111210de4w@HIDDEN>
Date: Sat, 10 Dec 2011 16:45:37 +0100
To: 10231 <at> debbugs.gnu.org
Subject: Re: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
In-Reply-To: <4EE2521E.9010109@HIDDEN>
References: <hbf.20111206aaak@HIDDEN> <4EDED7EC.4050404@HIDDEN>
	<4EDF6603.8040503@HIDDEN>
	<hbf.20111209dncx@HIDDEN>
	<4EE2521E.9010109@HIDDEN>
X-Mailer: VM 7.18 under Emacs 22.2.1
X-UiO-Ratelimit-Test: rcpts/h 3 msgs/h 1 sum rcpts/h 5 sum msgs/h 1 total
	rcpts 2000 max rcpts/h 17 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-7.0, required=5.0,
	autolearn=disabled, RP_MATCHES_RCVD=-2.023,
	UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO)
X-UiO-Scanned: 61F52354868E240B6D27038B7C8F31D5FE720FB7
X-UiO-SPAM-Test: remote_host: 129.240.6.233 spam_score: -69 maxlevel 80
	minaction 1 bait 0 mail/h: 1 total 856 max/h 5 blacklist 0
	greylist 1 ratelimit 0
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 10231
Cc: Peter O'Gorman <peter@HIDDEN>
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 (------)

Earnie writes:
>> Yeah, but the question is if Cygnus/MSYS ensure that when the Make
>> program invokes libtool it obeys the '#! <shell path>' line inside it.
>> (...)
> Yes they do.  (...)

Thanks.


BTW, I just noticed this in the GNU coding standards, 7.2.1 General
Conventions for Makefiles:

    "Every Makefile should contain this line:

      SHELL = /bin/sh

    to avoid trouble on systems where the `SHELL' variable might be
    inherited from the environment.  (This is never a problem with GNU
    `make'.)"

So Make programs differ in this, the current '$(SHELL) libtool' was
never supposed to be correct, and $CONFIG_SHELL concerns seem irrelevant.

-- 
Hallvard




Information forwarded to bug-libtool@HIDDEN:
bug#10231; Package libtool. Full text available.

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


Received: (at 10231) by debbugs.gnu.org; 9 Dec 2011 18:24:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 09 13:24:30 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 1RZ57W-0007O5-BP
	for submit <at> debbugs.gnu.org; Fri, 09 Dec 2011 13:24:30 -0500
Received: from [74.63.15.19] (helo=mail.siebunlimited.com)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <earnie@HIDDEN>) id 1RZ57U-0007Nx-0g
	for 10231 <at> debbugs.gnu.org; Fri, 09 Dec 2011 13:24:29 -0500
Received: by mail.siebunlimited.com (Postfix, from userid 5001)
	id 184CDC3F0052; Fri,  9 Dec 2011 18:23:31 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	vps.siebunlimited.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.7 required=2.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.5
Received: from [127.0.0.1] (d60-65-152-229.col.wideopenwest.com
	[65.60.229.152])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: earnie@HIDDEN)
	by mail.siebunlimited.com (Postfix) with ESMTPSA id E3955C3F0030;
	Fri,  9 Dec 2011 18:23:29 +0000 (UTC)
Message-ID: <4EE2521E.9010109@HIDDEN>
Date: Fri, 09 Dec 2011 13:23:26 -0500
From: Earnie <earnie@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:8.0.1) Gecko/20111121 Firefox/8.0.1 SeaMonkey/2.5
MIME-Version: 1.0
To: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Subject: Re: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
References: <hbf.20111206aaak@HIDDEN> <4EDED7EC.4050404@HIDDEN>
	<4EDF6603.8040503@HIDDEN>
	<hbf.20111209dncx@HIDDEN>
In-Reply-To: <hbf.20111209dncx@HIDDEN>
X-Enigmail-Version: 1.3.3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: 10231
Cc: 10231 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: 10231 <at> debbugs.gnu.org
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: -3.2 (---)

Hallvard B Furuseth wrote:
> Earnie writes:
>> Peter O'Gorman wrote:
>>> Removing $(SHELL) from LIBTOOL makes sense to me, I don't know if it
>>> will cause problems on windows though?
>>
>> I don't think it should matter.  Both Cygwin and MSYS have /bin/sh and
>> /usr/bin/sh.  Without a POSIX shell libtool is impossible anyway.
> 
> Yeah, but the question is if Cygnus/MSYS ensure that when the Make
> program invokes libtool it obeys the '#! <shell path>' line inside it.
> Windows itself does not.  I assume yes, but I don't use Windows.
> 

Yes they do.  It is a POSIX requirement.  And since Cygwin/MSYS are
emulating POSIX on Windows then it works as it should.

In Cygwin we have:
$ /bin/sh --version
GNU bash, version 4.1.10(4)-release (i686-pc-cygwin)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

In MSYS we have:
$ /bin/sh --version
GNU bash, version 3.1.17(1)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

Executing in MSYS we have:
$ ./libtool --version
libtool (GNU libtool) 2.2.10
Written by Gordon Matzigkeit <gord@HIDDEN>, 1996

Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ libtoolize --version
libtoolize (GNU libtool) 2.4
Written by Gary V. Vaughan <gary@HIDDEN>, 2003

Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd/




Information forwarded to bug-libtool@HIDDEN:
bug#10231; Package libtool. Full text available.

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


Received: (at 10231) by debbugs.gnu.org; 9 Dec 2011 15:56:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 09 10:56:47 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 1RZ2oY-0003zh-RJ
	for submit <at> debbugs.gnu.org; Fri, 09 Dec 2011 10:56:47 -0500
Received: from mail-out1.uio.no ([129.240.10.57])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <hbf@HIDDEN>) id 1RZ2oW-0003zZ-M0
	for 10231 <at> debbugs.gnu.org; Fri, 09 Dec 2011 10:56:45 -0500
Received: from mail-mx1.uio.no ([129.240.10.29])
	by mail-out1.uio.no with esmtp (Exim 4.75)
	(envelope-from <hbf@HIDDEN>)
	id 1RZ2nZ-00058l-Eo; Fri, 09 Dec 2011 16:55:45 +0100
Received: from bombur.uio.no ([129.240.6.233])
	by mail-mx1.uio.no with esmtp  (Exim 4.76)
	(envelope-from <hbf@HIDDEN>)
	id 1RZ2nZ-0004Ek-3O; Fri, 09 Dec 2011 16:55:45 +0100
Received: from hbf by bombur.uio.no with local (Exim 4.72)
	(envelope-from <hbf@HIDDEN>)
	id 1RZ2nY-0000QY-EK; Fri, 09 Dec 2011 16:55:44 +0100
From: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <hbf.20111209dncx@HIDDEN>
Date: Fri, 9 Dec 2011 16:55:44 +0100
To: Earnie <earnie@HIDDEN>
Subject: Re: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
In-Reply-To: <4EDF6603.8040503@HIDDEN>
References: <hbf.20111206aaak@HIDDEN> <4EDED7EC.4050404@HIDDEN>
	<4EDF6603.8040503@HIDDEN>
X-Mailer: VM 7.18 under Emacs 22.2.1
X-UiO-Ratelimit-Test: rcpts/h 4 msgs/h 1 sum rcpts/h 5 sum msgs/h 2 total
	rcpts 1995 max rcpts/h 17 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-7.0, required=5.0,
	autolearn=disabled, RP_MATCHES_RCVD=-2.023,
	UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO)
X-UiO-Scanned: 979EF9A4B7E88BB8AC40EB7FB7E4F0984349234A
X-UiO-SPAM-Test: remote_host: 129.240.6.233 spam_score: -69 maxlevel 80
	minaction 1 bait 0 mail/h: 1 total 854 max/h 5 blacklist 0
	greylist 1 ratelimit 0
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 10231
Cc: 10231 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>
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 (------)

Earnie writes:
> Peter O'Gorman wrote:
>> Removing $(SHELL) from LIBTOOL makes sense to me, I don't know if it
>> will cause problems on windows though?
> 
> I don't think it should matter.  Both Cygwin and MSYS have /bin/sh and
> /usr/bin/sh.  Without a POSIX shell libtool is impossible anyway.

Yeah, but the question is if Cygnus/MSYS ensure that when the Make
program invokes libtool it obeys the '#! <shell path>' line inside it.
Windows itself does not.  I assume yes, but I don't use Windows.

-- 
Hallvard




Information forwarded to bug-libtool@HIDDEN:
bug#10231; Package libtool. Full text available.

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


Received: (at 10231) by debbugs.gnu.org; 7 Dec 2011 13:12:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 07 08:12:23 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 1RYHIN-0000S0-Ku
	for submit <at> debbugs.gnu.org; Wed, 07 Dec 2011 08:12:23 -0500
Received: from [74.63.15.19] (helo=mail.siebunlimited.com)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <earnie@HIDDEN>) id 1RYHIL-0000Rs-Aw
	for 10231 <at> debbugs.gnu.org; Wed, 07 Dec 2011 08:12:21 -0500
Received: by mail.siebunlimited.com (Postfix, from userid 5001)
	id D38E5C3F0052; Wed,  7 Dec 2011 13:11:36 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	vps.siebunlimited.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.7 required=2.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.5
Received: from [127.0.0.1] (d60-65-152-229.col.wideopenwest.com
	[65.60.229.152])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: earnie@HIDDEN)
	by mail.siebunlimited.com (Postfix) with ESMTPSA id 7F12AC3F0030;
	Wed,  7 Dec 2011 13:11:35 +0000 (UTC)
Message-ID: <4EDF6603.8040503@HIDDEN>
Date: Wed, 07 Dec 2011 08:11:31 -0500
From: Earnie <earnie@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:8.0.1) Gecko/20111121 Firefox/8.0.1 SeaMonkey/2.5
MIME-Version: 1.0
To: Peter O'Gorman <peter@HIDDEN>
Subject: Re: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
References: <hbf.20111206aaak@HIDDEN> <4EDED7EC.4050404@HIDDEN>
In-Reply-To: <4EDED7EC.4050404@HIDDEN>
X-Enigmail-Version: 1.3.3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: 10231
Cc: 10231 <at> debbugs.gnu.org, Hallvard B Furuseth <h.b.furuseth@HIDDEN>
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: -3.3 (---)

Peter O'Gorman wrote:
> 
> Removing $(SHELL) from LIBTOOL makes sense to me, I don't know if it
> will cause problems on windows though?
> 

I don't think it should matter.  Both Cygwin and MSYS have /bin/sh and
/usr/bin/sh.  Without a POSIX shell libtool is impossible anyway.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd/




Information forwarded to bug-libtool@HIDDEN:
bug#10231; Package libtool. Full text available.

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


Received: (at 10231) by debbugs.gnu.org; 7 Dec 2011 10:16:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 07 05:16: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 1RYEXm-000458-TL
	for submit <at> debbugs.gnu.org; Wed, 07 Dec 2011 05:16:07 -0500
Received: from mail-out1.uio.no ([129.240.10.57])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <hbf@HIDDEN>) id 1RYEXk-000450-Sw
	for 10231 <at> debbugs.gnu.org; Wed, 07 Dec 2011 05:16:05 -0500
Received: from mail-mx3.uio.no ([129.240.10.44])
	by mail-out1.uio.no with esmtp (Exim 4.75)
	(envelope-from <hbf@HIDDEN>)
	id 1RYEX3-00074w-Ca; Wed, 07 Dec 2011 11:15:21 +0100
Received: from bombur.uio.no ([129.240.6.233])
	by mail-mx3.uio.no with esmtp  (Exim 4.76)
	(envelope-from <hbf@HIDDEN>)
	id 1RYEX3-0001U2-0p; Wed, 07 Dec 2011 11:15:21 +0100
Received: from hbf by bombur.uio.no with local (Exim 4.72)
	(envelope-from <hbf@HIDDEN>)
	id 1RYEX2-0002cq-IG; Wed, 07 Dec 2011 11:15:20 +0100
From: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <hbf.20111207ybve@HIDDEN>
Date: Wed, 7 Dec 2011 11:15:20 +0100
To: Peter O'Gorman <peter@HIDDEN>
Subject: Re: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
In-Reply-To: <4EDED7EC.4050404@HIDDEN>
References: <hbf.20111206aaak@HIDDEN>
	<4EDED7EC.4050404@HIDDEN>
X-Mailer: VM 7.18 under Emacs 22.2.1
X-UiO-Ratelimit-Test: rcpts/h 3 msgs/h 1 sum rcpts/h 4 sum msgs/h 1 total
	rcpts 1988 max rcpts/h 17 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-7.0, required=5.0,
	autolearn=disabled, RP_MATCHES_RCVD=-2.023,
	UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO)
X-UiO-Scanned: A8639C95B7E75958BA92482A4244D2CBDE10B9B9
X-UiO-SPAM-Test: remote_host: 129.240.6.233 spam_score: -69 maxlevel 80
	minaction 1 bait 0 mail/h: 1 total 852 max/h 5 blacklist 0
	greylist 1 ratelimit 0
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 10231
Cc: 10231 <at> debbugs.gnu.org
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 (------)

Peter O'Gorman writes:
> Removing $(SHELL) from LIBTOOL makes sense to me, I don't know if it 
> will cause problems on windows though?

Don't know.  Since this is for a Unix-style Makefile, I expect it
depends on Cygnus et al to compile system() and exec() in the Make
program into library calls which handle '#!'.

> If it's a problem, we can AC_SUBST(LT_SHELL) and use that (which will 
> cause problems for people not using automake, like yourself).

Eh, right.  Sounds like the shell should be inserted in the LIBTOOL
definition itself then, without going via an LT_SHELL.

Which in turn would prevent people from running libtool with another
shell if the current shell breaks, if there is any reason to do that.

-- 
Hallvard




Information forwarded to bug-libtool@HIDDEN:
bug#10231; Package libtool. Full text available.

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


Received: (at 10231) by debbugs.gnu.org; 7 Dec 2011 03:06:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 06 22:06:04 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 1RY7pb-0002bF-TY
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2011 22:06:04 -0500
Received: from pogma.xen.prgmr.com ([68.68.97.8])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <peter@HIDDEN>) id 1RY7pY-0002ap-2a
	for 10231 <at> debbugs.gnu.org; Tue, 06 Dec 2011 22:06:02 -0500
Message-ID: <4EDED7EC.4050404@HIDDEN>
X-DKIM: Sendmail DKIM Filter v2.8.3 pogma.xen.prgmr.com 48C44BF5CD
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pogma.com; s=pogmail;
	t=1323227117; bh=vTafxgAA0fLXkSGs6HZEd3lrk15VSpHK7L3fTG6NkmY=;
	h=Date:From:MIME-Version:To:CC:Subject:References:In-Reply-To:
	Content-Type:Content-Transfer-Encoding;
	b=iS9v+L5BTevZCiPEnMhGSZ0QXZTCFoT2bYhWw805NdeUdHAeoYWGFjBGtpsBzxXkF
	PG6PuID8/HoatSSa3F7kysF0xOw4elZGuHQm+AZWSYGR4vAZy6D/34WxvoZ19Ne8qF
	ylAfjFx4YAmSu9LNEuRPR0vC0po2uvMqcF0uJCDU=
Date: Tue, 06 Dec 2011 21:05:16 -0600
From: Peter O'Gorman <peter@HIDDEN>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14
MIME-Version: 1.0
To: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Subject: Re: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
References: <hbf.20111206aaak@HIDDEN>
In-Reply-To: <hbf.20111206aaak@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.2 (---)
X-Debbugs-Envelope-To: 10231
Cc: 10231 <at> debbugs.gnu.org
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: -3.1 (---)

On 12/06/2011 05:59 AM, Hallvard B Furuseth wrote:
> This is an old bug by now, but the reports I've seen do not seem to
> get at all of it.
>
> libtool.m4:LT_INIT says LIBTOOL='$(SHELL) $(top_builddir)/libtool'.
> Gnu Make exports SHELL=/bin/sh.  Maybe other Makes too, I do not know.
>
> Any advise as to what to do (other than staying with libtool 1.5)?
> For now I use the simplest fix, removing $(SHELL).  Or should
> Makefile.in be using something else than @LIBTOOL@?

Hi,

Thanks for the report.

Removing $(SHELL) from LIBTOOL makes sense to me, I don't know if it 
will cause problems on windows though?

If it's a problem, we can AC_SUBST(LT_SHELL) and use that (which will 
cause problems for people not using automake, like yourself).

Peter




Information forwarded to bug-libtool@HIDDEN:
bug#10231; Package libtool. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 6 Dec 2011 12:00:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 06 07:00:45 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 1RXthT-0002a5-68
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2011 07:00:44 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <hbf@HIDDEN>) id 1RXthP-0002Zw-E3
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2011 07:00:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hbf@HIDDEN>) id 1RXtgm-00089U-Pt
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2011 07:00:01 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	RP_MATCHES_RCVD autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:58276)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hbf@HIDDEN>) id 1RXtgm-00089Q-Lp
	for submit <at> debbugs.gnu.org; Tue, 06 Dec 2011 07:00:00 -0500
Received: from eggs.gnu.org ([140.186.70.92]:47137)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hbf@HIDDEN>) id 1RXtgl-0001Ao-PD
	for bug-libtool@HIDDEN; Tue, 06 Dec 2011 07:00:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hbf@HIDDEN>) id 1RXtgh-000877-MB
	for bug-libtool@HIDDEN; Tue, 06 Dec 2011 06:59:59 -0500
Received: from mail-out1.uio.no ([129.240.10.57]:43199)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hbf@HIDDEN>) id 1RXtgh-00086t-8o
	for bug-libtool@HIDDEN; Tue, 06 Dec 2011 06:59:55 -0500
Received: from mail-mx5.uio.no ([129.240.10.46])
	by mail-out1.uio.no with esmtp (Exim 4.75)
	(envelope-from <hbf@HIDDEN>) id 1RXtge-0002ug-KX
	for bug-libtool@HIDDEN; Tue, 06 Dec 2011 12:59:52 +0100
Received: from bombur.uio.no ([129.240.6.233])
	by mail-mx5.uio.no with esmtp  (Exim 4.76)
	(envelope-from <hbf@HIDDEN>)
	id 1RXtge-0000Mo-4d; Tue, 06 Dec 2011 12:59:52 +0100
Received: from hbf by bombur.uio.no with local (Exim 4.72)
	(envelope-from <hbf@HIDDEN>)
	id 1RXtge-0007Ho-1Q; Tue, 06 Dec 2011 12:59:52 +0100
Date: Tue, 06 Dec 2011 12:59:52 +0100
Message-Id: <hbf.20111206aaak@HIDDEN>
From: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
To: bug-libtool@HIDDEN
Subject: libtool.m4 makes the wrong shell (dash) run libtool
X-UiO-Ratelimit-Test: rcpts/h 2 msgs/h 1 sum rcpts/h 3 sum msgs/h 1 total
	rcpts 1983 max rcpts/h 17 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-7.0, required=5.0,
	autolearn=disabled, RP_MATCHES_RCVD=-2.023,
	UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO)
X-UiO-Scanned: 0FF331F465318EF5D3FF916D0DC9D6C9138244E3
X-UiO-SPAM-Test: remote_host: 129.240.6.233 spam_score: -69 maxlevel 80
	minaction 1 bait 0 mail/h: 1 total 850 max/h 5 blacklist 0
	greylist 1 ratelimit 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
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-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 (------)

This is an old bug by now, but the reports I've seen do not seem to
get at all of it.

libtool.m4:LT_INIT says LIBTOOL='$(SHELL) $(top_builddir)/libtool'.
Gnu Make exports SHELL=/bin/sh.  Maybe other Makes too, I do not know.

Thus even when a package is configured and built with the same $SHELL,
the libtool script can get run by another shell than it was built for.
This breaks when libtool is built as a bash script using '+=', but
$(SHELL) does not support '+='.  In my case: Ubuntu's /bin/sh = dash.

Either the LIBTOOL= line should lose $(SHELL) so the #!<shell> line in
the libtool script takes effect, or it should use e.g. $(LT_SHELL)
which would be set to the shell which libtool was built for, or
libtool should exec itself with its desired shell.  Users should not
have to set CONFIG_SHELL=/bin/sh.

This applies to at least libtoolize 2.4.2 and Ubuntu's patched 2.4.
I'm using aclocal 1.11.1, autoconf 2.68.


Here is a minimized example:

mkdir foo foo/m4
cd    foo
echo 'int main() {return 0;}'	> foo.c

cat <<'EOF'			> Makefile.in
top_builddir = @top_builddir@
foo.o:; @LIBTOOL@ --mode=compile @CC@ -c foo.c
EOF

cat <<'EOF'			> configure.ac
AC_INIT([foo])
AC_CONFIG_AUX_DIR([m4])
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
LT_INIT([disable-shared])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
EOF

libtoolize --copy --install --quiet; aclocal -I m4; autoconf
./configure --quiet
cat Makefile; echo "libtool head == `head -1 libtool`"
make

Output:

top_builddir = .
foo.o:; $(SHELL) $(top_builddir)/libtool --mode=compile gcc -c foo.c
libtool head == #! /bin/bash
/bin/sh ./libtool --mode=compile gcc -c foo.c
eval: 1: base_compile+= gcc: not found
eval: 1: base_compile+= -c: not found
libtool: compile: you must specify a compilation command
libtool: compile: Try `libtool --help --mode=compile' for more information.
make: *** [foo.o] Error 1


Any advise as to what to do (other than staying with libtool 1.5)?
For now I use the simplest fix, removing $(SHELL).  Or should
Makefile.in be using something else than @LIBTOOL@?




Acknowledgement sent to Hallvard B Furuseth <h.b.furuseth@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#10231; 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.