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

Previous Next

Package: libtool;

Reported by: Hallvard B Furuseth <h.b.furuseth <at> usit.uio.no>

Date: Tue, 6 Dec 2011 12:01:02 UTC

Severity: normal

Merged with 10303

Full log


Message #20 received at 10231 <at> debbugs.gnu.org (full text, mbox):

From: Earnie <earnie <at> users.sourceforge.net>
To: Hallvard B Furuseth <h.b.furuseth <at> usit.uio.no>
Cc: 10231 <at> debbugs.gnu.org, Peter O'Gorman <peter <at> pogma.com>
Subject: Re: bug#10231: libtool.m4 makes the wrong shell (dash) run libtool
Date: Fri, 09 Dec 2011 13:23:26 -0500
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 <at> gnu.ai.mit.edu>, 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 <at> gnu.org>, 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/




This bug report was last modified 1 year and 152 days ago.

Previous Next


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