Mike Frysinger <vapier@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 15 Dec 2011 10:55:48 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 15 05:55:48 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 1Rb8ya-0003lI-8H for submit <at> debbugs.gnu.org; Thu, 15 Dec 2011 05:55:48 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <cazfi74@HIDDEN>) id 1Rb8yX-0003lA-Nv for submit <at> debbugs.gnu.org; Thu, 15 Dec 2011 05:55:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <cazfi74@HIDDEN>) id 1Rb8x1-0003cL-6N for submit <at> debbugs.gnu.org; Thu, 15 Dec 2011 05:54:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=no version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:45576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <cazfi74@HIDDEN>) id 1Rb8x1-0003cG-4o for submit <at> debbugs.gnu.org; Thu, 15 Dec 2011 05:54:11 -0500 Received: from eggs.gnu.org ([140.186.70.92]:44027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <cazfi74@HIDDEN>) id 1Rb8wv-0000HE-J9 for bug-libtool@HIDDEN; Thu, 15 Dec 2011 05:54:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <cazfi74@HIDDEN>) id 1Rb8wt-0003bU-PX for bug-libtool@HIDDEN; Thu, 15 Dec 2011 05:54:05 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:39516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <cazfi74@HIDDEN>) id 1Rb8wt-0003bH-MJ for bug-libtool@HIDDEN; Thu, 15 Dec 2011 05:54:03 -0500 Received: by vcge1 with SMTP id e1so473303vcg.0 for <bug-libtool@HIDDEN>; Thu, 15 Dec 2011 02:54:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=27UBSxpQKkX2BacsXEG3h3O1nTCnnqBlnpwiNKgmJ9c=; b=mO5yTcb46LZmuqj77QyK3gBfanY8/nnM2f+jMs12kfeazQDgdVjP/V2TBC5bFf3ojr ekYzTd72UvXq/Wjmfldfg5s9KyxFqhcPk73NgmBErXiMz4mB+Zs81smgx7wDbehQcWch CvJlMfxR/DPp+Ub7m3EuM5etsiAJulMz4FILs= MIME-Version: 1.0 Received: by 10.52.93.166 with SMTP id cv6mr2276383vdb.52.1323946442969; Thu, 15 Dec 2011 02:54:02 -0800 (PST) Received: by 10.220.6.70 with HTTP; Thu, 15 Dec 2011 02:54:02 -0800 (PST) In-Reply-To: <201112151054.41038.stefano.lattarini@HIDDEN> References: <CAF6bG8efVFmc8FcyDCDVjQhKQA9CASxZ641MBjGxxwXAuyaazA@HIDDEN> <201112151054.41038.stefano.lattarini@HIDDEN> Date: Thu, 15 Dec 2011 12:54:02 +0200 Message-ID: <CAF6bG8fSkc1V6O2xrz7EZeAKAFguOmuC_s3+6DYETBkK=FfVNQ@HIDDEN> Subject: Re: Problems in $(LIBTOOL) deifnition (was: Re: automake bug#10301: /bin/sh used to execute libtool) From: Marko Lindqvist <cazfi74@HIDDEN> To: Stefano Lattarini <stefano.lattarini@HIDDEN> Content-Type: multipart/mixed; boundary=bcaec50161516f516e04b41f4df3 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: -5.3 (-----) X-Debbugs-Envelope-To: submit Cc: 10301 <at> debbugs.gnu.org, bug-libtool@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: -5.5 (-----) --bcaec50161516f516e04b41f4df3 Content-Type: text/plain; charset=UTF-8 On 15 December 2011 11:54, Stefano Lattarini <stefano.lattarini@HIDDEN> wrote: >> >> I'm cross-compiling gettext to mingw32-target in linux system. I have >> to regenerate build system (so it's not the one distributed with >> gettext 0.18.1.1). I end with libtool-script that has /bin/bash as >> shebang. Yet when doing the build, it's run through /bin/sh ("/bin/sh >> ../libtool"). This work in one of my systems where /bin/sh is bash, >> and fails in another where /bin/sh is dash. >> > The issue you are experiencing is probably due to the fact that the > automake-generated makefiles use $(LIBTOOL) to issue libtool invocations, > and that explicitly runs the libtool script through the shell given by > $(SHELL). Yes, everything works when libtool is built with attached patch that makes $(LIBTOOL) to run libtool-script directly instead of feeding it to (possibly wrong) shell. - ML --bcaec50161516f516e04b41f4df3 Content-Type: text/x-patch; charset=US-ASCII; name="libtool_bash.diff" Content-Disposition: attachment; filename="libtool_bash.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gw7nfa5l0 ZGlmZiAtTnVyZCBsaWJ0b29sLTIuNC4yL2xpYmx0ZGwvbTQvbGlidG9vbC5tNCBsaWJ0b29sLTIu NC4yL2xpYmx0ZGwvbTQvbGlidG9vbC5tNAotLS0gbGlidG9vbC0yLjQuMi9saWJsdGRsL200L2xp YnRvb2wubTQJMjAxMS0xMC0xNyAxMzoxNzowNS4wMDAwMDAwMDAgKzAzMDAKKysrIGxpYnRvb2wt Mi40LjIvbGlibHRkbC9tNC9saWJ0b29sLm00CTIwMTEtMTItMTUgMTI6MzA6MjEuMTY1NTUwMTYy ICswMjAwCkBAIC05NCw3ICs5NCw3IEBACiBMSUJUT09MX0RFUFM9IiRsdG1haW4iCiAKICMgQWx3 YXlzIHVzZSBvdXIgb3duIGxpYnRvb2wuCi1MSUJUT09MPSckKFNIRUxMKSAkKHRvcF9idWlsZGRp cikvbGlidG9vbCcKK0xJQlRPT0w9JyQodG9wX2J1aWxkZGlyKS9saWJ0b29sJwogQUNfU1VCU1Qo TElCVE9PTClkbmwKIAogX0xUX1NFVFVQCg== --bcaec50161516f516e04b41f4df3--
bug-libtool@HIDDEN
:bug#10303
; Package libtool
.
Full text available.Stefano Lattarini <stefano.lattarini@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Stefano Lattarini <stefano.lattarini@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 15 Dec 2011 09:56:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 15 04:56:34 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 1Rb83G-0000vJ-Bv for submit <at> debbugs.gnu.org; Thu, 15 Dec 2011 04:56:34 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <stefano.lattarini@HIDDEN>) id 1Rb83E-0000vB-Nn for submit <at> debbugs.gnu.org; Thu, 15 Dec 2011 04:56:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <stefano.lattarini@HIDDEN>) id 1Rb81k-0007Js-73 for submit <at> debbugs.gnu.org; Thu, 15 Dec 2011 04:55:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:38734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <stefano.lattarini@HIDDEN>) id 1Rb81k-0007Jo-5U for submit <at> debbugs.gnu.org; Thu, 15 Dec 2011 04:55:00 -0500 Received: from eggs.gnu.org ([140.186.70.92]:36096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <stefano.lattarini@HIDDEN>) id 1Rb81j-0006ih-1Q for bug-libtool@HIDDEN; Thu, 15 Dec 2011 04:55:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <stefano.lattarini@HIDDEN>) id 1Rb81h-0007JL-GD for bug-libtool@HIDDEN; Thu, 15 Dec 2011 04:54:58 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:43747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <stefano.lattarini@HIDDEN>) id 1Rb81h-0007JA-9Y for bug-libtool@HIDDEN; Thu, 15 Dec 2011 04:54:57 -0500 Received: by eekc41 with SMTP id c41so1964495eek.0 for <bug-libtool@HIDDEN>; Thu, 15 Dec 2011 01:54:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=7xcFJXbzUvqj2Zed3eBnfLjNNIpQSrSjbAOqT8aEG4w=; b=i9CcRyg4RABQ08PYpJWRTpQtmlIBoTUdigTy/nFowz1/qWtoONYj8ebAuUPr3QKC6z Yf1vxjWj9WwO207CLnavKs/lU6QJ/7bcWgj2/CJptET5DqWik53Yhi0kTeoXEdVT8qxr sCohDVEeGvauFihE746B0JcMs1X5fUFs1nTNo= Received: by 10.14.97.74 with SMTP id s50mr1039709eef.106.1323942896487; Thu, 15 Dec 2011 01:54:56 -0800 (PST) Received: from bigio.localnet (host95-30-dynamic.60-82-r.retail.telecomitalia.it. [82.60.30.95]) by mx.google.com with ESMTPS id s16sm22161341eef.2.2011.12.15.01.54.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Dec 2011 01:54:55 -0800 (PST) From: Stefano Lattarini <stefano.lattarini@HIDDEN> To: bug-libtool@HIDDEN Subject: Problems in $(LIBTOOL) deifnition (was: Re: automake bug#10301: /bin/sh used to execute libtool) Date: Thu, 15 Dec 2011 10:54:40 +0100 User-Agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; ) References: <CAF6bG8efVFmc8FcyDCDVjQhKQA9CASxZ641MBjGxxwXAuyaazA@HIDDEN> In-Reply-To: <CAF6bG8efVFmc8FcyDCDVjQhKQA9CASxZ641MBjGxxwXAuyaazA@HIDDEN> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201112151054.41038.stefano.lattarini@HIDDEN> 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: -5.1 (-----) X-Debbugs-Envelope-To: submit Cc: 10301 <at> debbugs.gnu.org, Marko Lindqvist <cazfi74@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: -5.1 (-----) [CC:ing bug-libtool] Hi Marko, thanks for the report. On Wednesday 14 December 2011, Marko Lindqvist wrote: > I'm not entirely sure if this is automake or libtool bug, but assuming > automake so reporting here. > > I'm cross-compiling gettext to mingw32-target in linux system. I have > to regenerate build system (so it's not the one distributed with > gettext 0.18.1.1). I end with libtool-script that has /bin/bash as > shebang. Yet when doing the build, it's run through /bin/sh ("/bin/sh > ../libtool"). This work in one of my systems where /bin/sh is bash, > and fails in another where /bin/sh is dash. > The issue you are experiencing is probably due to the fact that the automake-generated makefiles use $(LIBTOOL) to issue libtool invocations, and that explicitly runs the libtool script through the shell given by $(SHELL). But automake isn't at fault here, since it takes its definition of $(LIBTOOL) from the libtool-provided macros; more precisely, the definition of $(LIBTOOL) is derived from the following code in the LT_INIT definition (see the file `m4/libtool.m4' in the libtool repository): # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl So my opinion is that this is a libtool bug (that's why I am CC:ing bug-libtool). I will wait few days to see if I'm proven wrong, then I'm going to close this bug report for what concerns automake, leaving it to the libtool developers to deal with it. Regards, Stefano
Stefano Lattarini <stefano.lattarini@HIDDEN>
:bug-libtool@HIDDEN
.
Full text available.bug-libtool@HIDDEN
:bug#10303
; Package libtool
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.