GNU logs - #10231, boring messages


Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
Resent-From: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Tue, 06 Dec 2011 12:01:02 +0000
Resent-Message-ID: <handler.10231.B.13231728459929 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 10231
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: 10231 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-libtool@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.13231728459929
          (code B ref -1); Tue, 06 Dec 2011 12:01:02 +0000
Received: (at submit) by debbugs.gnu.org; 6 Dec 2011 12:00:45 +0000
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>
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-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@?




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Subject: bug#10231: Acknowledgement (libtool.m4 makes the wrong shell
 (dash) run libtool)
Message-ID: <handler.10231.B.13231728459929.ack <at> debbugs.gnu.org>
References: <hbf.20111206aaak@HIDDEN>
X-Gnu-PR-Message: ack 10231
X-Gnu-PR-Package: libtool
Reply-To: 10231 <at> debbugs.gnu.org
Date: Tue, 06 Dec 2011 12:01:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-libtool@HIDDEN

If you wish to submit further information on this problem, please
send it to 10231 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
10231: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10231
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
Resent-From: Peter O'Gorman <peter@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Wed, 07 Dec 2011 03:07:02 +0000
Resent-Message-ID: <handler.10231.B10231.132322716410001 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 10231
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Cc: 10231 <at> debbugs.gnu.org
Received: via spool by 10231-submit <at> debbugs.gnu.org id=B10231.132322716410001
          (code B ref 10231); Wed, 07 Dec 2011 03:07:02 +0000
Received: (at 10231) by debbugs.gnu.org; 7 Dec 2011 03:06:04 +0000
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
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-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




Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
Resent-From: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Wed, 07 Dec 2011 10:17:02 +0000
Resent-Message-ID: <handler.10231.B10231.132325296715697 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 10231
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Peter O'Gorman <peter@HIDDEN>
Cc: 10231 <at> debbugs.gnu.org
Received: via spool by 10231-submit <at> debbugs.gnu.org id=B10231.132325296715697
          (code B ref 10231); Wed, 07 Dec 2011 10:17:02 +0000
Received: (at 10231) by debbugs.gnu.org; 7 Dec 2011 10:16:07 +0000
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
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-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




Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
Resent-From: Earnie <earnie@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Wed, 07 Dec 2011 13:13:01 +0000
Resent-Message-ID: <handler.10231.B10231.13232635441741 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 10231
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Peter O'Gorman <peter@HIDDEN>
Cc: 10231 <at> debbugs.gnu.org, Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Received: via spool by 10231-submit <at> debbugs.gnu.org id=B10231.13232635441741
          (code B ref 10231); Wed, 07 Dec 2011 13:13:01 +0000
Received: (at 10231) by debbugs.gnu.org; 7 Dec 2011 13:12:24 +0000
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
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-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/




Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
Resent-From: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Fri, 09 Dec 2011 15:57:02 +0000
Resent-Message-ID: <handler.10231.B10231.132344620715361 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 10231
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Earnie <earnie@HIDDEN>
Cc: 10231 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>
Received: via spool by 10231-submit <at> debbugs.gnu.org id=B10231.132344620715361
          (code B ref 10231); Fri, 09 Dec 2011 15:57:02 +0000
Received: (at 10231) by debbugs.gnu.org; 9 Dec 2011 15:56:47 +0000
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
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-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




Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
Resent-From: Earnie <earnie@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Fri, 09 Dec 2011 18:25:03 +0000
Resent-Message-ID: <handler.10231.B10231.132345507028405 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 10231
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Cc: 10231 <at> debbugs.gnu.org, Peter O'Gorman <peter@HIDDEN>
Reply-To: 10231 <at> debbugs.gnu.org
Received: via spool by 10231-submit <at> debbugs.gnu.org id=B10231.132345507028405
          (code B ref 10231); Fri, 09 Dec 2011 18:25:03 +0000
Received: (at 10231) by debbugs.gnu.org; 9 Dec 2011 18:24:30 +0000
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
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-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.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/




Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
Resent-From: Hallvard B Furuseth <h.b.furuseth@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Sat, 10 Dec 2011 15:47:02 +0000
Resent-Message-ID: <handler.10231.B10231.132353200420702 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 10231
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: 10231 <at> debbugs.gnu.org
Cc: Peter O'Gorman <peter@HIDDEN>
Received: via spool by 10231-submit <at> debbugs.gnu.org id=B10231.132353200420702
          (code B ref 10231); Sat, 10 Dec 2011 15:47:02 +0000
Received: (at 10231) by debbugs.gnu.org; 10 Dec 2011 15:46:44 +0000
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
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-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




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


Received: (at control) by debbugs.gnu.org; 17 Jan 2024 07:57:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 17 02:57:56 2024
Received: from localhost ([127.0.0.1]:50606 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rQ0o8-0003zo-0S
	for submit <at> debbugs.gnu.org; Wed, 17 Jan 2024 02:57:56 -0500
Received: from woodpecker.gentoo.org
 ([2001:470:ea4a:1:5054:ff:fec7:86e4]:58659 helo=smtp.gentoo.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1rQ0o6-0003zX-Eg
 for control <at> debbugs.gnu.org; Wed, 17 Jan 2024 02:57:54 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id A00443431B9; Wed, 17 Jan 2024 07:57:47 +0000 (UTC)
From: Mike Frysinger <vapier@HIDDEN>
To: control <at> debbugs.gnu.org
Subject: Control message
User-Agent: GNU debbugs/0
Message-Id: <20240117075747.A00443431B9@HIDDEN>
Date: Wed, 17 Jan 2024 07:57:47 +0000 (UTC)
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

merge 10303 10231
thankyou





Last modified: Sat, 20 Jan 2024 12:30:02 UTC

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