From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 15 04:56:34 2011 Received: (at submit) by debbugs.gnu.org; 15 Dec 2011 09:56:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb83G-0000vJ-Bv for submit@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 ) id 1Rb83E-0000vB-Nn for submit@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 ) id 1Rb81k-0007Js-73 for submit@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 ) id 1Rb81k-0007Jo-5U for submit@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 ) id 1Rb81j-0006ih-1Q for bug-libtool@gnu.org; Thu, 15 Dec 2011 04:55:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rb81h-0007JL-GD for bug-libtool@gnu.org; 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 ) id 1Rb81h-0007JA-9Y for bug-libtool@gnu.org; Thu, 15 Dec 2011 04:54:57 -0500 Received: by eekc41 with SMTP id c41so1964495eek.0 for ; 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 To: bug-libtool@gnu.org 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: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201112151054.41038.stefano.lattarini@gmail.com> 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@debbugs.gnu.org, Marko Lindqvist X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 15 05:07:24 2011 Received: (at control) by debbugs.gnu.org; 15 Dec 2011 10:07:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb8Dj-0001v7-79 for submit@debbugs.gnu.org; Thu, 15 Dec 2011 05:07:23 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb8Dh-0001v1-Rq for control@debbugs.gnu.org; Thu, 15 Dec 2011 05:07:22 -0500 Received: by eekc14 with SMTP id c14so577384eek.3 for ; Thu, 15 Dec 2011 02:05:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=EJ/eEwL2FIwWZnW/ER1q68J+RY3pOk8NzJ+FljkmJnM=; b=n3+CgoW6O5moUTVVeUKNC9rkwgqkybgCxZsnycvxbk5/cyt7cIVKn7lrTsbo+z5Upg HtsM4jZwcxSfsGxQ7G7ivigGUC19FNFsZqmttWw9N5RbrqJrTtnWQVoR9W6W5HOgyVig 9Uu/bchuRcXxNC/ZqrRPKJFwdDPPesLCMm62o= Received: by 10.14.99.197 with SMTP id x45mr1065049eef.114.1323943552366; Thu, 15 Dec 2011 02:05:52 -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 a60sm22243134eeb.4.2011.12.15.02.05.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Dec 2011 02:05:51 -0800 (PST) From: Stefano Lattarini To: control@debbugs.gnu.org Subject: lt Date: Thu, 15 Dec 2011 11:03:32 +0100 User-Agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201112151103.45858.stefano.lattarini@gmail.com> X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) submitter 10303 Marko Lindqvist retitle 10303 Problems in $(LIBTOOL) definition: wrong shell used thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 15 05:55:48 2011 Received: (at submit) by debbugs.gnu.org; 15 Dec 2011 10:55:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb8ya-0003lI-8H for submit@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 ) id 1Rb8yX-0003lA-Nv for submit@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 ) id 1Rb8x1-0003cL-6N for submit@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 ) id 1Rb8x1-0003cG-4o for submit@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 ) id 1Rb8wv-0000HE-J9 for bug-libtool@gnu.org; Thu, 15 Dec 2011 05:54:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rb8wt-0003bU-PX for bug-libtool@gnu.org; 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 ) id 1Rb8wt-0003bH-MJ for bug-libtool@gnu.org; Thu, 15 Dec 2011 05:54:03 -0500 Received: by vcge1 with SMTP id e1so473303vcg.0 for ; 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@gmail.com> References: <201112151054.41038.stefano.lattarini@gmail.com> Date: Thu, 15 Dec 2011 12:54:02 +0200 Message-ID: Subject: Re: Problems in $(LIBTOOL) deifnition (was: Re: automake bug#10301: /bin/sh used to execute libtool) From: Marko Lindqvist To: Stefano Lattarini 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@debbugs.gnu.org, bug-libtool@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) --bcaec50161516f516e04b41f4df3 Content-Type: text/plain; charset=UTF-8 On 15 December 2011 11:54, Stefano Lattarini 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-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 17 02:57:56 2024 Received: (at control) by debbugs.gnu.org; 17 Jan 2024 07:57:56 +0000 Received: from localhost ([127.0.0.1]:50606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQ0o8-0003zo-0S for submit@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 ) id 1rQ0o6-0003zX-Eg for control@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 To: control@debbugs.gnu.org Subject: Control message User-Agent: GNU debbugs/0 Message-Id: <20240117075747.A00443431B9@smtp.gentoo.org> Date: Wed, 17 Jan 2024 07:57:47 +0000 (UTC) X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 10303 10231 thankyou