From unknown Fri Aug 15 12:49:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10301 <10301@debbugs.gnu.org> To: bug#10301 <10301@debbugs.gnu.org> Subject: Status: /bin/sh used to execute libtool Reply-To: bug#10301 <10301@debbugs.gnu.org> Date: Fri, 15 Aug 2025 19:49:53 +0000 retitle 10301 /bin/sh used to execute libtool reassign 10301 automake submitter 10301 Marko Lindqvist severity 10301 normal tag 10301 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 19:45:03 2011 Received: (at submit) by debbugs.gnu.org; 15 Dec 2011 00:45:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RazRX-0005Fs-Dd for submit@debbugs.gnu.org; Wed, 14 Dec 2011 19:45:03 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RawBL-0000WF-6z for submit@debbugs.gnu.org; Wed, 14 Dec 2011 16:16:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Raw9w-0000v5-FI for submit@debbugs.gnu.org; Wed, 14 Dec 2011 16:14:41 -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]:59782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Raw9w-0000v0-CQ for submit@debbugs.gnu.org; Wed, 14 Dec 2011 16:14:40 -0500 Received: from eggs.gnu.org ([140.186.70.92]:48964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Raw9v-0008OD-DJ for bug-automake@gnu.org; Wed, 14 Dec 2011 16:14:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Raw9u-0000uG-QZ for bug-automake@gnu.org; Wed, 14 Dec 2011 16:14:39 -0500 Received: from mail-vw0-f41.google.com ([209.85.212.41]:51239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Raw9u-0000u4-CB for bug-automake@gnu.org; Wed, 14 Dec 2011 16:14:38 -0500 Received: by vbbfn1 with SMTP id fn1so1175252vbb.0 for ; Wed, 14 Dec 2011 13:14:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=3dBqE+iyRxiKFUhJcsUTmg8TmCgihDWwE+9LOSpj2X4=; b=RlIx1OLaI/wXK8NIpoZCzdqwsNM8egKDOjKNVszMaPRBP+hCy5EI/WQVXbn7oAhJQK wXm0FZXbcyniRZrcVcjgkLWV4kp84n3t/yRK6P28r1UYoVKE+GEdepZg/ySX7UL4Sao1 zt+/CYMfWjTchqup5B6/y7xxISr1EmFXjj/fM= MIME-Version: 1.0 Received: by 10.52.66.205 with SMTP id h13mr522302vdt.1.1323897277262; Wed, 14 Dec 2011 13:14:37 -0800 (PST) Received: by 10.220.6.70 with HTTP; Wed, 14 Dec 2011 13:14:37 -0800 (PST) Date: Wed, 14 Dec 2011 23:14:37 +0200 Message-ID: Subject: /bin/sh used to execute libtool From: Marko Lindqvist To: bug-automake@gnu.org Content-Type: text/plain; charset=UTF-8 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.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 14 Dec 2011 19:45:02 -0500 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.9 (-----) 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. - ML From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 15 04:56:28 2011 Received: (at 10301) by debbugs.gnu.org; 15 Dec 2011 09:56:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb839-0000v0-4l for submit@debbugs.gnu.org; Thu, 15 Dec 2011 04:56:28 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb837-0000uu-Py for 10301@debbugs.gnu.org; Thu, 15 Dec 2011 04:56:26 -0500 Received: by eekc14 with SMTP id c14so567760eek.3 for <10301@debbugs.gnu.org>; 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-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 10301 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: -4.0 (----) [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:55:35 2011 Received: (at 10301) by debbugs.gnu.org; 15 Dec 2011 10:55:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb8yM-0003kr-K6 for submit@debbugs.gnu.org; Thu, 15 Dec 2011 05:55:35 -0500 Received: from mail-vx0-f172.google.com ([209.85.220.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb8yK-0003kh-H2 for 10301@debbugs.gnu.org; Thu, 15 Dec 2011 05:55:33 -0500 Received: by vcbfk13 with SMTP id fk13so1012362vcb.3 for <10301@debbugs.gnu.org>; 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-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 10301 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: -4.4 (----) --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 Dec 21 13:46:51 2011 Received: (at 10301) by debbugs.gnu.org; 21 Dec 2011 18:46:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RdRBj-0005Zx-NB for submit@debbugs.gnu.org; Wed, 21 Dec 2011 13:46:51 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RdRBi-0005Zr-9j for 10301@debbugs.gnu.org; Wed, 21 Dec 2011 13:46:51 -0500 Received: by wibhj6 with SMTP id hj6so2193928wib.3 for <10301@debbugs.gnu.org>; Wed, 21 Dec 2011 10:44:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=eUuTfjpHFz0aDDS0DO0kYKJnFwdT1co0ymxKLbXqZGI=; b=c4AGEsVKUy3ENuPXM/4ZEDbLezPUbLunIGky3zHfD3xDKlfp0U+RsxIYm0/7x4lE0v P8PkCbYIKZLSeM7/R/Og+cw93qph33/Hf1+jJELd7LY4zPSTUnWBZrX/HbEmc9gKm+sL YIkd5Y0XwP2mEiuO1+V5GfB44F5XWpW+VTvN0= Received: by 10.180.106.165 with SMTP id gv5mr16456930wib.18.1324493084174; Wed, 21 Dec 2011 10:44:44 -0800 (PST) Received: from [82.60.36.58] (host58-36-dynamic.60-82-r.retail.telecomitalia.it. [82.60.36.58]) by mx.google.com with ESMTPS id en10sm2874234wbb.11.2011.12.21.10.44.43 (version=SSLv3 cipher=OTHER); Wed, 21 Dec 2011 10:44:43 -0800 (PST) Message-ID: <4EF22911.402@gmail.com> Date: Wed, 21 Dec 2011 19:44:33 +0100 From: Stefano Lattarini User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: Marko Lindqvist Subject: Re: bug#10301: Problems in $(LIBTOOL) deifnition References: <201112151054.41038.stefano.lattarini@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 10301 Cc: 10301@debbugs.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: -4.0 (----) tags 10301 notabug close 10301 thanks Hi Marko. Sorry for the delay, but this thread had fallen outside my radar. On 12/15/2011 11:54 AM, Marko Lindqvist wrote: > 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. > Thanks for the confirmation; I'm closing this bug report for what concerns automake then (the issues should still remain open in the libtool tracker). Regards, Stefano From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 21 13:49:22 2011 Received: (at control) by debbugs.gnu.org; 21 Dec 2011 18:49:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RdREA-0005do-3l for submit@debbugs.gnu.org; Wed, 21 Dec 2011 13:49:22 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RdRE8-0005dh-6R for control@debbugs.gnu.org; Wed, 21 Dec 2011 13:49:21 -0500 Received: by werb14 with SMTP id b14so2969994wer.3 for ; Wed, 21 Dec 2011 10:47:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=CC8FdGUgwlgtvqi+T8z9PN+f/12c+ef8Au8B1oHzMdw=; b=xSpPJ1L5kUxQR1kE7av+ouU/dfYLeWHqP1z5xIjIk9oc5lbmCJIdqYYLEhybyx88sw Xcj9G5/1lYzFxlkN6DviW+DzcuSdxYKiZ2dF4gEmCbwjZEZPjytYvCh2S1mn+bIeBVQ8 RO821MXsdeMKl/ErjBbl77VNq0tsyccK4nLUs= Received: by 10.216.54.212 with SMTP id i62mr9862946wec.22.1324493234117; Wed, 21 Dec 2011 10:47:14 -0800 (PST) Received: from [82.60.36.58] (host58-36-dynamic.60-82-r.retail.telecomitalia.it. [82.60.36.58]) by mx.google.com with ESMTPS id et20sm6786245wbb.15.2011.12.21.10.47.11 (version=SSLv3 cipher=OTHER); Wed, 21 Dec 2011 10:47:11 -0800 (PST) Message-ID: <4EF229AE.10208@gmail.com> Date: Wed, 21 Dec 2011 19:47:10 +0100 From: Stefano Lattarini User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: foo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 (----) tags 10301 notabug close 10301 thanks From unknown Fri Aug 15 12:49:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 19 Jan 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator